-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.nix
165 lines (164 loc) · 4.24 KB
/
colors.nix
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{ config, lib, pkgs, ... }:
let
colorthemes = {
nord-dark = {
base00 = "2e3440";
base01 = "3b4252";
base02 = "434c5e";
base03 = "4c566a";
base04 = "d8dee9";
base05 = "e5e9f0";
base06 = "eceff4";
base07 = "8fbcbb";
base08 = "88c0d0";
base09 = "81a1c1";
base0A = "5e81ac";
base0B = "bf616a";
base0C = "d08770";
base0D = "ebcb8b";
base0E = "a3be8c";
base0F = "b48ead";
};
# from https://github.com/edunfelt/base16-rose-pine-scheme
rose-pine = {
base00 = "191724";
base01 = "1f1d2e";
base02 = "26233a";
base03 = "555169";
base04 = "6e6a86";
base05 = "e0def4";
base06 = "f0f0f3";
base07 = "c5c3ce";
base08 = "e2e1e7";
base09 = "eb6f92";
base0A = "f6c177";
base0B = "ebbcba";
base0C = "31748f";
base0D = "9ccfd8";
base0E = "c4a7e7";
base0F = "e5e5e5";
};
rose-pine-moon = {
base00 = "232136";
base01 = "2a273f";
base02 = "393552";
base03 = "59546d";
base04 = "817c9c";
base05 = "e0def4";
base06 = "f5f5f7";
base07 = "d9d7e1";
base08 = "ecebf0";
base09 = "eb6f92";
base0A = "f6c177";
base0B = "ea9a97";
base0C = "3e8fb0";
base0D = "9ccfd8";
base0E = "c4a7e7";
base0F = "b9b9bc";
};
test = {
base00 = "2d1f2a";
base01 = "362531";
base02 = "473242";
base03 = "65525f";
base04 = "9a7590";
base05 = "f4d8ed";
base06 = "f7f5f7";
base07 = "e1d5dd";
base08 = "f0eaee";
base09 = "c48c49";
base0A = "b3d75d";
base0B = "caac62";
base0C = "9d6ce8";
base0D = "bfc6df";
base0E = "e99cc7";
base0F = "bcb8bb";
};
#Rusty background with Coppery and Orange foreground
# Rose Pine Moon rotated by 135 Degrees
corrosion = {
base00 = "29221d";
base01 = "302923";
base02 = "403730";
base03 = "5e5650";
base04 = "8d7d70";
base05 = "f5dccb";
base06 = "f7f5f4";
base07 = "e2d6cd";
base08 = "f0ebe7";
base09 = "49aa5c";
base0A = "64dcd8";
base0B = "65c196";
base0C = "ef456e";
base0D = "e0bdcc";
base0E = "d6ad66";
base0F = "bdb8b6";
};
# Purple and cyan w/ green-grey bg
# Rose Pine Moon rotated by 270 Degrees
glow-tulip = {
base00 = "1e2524";
base01 = "232c2a";
base02 = "313b39";
base03 = "515958";
base04 = "728381";
base05 = "8ef1e5";
base06 = "eff7f5";
base07 = "c2dedb";
base08 = "dbf0ee";
base09 = "928ee6";
base0A = "f5b8e2";
base0B = "c3a1e6";
base0C = "38975b";
base0D = "a9d295";
base0E = "6cc1c2";
base0F = "b6bab9";
};
# from https://github.com/dawikur/base16-gruvbox-scheme
gruvbox-dark = {
base00 = "282828"; # ----
base01 = "3c3836"; # ---
base02 = "504945"; # --
base03 = "665c54"; # -
base04 = "bdae93"; # +
base05 = "d5c4a1"; # ++
base06 = "ebdbb2"; # +++
base07 = "fbf1c7"; # ++++
base08 = "fb4934"; # red
base09 = "fe8019"; # orange
base0A = "fabd2f"; # yellow
base0B = "b8bb26"; # green
base0C = "8ec07c"; # aqua/cyan
base0D = "83a598"; # blue
base0E = "d3869b"; # purple
base0F = "d65d0e"; # brown
};
gruvbox-light = {
base00 = "fbf1c7"; # ----
base01 = "ebdbb2"; # ---
base02 = "d5c4a1"; # --
base03 = "bdae93"; # -
base04 = "665c54"; # +
base05 = "504945"; # ++
base06 = "3c3836"; # +++
base07 = "282828"; # ++++
base08 = "9d0006"; # red
base09 = "af3a03"; # orange
base0A = "b57614"; # yellow
base0B = "79740e"; # green
base0C = "427b58"; # aqua/cyan
base0D = "076678"; # blue
base0E = "8f3f71"; # purple
base0F = "d65d0e"; # brown
};
};
in {
options.colors = let inherit (lib) types mkOption; in {
theme = mkOption { type = types.enum (builtins.attrNames colorthemes); };
fn = mkOption { };
};
config.colors.fn = pre: let
to-map = _path: value: "${pre}${value}";
input = colorthemes."${config.colors.theme}";
in lib.attrsets.mapAttrsRecursive to-map input;
}