home: Modularise solarized colorscheme

This commit is contained in:
Simon Bruder 2020-11-07 11:27:41 +01:00
parent 630250b3ef
commit 182bdde6e3
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 43 additions and 20 deletions

View file

@ -1,41 +1,44 @@
let let
common = import ./common.nix;
solarized = common.colorschemes.solarized;
colorschemes = { colorschemes = {
# https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized # https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized
solarized-dark = { solarized-dark = {
# Default colors # Default colors
primary = { primary = {
background = "#002b36"; # base03 background = solarized.base03;
foreground = "#839496"; # base0 foreground = solarized.base0;
}; };
# Cursor colors # Cursor colors
cursor = { cursor = {
text = "#002b36"; # base03 text = solarized.base03;
cursor = "#839496"; # base0 cursor = solarized.base0;
}; };
# Normal colors # Normal colors
normal = { normal = {
black = "#073642"; # base02 black = solarized.base02;
red = "#dc322f"; # red red = solarized.red;
green = "#859900"; # green green = solarized.green;
yellow = "#b58900"; # yellow yellow = solarized.yellow;
blue = "#268bd2"; # blue blue = solarized.blue;
magenta = "#d33682"; # magenta magenta = solarized.magenta;
cyan = "#2aa198"; # cyan cyan = solarized.cyan;
white = "#eee8d5"; # base2 white = solarized.base2;
}; };
# Bright colors # Bright colors
bright = { bright = {
black = "#002b36"; # base03 black = solarized.base03;
red = "#cb4b16"; # orange red = solarized.orange;
green = "#586e75"; # base01 green = solarized.base01;
yellow = "#657b83"; # base00 yellow = solarized.base00;
blue = "#839496"; # base0 blue = solarized.base0;
magenta = "#6c71c4"; # violet magenta = solarized.violet;
cyan = "#93a1a1"; # base1 cyan = solarized.base1;
white = "#fdf6e3"; # base3 white = solarized.base3;
}; };
}; };
}; };

View file

@ -0,0 +1,20 @@
{
colorschemes.solarized = {
base03 = "#002b36";
base02 = "#073642";
base01 = "#586e75";
base00 = "#657b83";
base0 = "#839496";
base1 = "#93a1a1";
base2 = "#eee8d5";
base3 = "#fdf6e3";
yellow = "#b58900";
orange = "#cb4b16";
red = "#dc322f";
magenta = "#d33682";
violet = "#6c71c4";
blue = "#268bd2";
cyan = "#2aa198";
green = "#859900";
};
}