Skip to content

Instantly share code, notes, and snippets.

@botamochi6277
Created December 29, 2020 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save botamochi6277/9009c620f693484357156a69fd7c1a70 to your computer and use it in GitHub Desktop.
Save botamochi6277/9009c620f693484357156a69fd7c1a70 to your computer and use it in GitHub Desktop.
Unity Solarized Color theme in game
/// Author: botamochi6277
/// Licence: MIT LICENCE
/// Colors in this file are based on a following link.
/// https://github.com/altercation/solarized
using UnityEngine;
using UnityEditor;
namespace BotaLab
{
/// <summary>
/// Solarized Colors for Unity
/// Colors named "baseXX" have altanative names that are easy to recognize.
/// </summary>
public class Solarized
{
//base03 , brblack #002b36
public static Color base03 = new Color32(0x00, 0x2b, 0x36, 0xFF);
public static Color brblack = base03;
//base02 , black #073642
public static Color base02 = new Color32(0x07, 0x36, 0x42, 0xFF);
public static Color black = base02;
//base01 , brgreen #586e75
public static Color base01 = new Color32(0x58, 0x6e, 0x75, 0xFF);
public static Color brgreen = base01;
//base00 , bryellow #657b83
public static Color base00 = new Color32(0x65, 0x7b, 0x83, 0xFF);
public static Color bryellow = base00;
//base0 , brblue #839496
public static Color base0 = new Color32(0x83, 0x94, 0x96, 0xFF);
public static Color brblue = base0;
//base1 , brcyan #93a1a1
public static Color base1 = new Color32(0x93, 0xa1, 0xa1, 0xFF);
public static Color brcyan = base1;
//base2 , white #eee8d5
public static Color base2 = new Color32(0xee, 0xe8, 0xd5, 0xFF);
public static Color white = base2;
//base3 , brwhite #fdf6e3
public static Color base3 = new Color32(0xfd, 0xf6, 0xe3, 0xFF);
public static Color brwhite = base3;
//yellow , yellow #b58900
public static Color yellow = new Color32(0xb5, 0x89, 0x00, 0xFF);
//orange , brred #cb4b16
public static Color orange = new Color32(0xcd, 0x4b, 0x16, 0xFF);
//red , red #dc322f
public static Color red = new Color32(0xdc, 0x32, 0x2f, 0xFF);
//magenta, magenta #d33682
public static Color magenta = new Color32(0xd3, 0x36, 0x82, 0xFF);
//violet , brmagent #6c71c4
public static Color violet = new Color32(0x6c, 0x71, 0xc4, 0xFF);
//blue , blue #268bd2
public static Color blue = new Color32(0x26, 0x8b, 0xd2, 0xFF);
//cyan , cyan #2aa198
public static Color cyan = new Color32(0x2a, 0xa1, 0x98, 0xFF);
//green , green #859900
public static Color green = new Color32(0x85, 0x99, 0x00, 0xFF);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment