Skip to content

Commit df523b8

Browse files
xStormyyjgmdev
authored andcommitted
Add Oxocarbon Light theme (& small enhancements to Oxocarbon Dark) (#46)
* Add bracketmatch coloring to oxocarbon-dark * add light version of oxocarbon * Add oxocarbon light to manifest.json * added drag_overlay, nagbar and whitespace coloring to oxocarbon-light.lua * added drag_overlay, nagbar and whitespace coloring to oxocarbon-dark.lua * darkend background when nagbar in oxocarbon-light.lua * darkend background when nagbar in oxocarbon-dark.lua
1 parent 93f517e commit df523b8

File tree

3 files changed

+177
-2
lines changed

3 files changed

+177
-2
lines changed

colors/oxocarbon-dark.lua

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ style.syntax["literal"] = base04 -- literals
3434
style.syntax["string"] = base15 -- strings
3535
style.syntax["operator"] = base08 -- operators
3636
style.syntax["function"] = base08 -- functions
37+
style.syntax["whitespace"] = base02 -- whitespace
3738

3839
style.caret = base06 -- caret
3940

4041
style.line_highlight = base01 -- editor line highlighting
4142
style.selection = base02 -- editor selection
4243

43-
style.bracketmatch_color = base02
44-
4544
style.guide = base02 -- indentation guide
4645
style.guide_highlighting = base02 -- indentation guide
4746

@@ -56,6 +55,17 @@ style.divider = base00 -- borders
5655
style.line_number = base03 -- inactive
5756
style.line_number2 = base04 -- active
5857

58+
style.drag_overlay = { common.color "rgba(255, 255, 255, 0.30)" }
59+
style.drag_overlay_tab = base03
60+
61+
style.scrollbar = base01 -- scrollbar button when not interacted
62+
style.scrollbar2 = base03 -- button when you hover over
63+
style.scrollbar_track = base01 -- scrollbar track
64+
65+
style.nagbar = base10
66+
style.nagbar_text = base01
67+
style.nagbar_dim = { common.color "rgba(0, 0, 0, 0.30)" }
68+
5969
-- Evergreen
6070
style.syntax["attribute"] = base14
6171
style.syntax["boolean"] = base09
@@ -130,3 +140,9 @@ style.gitstatus_deletion = base10
130140
style.gitdiff_addition = base13
131141
style.gitdiff_modification = base09
132142
style.gitdiff_deletion = base10
143+
144+
-- bracketmatch
145+
style.bracketmatch_color = base06
146+
style.bracketmatch_char_color = base09
147+
style.bracketmatch_block_color = base03
148+
style.bracketmatch_frame_color = base06

colors/oxocarbon-light.lua

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
-- Theme by @xStormyy on github
2+
-- Original Color Scheme: https://github.com/nyoom-engineering/oxocarbon
3+
4+
local style = require "core.style"
5+
local common = require "core.common"
6+
7+
local base00 = { common.color "#ffffff" }
8+
local base01 = { common.color "#f2f2f2" }
9+
local base02 = { common.color "#d0d0d0" }
10+
local base03 = { common.color "#161616" }
11+
local base04 = { common.color "#37474F" }
12+
local base05 = { common.color "#90A4AE" }
13+
local base06 = { common.color "#525252" }
14+
local base07 = { common.color "#08bdba" }
15+
local base08 = { common.color "#ff7eb6" }
16+
local base09 = { common.color "#ee5396" }
17+
local base10 = { common.color "#FF6F00" }
18+
local base11 = { common.color "#0f62fe" }
19+
local base12 = { common.color "#673AB7" }
20+
local base13 = { common.color "#42be65" }
21+
local base14 = { common.color "#be95ff" }
22+
local base15 = { common.color "#FFAB91" }
23+
24+
style.background = base00 -- editor
25+
style.syntax["normal"] = base06 -- editor text
26+
27+
style.syntax["symbol"] = base15 -- symbols
28+
style.syntax["comment"] = base03 -- comments
29+
style.syntax["keyword"] = base09 -- keywords like function, local, if, end, in lua
30+
style.syntax["keyword2"] = base09 -- types
31+
-- style.syntax["keyword3"] = { common.color "#FF000FF" } -- absolutely no idea
32+
style.syntax["number"] = base09 -- numbers
33+
style.syntax["literal"] = base04 -- literals
34+
style.syntax["string"] = base14 -- strings
35+
style.syntax["operator"] = base08 -- operators
36+
style.syntax["function"] = base08 -- functions
37+
style.syntax["whitespace"] = base02 -- whitespace
38+
39+
style.caret = base06 -- caret
40+
41+
style.line_highlight = base01 -- editor line highlighting
42+
style.selection = base02 -- editor selection
43+
44+
style.guide = base02 -- indentation guide
45+
style.guide_highlighting = base02 -- indentation guide
46+
47+
-- User Interface
48+
style.background2 = base00 -- sidebar
49+
style.background3 = base00 -- status bar
50+
style.text = base04 -- user interface text
51+
52+
style.accent = style.caret -- accent color
53+
style.divider = base00 -- borders
54+
55+
style.line_number = base03 -- inactive
56+
style.line_number2 = base04 -- active
57+
58+
style.drag_overlay = { common.color "rgba(0, 0, 0, 0.30)" }
59+
style.drag_overlay_tab = base03
60+
61+
style.scrollbar = base02 -- scrollbar button when not interacted
62+
style.scrollbar2 = base02 -- button when you hover over
63+
style.scrollbar_track = base01 -- scrollbar track
64+
65+
style.nagbar = base09
66+
style.nagbar_text = base01
67+
style.nagbar_dim = { common.color "rgba(0, 0, 0, 0.30)" }
68+
69+
-- Evergreen
70+
style.syntax["attribute"] = base14
71+
style.syntax["boolean"] = base09
72+
style.syntax["character"] = base13
73+
style.syntax["comment"] = base03
74+
style.syntax["comment.documentation"] = base04
75+
style.syntax["conditional"] = base09
76+
style.syntax["conditional.ternary"] = base09
77+
style.syntax["constant"] = base04
78+
style.syntax["constant.builtin"] = base07
79+
style.syntax["constructor"] = base09
80+
style.syntax["define"] = base09
81+
style.syntax["exception"] = base09
82+
style.syntax["field"] = base04
83+
style.syntax["float"] = base09
84+
style.syntax["function"] = base12
85+
style.syntax["function.call"] = base08
86+
style.syntax["function.macro"] = base07
87+
style.syntax["include"] = base09
88+
style.syntax["keyword.function"] = base12
89+
style.syntax["keyword.operator"] = base09
90+
style.syntax["keyword.return"] = base09
91+
style.syntax["label"] = base09
92+
style.syntax["method"] = base07
93+
style.syntax["method.call"] = base06
94+
style.syntax["namespace"] = base07
95+
style.syntax["number"] = base09
96+
style.syntax["operator"] = base09
97+
style.syntax["parameter"] = base04
98+
style.syntax["preproc"] = base09
99+
style.syntax["punctuation.delimiter"] = base08
100+
style.syntax["punctuation.brackets"] = base08
101+
style.syntax["punctuation.special"] = base08
102+
style.syntax["repeat"] = base09
103+
style.syntax["storageclass"] = base09
104+
style.syntax["storageclass.lifetime"] = base09
105+
style.syntax["string"] = base14
106+
style.syntax["tag"] = base04
107+
style.syntax["tag.attribute"] = base14
108+
style.syntax["tag.delimiter"] = base14
109+
style.syntax["text.diff.add"] = base07
110+
style.syntax["text.diff.delete"] = base10
111+
style.syntax["type"] = base09
112+
style.syntax["type.builtin"] = base09
113+
style.syntax["type.definition"] = base09 -- unsure
114+
style.syntax["type.qualifier"] = base09 -- unsure
115+
style.syntax["variable"] = base04
116+
style.syntax["variable.builtin"] = base04
117+
style.syntax["error"] = base08
118+
119+
-- lint+
120+
style.lint = {} -- Lint+
121+
style.lint.info = base13 -- Lint+ info
122+
style.lint.hint = base14 -- Lint+ hint
123+
style.lint.warning = base07 -- Lint+ warning
124+
style.lint.error = base10 -- Lint+ error
125+
126+
-- rainbowparen
127+
style.syntax.paren_unbalanced = base10
128+
style.syntax.paren1 = base12
129+
style.syntax.paren2 = base13
130+
style.syntax.paren3 = base09
131+
style.syntax.paren4 = base15
132+
style.syntax.paren5 = base14
133+
134+
-- gitstatus
135+
style.gitstatus_addition = base13
136+
style.gitstatus_modification = base09
137+
style.gitstatus_deletion = base10
138+
139+
-- gitdiff_highlight
140+
style.gitdiff_addition = base13
141+
style.gitdiff_modification = base09
142+
style.gitdiff_deletion = base10
143+
144+
-- bracketmatch
145+
style.bracketmatch_color = base03
146+
style.bracketmatch_char_color = base09
147+
style.bracketmatch_block_color = base05
148+
style.bracketmatch_frame_color = base06

manifest.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,17 @@
454454
"dark"
455455
],
456456
"type" : "color",
457+
"version" : "0.2"
458+
},
459+
{
460+
"id" : "oxocarbon-light",
461+
"mod_version" : "3.0.0",
462+
"name" : "Oxocarbon Light",
463+
"path" : "colors/oxocarbon-light.lua",
464+
"tags" : [
465+
"light"
466+
],
467+
"type" : "color",
457468
"version" : "0.1"
458469
},
459470
{

0 commit comments

Comments
 (0)