-
Notifications
You must be signed in to change notification settings - Fork 185
/
themes.lua
401 lines (377 loc) · 14.7 KB
/
themes.lua
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
local c = require("kanagawa.lib.color")
--TODO:
--PreProc needs its own color
--parameter and field should be different
---@class SyntaxElements
---@field string ColorSpec
---@field variable ColorSpec
---@field number ColorSpec
---@field constant ColorSpec
---@field identifier ColorSpec
---@field parameter ColorSpec
---@field fun ColorSpec
---@field statement ColorSpec
---@field keyword ColorSpec
---@field operator ColorSpec
---@field preproc ColorSpec
---@field type ColorSpec
---@field regex ColorSpec
---@field deprecated ColorSpec
---@field comment ColorSpec
---@field punct ColorSpec
---@field special1 ColorSpec
---@field special2 ColorSpec
---@field special3 ColorSpec
---@class DiagnosticsElements
---@field error ColorSpec
---@field ok ColorSpec
---@field warning ColorSpec
---@field info ColorSpec
---@field hint ColorSpec
--
---@class DiffElements
---@field add ColorSpec
---@field delete ColorSpec
---@field change ColorSpec
---@field text ColorSpec
---@class VCSElements
---@field added ColorSpec
---@field removed ColorSpec
---@field changed ColorSpec
---@class UiElements
---@field fg ColorSpec Default foreground
---@field fg_dim ColorSpec Dimmed foreground
---@field fg_reverse ColorSpec
---@field bg_dim ColorSpec Dimmed background
---@field bg_m3 ColorSpec
---@field bg_m2 ColorSpec
---@field bg_m1 ColorSpec
---@field bg ColorSpec Default background
---@field bg_p1 ColorSpec Lighter background ColorColumn, Folded, Gutter
---@field bg_p2 ColorSpec Lighter background Cursor{Line,Column}, TabLineSel (Selected Items)
---@field bg_gutter ColorSpec {Sign,Fold}Column, LineNr
---@field special ColorSpec SpecialKey
---@field nontext ColorSpec LineNr, NonText
---@field whitespace ColorSpec Whitespace
---@field bg_search ColorSpec
---@field bg_visual ColorSpec
---@field pmenu MenuElements
---@field float FloatElements
---@class FloatElements
---@field fg ColorSpec
---@field bg ColorSpec
---@field fg_border ColorSpec
---@field bg_border ColorSpec
---@class MenuElements
---@field bg ColorSpec
---@field fg ColorSpec
---@field fg_sel ColorSpec
---@field bg_sel ColorSpec
---@field bg_sbar ColorSpec
---@field bg_thumb ColorSpec
---@class ThemeColors
---@field syn SyntaxElements
---@field diag DiagnosticsElements
---@field vcs VCSElements
---@field diff DiffElements
---@field ui UiElements
---@field term ColorSpec[]
return {
---@param palette PaletteColors
---@return ThemeColors
wave = function(palette)
return {
ui = {
fg = palette.fujiWhite,
fg_dim = palette.oldWhite,
fg_reverse = palette.waveBlue1,
bg_dim = palette.sumiInk1,
bg_gutter = palette.sumiInk4,
bg_m3 = palette.sumiInk0,
bg_m2 = palette.sumiInk1,
bg_m1 = palette.sumiInk2,
bg = palette.sumiInk3,
bg_p1 = palette.sumiInk4,
bg_p2 = palette.sumiInk5,
special = palette.springViolet1,
nontext = palette.sumiInk6,
whitespace = palette.sumiInk6,
bg_search = palette.waveBlue2,
bg_visual = palette.waveBlue1,
pmenu = {
fg = palette.fujiWhite,
fg_sel = "none", -- This is important to make highlights pass-through
bg = palette.waveBlue1,
bg_sel = palette.waveBlue2,
bg_sbar = palette.waveBlue1,
bg_thumb = palette.waveBlue2,
},
float = {
fg = palette.oldWhite,
bg = palette.sumiInk0,
fg_border = palette.sumiInk6,
bg_border = palette.sumiInk0,
},
},
syn = {
string = palette.springGreen,
variable = "none",
number = palette.sakuraPink,
constant = palette.surimiOrange,
identifier = palette.carpYellow,
-- parameter = "#C3B1B1",
-- parameter = "#B1ADC8",
-- parameter = "#b8b4d0",
parameter = palette.oniViolet2,
-- parameter = "#d5a4a6",
-- parameter = "#C8ADAD",
-- parameter = "#d7a8a8",
fun = palette.crystalBlue,
statement = palette.oniViolet,
keyword = palette.oniViolet,
operator = palette.boatYellow2,
preproc = palette.waveRed, --lightBlue? deserves its own color
type = palette.waveAqua2,
regex = palette.boatYellow2,
deprecated = palette.katanaGray,
comment = palette.fujiGray,
punct = palette.springViolet2,
special1 = palette.springBlue,
special2 = palette.waveRed,
special3 = palette.peachRed,
},
vcs = {
added = palette.autumnGreen,
removed = palette.autumnRed,
changed = palette.autumnYellow,
},
diff = {
add = palette.winterGreen,
delete = palette.winterRed,
change = palette.winterBlue,
text = palette.winterYellow,
},
diag = {
ok = palette.springGreen,
error = palette.samuraiRed,
warning = palette.roninYellow,
info = palette.dragonBlue,
hint = palette.waveAqua1,
},
term = {
palette.sumiInk0, -- black
palette.autumnRed, -- red
palette.autumnGreen, -- green
palette.boatYellow2, -- yellow
palette.crystalBlue, -- blue
palette.oniViolet, -- magenta
palette.waveAqua1, -- cyan
palette.oldWhite, -- white
palette.fujiGray, -- bright black
palette.samuraiRed, -- bright red
palette.springGreen, -- bright green
palette.carpYellow, -- bright yellow
palette.springBlue, -- bright blue
palette.springViolet1, -- bright magenta
palette.waveAqua2, -- bright cyan
palette.fujiWhite, -- bright white
palette.surimiOrange, -- extended color 1
palette.peachRed, -- extended color 2
},
}
end,
---@param palette PaletteColors
---@return ThemeColors
dragon = function(palette)
return {
ui = {
fg = palette.dragonWhite,
fg_dim = palette.oldWhite,
fg_reverse = palette.waveBlue1,
bg_dim = palette.dragonBlack1,
bg_gutter = palette.dragonBlack4,
bg_m3 = palette.dragonBlack0,
bg_m2 = palette.dragonBlack1,
bg_m1 = palette.dragonBlack2,
bg = palette.dragonBlack3,
bg_p1 = palette.dragonBlack4,
bg_p2 = palette.dragonBlack5,
special = palette.dragonGray3,
whitespace = palette.dragonBlack6,
nontext = palette.dragonBlack6,
bg_visual = palette.waveBlue1,
bg_search = palette.waveBlue2,
pmenu = {
fg = palette.fujiWhite,
fg_sel = "none",
bg = palette.waveBlue1,
bg_sel = palette.waveBlue2,
bg_thumb = palette.waveBlue2,
bg_sbar = palette.waveBlue1,
},
float = {
fg = palette.oldWhite,
bg = palette.dragonBlack0,
fg_border = palette.sumiInk6,
bg_border = palette.dragonBlack0,
},
},
syn = {
string = palette.dragonGreen2,
variable = "none",
number = palette.dragonPink,
constant = palette.dragonOrange,
identifier = palette.dragonYellow,
parameter = palette.dragonGray,
fun = palette.dragonBlue2,
statement = palette.dragonViolet,
keyword = palette.dragonViolet,
operator = palette.dragonRed,
preproc = palette.dragonRed,
type = palette.dragonAqua,
regex = palette.dragonRed,
deprecated = palette.katanaGray,
punct = palette.dragonGray2,
comment = palette.dragonAsh,
special1 = palette.dragonTeal,
special2 = palette.dragonRed,
special3 = palette.dragonRed,
},
diag = {
error = palette.samuraiRed,
ok = palette.springGreen,
warning = palette.roninYellow,
info = palette.dragonBlue,
hint = palette.waveAqua1,
},
diff = {
add = palette.winterGreen,
delete = palette.winterRed,
change = palette.winterBlue,
text = palette.winterYellow,
},
vcs = {
added = palette.autumnGreen,
removed = palette.autumnRed,
changed = palette.autumnYellow,
},
term = {
palette.dragonBlack0, -- black
palette.dragonRed, -- red
palette.dragonGreen2, -- green
palette.dragonYellow, -- yellow
palette.dragonBlue2, -- blue
palette.dragonPink, -- magenta
palette.dragonAqua, -- cyan
palette.oldWhite, -- white
palette.dragonGray, -- bright black
palette.waveRed, -- bright red
palette.dragonGreen, -- bright green
palette.carpYellow, -- bright yellow
palette.springBlue, -- bright blue
palette.springViolet1, -- bright magenta
palette.waveAqua2, -- bright cyan
palette.dragonWhite, -- bright white
palette.dragonOrange, -- extended color 1
palette.dragonOrange2, -- extended color 2
},
}
end,
---@param palette PaletteColors
---@return ThemeColors
lotus = function(palette)
return {
ui = {
fg = palette.lotusInk1,
fg_dim = palette.lotusInk2,
fg_reverse = palette.lotusGray,
bg_dim = palette.lotusWhite1,
bg_gutter = palette.lotusWhite4,
bg_m3 = palette.lotusWhite0,
bg_m2 = palette.lotusWhite1,
bg_m1 = palette.lotusWhite2,
bg = palette.lotusWhite3,
bg_p1 = palette.lotusWhite4,
bg_p2 = palette.lotusWhite5,
nontext = palette.lotusViolet1,
whitespace = palette.lotusViolet1,
special = palette.lotusViolet2,
bg_visual = palette.lotusViolet3,
bg_search = palette.lotusBlue2,
pmenu = {
fg = palette.lotusInk2,
fg_sel = "none", -- This is important to make highlights pass-through
bg = palette.lotusBlue1,
bg_sel = palette.lotusBlue3,
bg_sbar = palette.lotusBlue1,
bg_thumb = palette.lotusBlue2,
},
float = {
fg = palette.lotusInk2,
bg = palette.lotusWhite0,
fg_border = palette.lotusGray2,
bg_border = palette.lotusWhite0,
},
},
syn = {
string = palette.lotusGreen,
variable = "none",
number = palette.lotusPink,
constant = palette.lotusOrange,
identifier = palette.lotusYellow,
parameter = palette.lotusBlue5,
fun = palette.lotusBlue4,
statement = palette.lotusViolet4,
keyword = palette.lotusViolet4,
operator = palette.lotusYellow2,
preproc = palette.lotusRed,
type = palette.lotusAqua,
regex = palette.lotusYellow2,
deprecated = palette.lotusGray3,
comment = palette.lotusGray3,
punct = palette.lotusTeal1,
special1 = palette.lotusTeal2,
special2 = palette.lotusRed,
special3 = palette.lotusRed,
},
vcs = {
added = palette.lotusGreen2,
removed = palette.lotusRed2,
changed = palette.lotusYellow3,
},
diff = {
add = palette.lotusGreen3,
delete = palette.lotusRed4,
change = palette.lotusCyan,
text = palette.lotusYellow4,
},
diag = {
error = palette.lotusRed3,
ok = palette.lotusGreen,
warning = palette.lotusOrange2,
info = palette.lotusTeal3,
hint = palette.lotusAqua2,
},
term = {
palette.sumiInk3, -- black
palette.lotusRed, -- red
palette.lotusGreen, -- green
palette.lotusYellow, -- yellow
palette.lotusBlue4, -- blue
palette.lotusPink, -- magenta
palette.lotusAqua, -- cyan
palette.lotusInk1, -- white
palette.lotusGray3 , -- bright black
palette.lotusRed2, -- bright red
palette.lotusGreen2, -- bright green
palette.lotusYellow2, -- bright yellow
palette.lotusTeal2, -- bright blue
palette.lotusViolet4, -- bright magenta
palette.lotusAqua2, -- bright cyan
palette.lotusInk2, -- bright white
palette.lotusOrange2, -- extended color 1
palette.lotusRed3, -- extended color 2
},
}
end,
}