diff options
Diffstat (limited to 'lib/theme.nix')
-rw-r--r-- | lib/theme.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/theme.nix b/lib/theme.nix new file mode 100644 index 0000000..1020514 --- /dev/null +++ b/lib/theme.nix @@ -0,0 +1,24 @@ +{ pkgs, lib }: +let + inherit (import ./const.nix) homedir; +in rec { + theme = lib.removeSuffix "\n" (builtins.readFile "${homedir}/.local/share/xtheme"); + + base16-scheme = "atelier-sulphurpool"; + base16-scheme-filename = lib.strings.concatStrings (lib.strings.splitString "-" base16-scheme); + xresourcesFile = "${pkgs.base16}/xresources/base16-${base16-scheme-filename}.${theme}.256.xresources"; + + + colors = { # derived from spacemacs + "dark" = { + highlight = "#5d4d7a"; + background = "#292b2e"; + foreground = "#b2b2b2"; + }; + "light" = { + highlight = "#67b11d"; + background = "#f6f1e1"; + foreground = "#655370"; + }; + }; +} |