This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoimandres.lua
125 lines (119 loc) · 2.82 KB
/
poimandres.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
local wezterm = require('wezterm')
-- color variant hex codes
local colors = {
base = {
yellow = '#FFFAC2',
teal1 = '#5DE4C7',
teal2 = '#5FB3A1',
teal3 = '#42675A',
blue1 = '#89DDFF',
blue2 = '#ADD7FF',
blue3 = '#91B4D5',
blue4 = '#7390AA',
pink1 = '#FAE4FC',
pink2 = '#FCC5E9',
pink3 = '#D0679D',
blueGray1 = '#A6ACCD',
blueGray2 = '#767C9D',
blueGray3 = '#506477',
background1 = '#303340',
background2 = '#1B1E28',
background3 = '#171922',
text = '#E4F0FB',
white = '#FFFFFF',
},
storm = {
yellow = '#FFFAC2',
teal1 = '#5DE4C7',
teal2 = '#5FB3A1',
teal3 = '#42675A',
blue1 = '#89DDFF',
blue2 = '#ADD7FF',
blue3 = '#91B4D5',
blue4 = '#607487',
pink1 = '#FAE4FC',
pink2 = '#FCC5E9',
pink3 = '#D0679D',
blueGray1 = '#A6ACCD',
blueGray2 = '#868CAD',
blueGray3 = '#506477',
background1 = '#404350',
background2 = '#252B37',
background3 = '#1B1E28',
text = '#E4F0FB',
white = '#FFFFFF',
},
}
local poimandres = {}
function poimandres.select(palette)
return {
foreground = colors[palette].text,
background = colors[palette].background2,
cursor_bg = colors[palette].blue4,
cursor_border = colors[palette].blue4,
cursor_fg = colors[palette].background2,
selection_bg = colors[palette].blueGray3,
selection_fg = colors[palette].text,
ansi = {
colors[palette].background3,
colors[palette].pink3,
colors[palette].teal1,
colors[palette].yellow,
colors[palette].blue1,
colors[palette].pink2,
colors[palette].blue1,
colors[palette].white,
},
brights = {
colors[palette].blueGray3,
colors[palette].pink3,
colors[palette].teal1,
colors[palette].yellow,
colors[palette].blue2,
colors[palette].pink2,
colors[palette].blue2,
colors[palette].white,
},
tab_bar = {
background = colors[palette].background3,
active_tab = {
bg_color = colors[palette].background2,
fg_color = colors[palette].text,
},
inactive_tab = {
bg_color = colors[palette].background3,
fg_color = colors[palette].blueGray3,
},
inactive_tab_hover = {
bg_color = colors[palette].background3,
fg_color = colors[palette].blueGray2,
},
new_tab = {
bg_color = colors[palette].background3,
fg_color = colors[palette].blueGray3,
},
new_tab_hover = {
bg_color = colors[palette].background3,
fg_color = colors[palette].blueGray2,
italic = true,
},
},
visual_bell = colors[palette].blueGray3,
indexed = {
[16] = colors[palette].teal1,
[17] = colors[palette].pink3,
},
scrollbar_thumb = colors[palette].background1,
split = colors[palette].background3,
-- nightbuild only
compose_cursor = colors[palette].pink2,
}
end
function poimandres.setup(options)
-- default options
options = {
flavour = options.flavour or 'base',
}
return poimandres.select(options.flavour)
end
return poimandres