Switch to onedark theme

This commit is contained in:
Filippo Berto 2022-06-02 14:16:07 +02:00
parent e102a548ba
commit 1f1ade1541
3 changed files with 22 additions and 19 deletions

View file

@ -29,8 +29,8 @@ let
selected = { selected = {
foreground = colorPalette.bright.white; foreground = colorPalette.bright.white;
background = color.tAlphaRgba (v: 240) colorPalette.dark.blue; background = colorPalette.bright.black;
underline = colorPalette.dark.white; underline = colorPalette.normal.white;
}; };
alert = colorPalette.bright.red; alert = colorPalette.bright.red;

View file

@ -7,33 +7,36 @@ let
} }
) {}; ) {};
nord = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/nord.nix); nord = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/nord.nix);
# onedark = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/onedark.nix); onedark = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/onedark.nix);
tomorrow-night = with nix-rice; palette.tPalette color.hexToRgba (import ./themes/tomorrow-night.nix);
in in
( (
rec { rec {
rice = nix-rice // { rice = nix-rice // {
colorPalette = with nix-rice; rec { colorPalette = with nix-rice; rec {
normal = { normal = {
black = nord.n1; black = onedark.black;
blue = nord.n10; blue = onedark.blue;
cyan = nord.n8; cyan = onedark.cyan;
green = nord.n14; green = onedark.green;
magenta = nord.n15; magenta = onedark.magenta;
red = nord.n11; red = onedark.darkRed;
white = nord.n5; white = onedark.white;
yellow = nord.n13; yellow = onedark.darkYellow;
}; };
bright = palette.brighten 10 normal // { bright = palette.brighten 10 normal // {
blue = nord.n9; red = onedark.lightRed;
black = nord.n2; yellow = onedark.lightYellow;
red = nord.n12; # blue = nord.n9;
white = nord.n6; # black = nord.n2;
# red = nord.n12;
# white = nord.n6;
}; };
dark = palette.darken 10 normal // { dark = palette.darken 10 normal // {
black = nord.n0; # black = nord.n0;
blue = nord.n3; # blue = nord.n3;
cyan = nord.n7; # cyan = nord.n7;
white = nord.n4; # white = nord.n4;
}; };
}; };
font = { font = {