11-- Credits to original theme https://github.com/kepano/flexoki/
22-- This is a modified version of it
33
4- -- return colors
54local M = {}
65
76M .base_30 = {
8- white = " #CECDC3" ,
97 darker_black = " #171616" ,
10- black = " #100F0F" , -- nvim bg
11- black2 = " #1c1b1b" ,
12- one_bg = " #292626" , -- real bg of onedark
13- one_bg2 = " #353232" ,
14- one_bg3 = " #373434" ,
15- grey = " #393636" ,
16- grey_fg = " #555050" ,
17- grey_fg2 = " #5f5959" ,
18- light_grey = " #6a6363" ,
8+ black = " #100F0F" , -- bg (nvim bg)
9+ black2 = " #1C1B1A" , -- bg2 (secondary bg)
10+ one_bg = " #282726" , -- ui (borders)
11+ one_bg2 = " #343331" , -- ui2 (hovered borders)
12+ one_bg3 = " #403E3C" , -- ui3 (active borders)
13+ grey = " #575653" , -- tx3 (faint text)
14+ grey_fg = " #6F6E69" ,
15+ grey_fg2 = " #878580" , -- tx2 (muted text)
16+ light_grey = " #B7B5AC" ,
17+ white = " #CECDC3" , -- tx1
1918 red = " #D14D41" ,
2019 baby_pink = " #d36da1" ,
2120 pink = " #CE5D97" ,
22- line = " #292626" , -- for lines like vertsplit
2321 green = " #879A39" ,
2422 vibrant_green = " #7e9f0e" ,
2523 nord_blue = " #4385BE" ,
@@ -33,9 +31,10 @@ M.base_30 = {
3331 cyan = " #3AA99F" ,
3432 statusline_bg = " #171616" ,
3533 lightbg = " #292626" ,
36- pmenu_bg = " #3AA99F" ,
37- folder_bg = " #4385BE" ,
3834}
35+ M .base_30 .pmenu_bg = M .base_30 .cyan
36+ M .base_30 .folder_bg = M .base_30 .blue
37+ M .base_30 .line = M .base_30 .one_bg -- for lines like vertsplit
3938
4039M .base_16 = {
4140 base00 = M .base_30 .black ,
@@ -56,21 +55,122 @@ M.base_16 = {
5655 base0F = M .base_30 .teal ,
5756}
5857
58+ local colors = {
59+ keyword = M .base_30 .green ,
60+ keyword_variable = M .base_30 .blue ,
61+ include = M .base_30 .red ,
62+
63+ constructor = M .base_30 .red ,
64+ punctuation = M .base_30 .grey_fg2 ,
65+ operator = M .base_30 .grey_fg2 ,
66+
67+ tag = M .base_30 .white ,
68+ type = M .base_30 .orange ,
69+ boolean = M .base_30 .yellow ,
70+ module = M .base_30 .green ,
71+ call = M .base_30 .orange ,
72+ variable = M .base_30 .white ,
73+ variable_builtin = M .base_30 .blue ,
74+ member = M .base_30 .white ,
75+ property = M .base_30 .blue ,
76+ attribute = M .base_30 .orange ,
77+
78+ special = M .base_30 .pink ,
79+ specialChar = M .base_30 .pink ,
80+
81+ comment = M .base_30 .grey ,
82+ number = M .base_30 .purple ,
83+ functions = M .base_30 .orange ,
84+ string = M .base_30 .cyan ,
85+ parameter = M .base_30 .blue ,
86+ constant = M .base_30 .yellow ,
87+ }
88+
5989M .polish_hl = {
90+ tbline = {
91+ TbFill = { bg = " NONE" },
92+ TbBufOn = { fg = M .base_30 .white , bg = M .base_30 .black },
93+ TbBufOnClose = { fg = M .base_30 .red , bg = M .base_30 .black },
94+ TbBufOff = { fg = M .base_30 .grey , bg = " NONE" },
95+ TbBufOffClose = { bg = " NONE" },
96+ TbBufOnModified = { fg = M .base_30 .green , bg = M .base_30 .black },
97+ TbBufOffModified = { fg = M .base_30 .red , bg = " NONE" },
98+ },
99+ telescope = {
100+ TelescopeResultsNormal = { fg = M .base_30 .grey_fg2 },
101+ TelescopeSelection = { fg = M .base_30 .white },
102+ TelescopeMatching = { fg = M .base_30 .green , bg = " NONE" , bold = true },
103+ },
60104 syntax = {
61- Keyword = { fg = M .base_30 .cyan },
62- Include = { fg = M .base_30 .yellow },
63- Tag = { fg = M .base_30 .blue },
105+ Boolean = { fg = colors .boolean },
106+ Character = { fg = colors .specialChar },
107+ Conditional = { fg = colors .keyword },
108+ Constant = { fg = colors .constant },
109+ Define = { fg = colors .keyword_variable , sp = " none" },
110+ Delimiter = { fg = colors .punctuation },
111+ Float = { fg = colors .number },
112+ Variable = { fg = colors .variable },
113+ Function = { fg = colors .functions },
114+ Identifier = { fg = colors .keyword , sp = " none" },
115+ Include = { fg = colors .include },
116+ Keyword = { fg = colors .keyword },
117+ Label = { fg = colors .string },
118+ Number = { fg = colors .number },
119+ Operator = { fg = colors .operator , sp = " none" },
120+ Repeat = { fg = colors .keyword },
121+ Special = { fg = colors .special },
122+ SpecialChar = { fg = colors .specialChar },
123+ Statement = { fg = colors .constructor },
124+ StorageClass = { fg = colors .constructor },
125+ String = { fg = colors .string },
126+ Structure = { fg = colors .constructor },
127+ Tag = { fg = colors .tag },
128+ Type = { fg = colors .type , sp = " none" },
129+ Typedef = { fg = colors .type },
64130 },
65131 treesitter = {
66- [" @keyword" ] = { fg = M .base_30 .cyan },
67- [" @variable.parameter" ] = { fg = M .base_30 .baby_pink },
68- [" @tag.attribute" ] = { fg = M .base_30 .orange },
69- [" @tag" ] = { fg = M .base_30 .blue },
70- [" @string" ] = { fg = M .base_30 .green },
71- [" @string.special.url" ] = { fg = M .base_30 .green },
72- [" @markup.link.url" ] = { fg = M .base_30 .green },
73- [" @punctuation.bracket" ] = { fg = M .base_30 .yellow },
132+ [" @keyword" ] = { fg = colors .keyword_variable },
133+ [" @keyword.return" ] = { fg = colors .keyword },
134+ [" @keyword.conditional" ] = { fg = colors .keyword },
135+ [" @keyword.operator" ] = { fg = colors .keyword },
136+ [" @keyword.function" ] = { fg = colors .keyword },
137+ [" @keyword.repeat" ] = { fg = colors .keyword },
138+ [" @keyword.exception" ] = { fg = colors .keyword },
139+
140+ [" @constant" ] = { fg = colors .constant },
141+ [" @constant.builtin" ] = { fg = colors .constant },
142+ [" @variable" ] = { fg = colors .variable },
143+ [" @variable.builtin" ] = { fg = colors .variable_builtin },
144+ [" @variable.member" ] = { fg = colors .member },
145+ [" @variable.parameter" ] = { fg = colors .parameter },
146+ [" @attribute" ] = { fg = colors .attribute },
147+ [" @property" ] = { fg = colors .property },
148+
149+ [" @tag.attribute" ] = { bg = colors .tag },
150+ [" @tag" ] = { bg = colors .tag },
151+
152+ [" @string" ] = { fg = colors .string },
153+ [" @string.special.url" ] = { bg = colors .string },
154+ [" @markup.link.url" ] = { bg = colors .string },
155+
156+ [" @punctuation.bracket" ] = { fg = colors .punctuation },
157+ [" @punctuation.delimiter" ] = { fg = colors .punctuation },
158+
159+ [" @operator" ] = { fg = colors .operator },
160+ [" @constructor" ] = { fg = colors .constructor },
161+
162+ [" @function.call" ] = { fg = colors .call },
163+ [" @function.method.call" ] = { fg = colors .call },
164+ [" @function.builtin" ] = { fg = colors .keyword },
165+
166+ [" @type.builtin" ] = { fg = colors .type },
167+
168+ [" @number" ] = { fg = colors .number },
169+ [" @number.float" ] = { fg = colors .number },
170+
171+ [" @comment" ] = { fg = colors .comment },
172+ [" @function" ] = { fg = colors .functions },
173+ [" @module" ] = { fg = colors .module },
74174 },
75175}
76176
0 commit comments