aboutsummaryrefslogtreecommitdiff
path: root/modules/colors/tomorrow.nix
blob: 3e795e8c553af2700f210ee10ac0f1b0427ffceb (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.modules.colors.tomorrow;
  hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}'';
  hexColor = {
    type = lib.types.strMatching hexColorRegex;
  };
in
{
  options.modules.colors.tomorrow = {
    enable = lib.mkEnableOption "tomorrow theme";
  };

  config = lib.mkIf cfg.enable {
    modules.scheme = {
      light = true;
      name = "base16-tomorrow";
      base00 = "#ffffff";
      base01 = "#e0e0e0";
      base02 = "#d6d6d6";
      base03 = "#8e908c";
      base04 = "#969896";
      base05 = "#4d4d4c";
      base06 = "#282a2e";
      base07 = "#1d1f21";
      base08 = "#c82829";
      base09 = "#f5871f";
      base0A = "#eab700";
      base0B = "#718c00";
      base0C = "#3e999f";
      base0D = "#4271ae";
      base0E = "#8959a8";
      base0F = "#a3685a";
      base10 = "#1d1f21";
      base11 = "#282a2e";
      base12 = "#c82829";
      base13 = "#eab700";
      base14 = "#718c00";
      base15 = "#3e999f";
      base16 = "#4271ae";
      base17 = "#8959a8";
    };
  };
}