summaryrefslogtreecommitdiff
path: root/lib/theme.nix
blob: 1020514eb37bd01097c6ca897e3fc207ec0418b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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";
    };
  };
}