Skip to content

Commit 2ac546b

Browse files
committed
feat(theme): add "omicron" (placeholder name)
1 parent 095227e commit 2ac546b

File tree

2 files changed

+203
-0
lines changed

2 files changed

+203
-0
lines changed

runtime/themes/omicron_dark.toml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
error = "err"
2+
warning = "warn"
3+
info = "diag"
4+
hint = "diag"
5+
diagnostic = { underline = { color = "diag", style = "curl" } }
6+
"diagnostic.error" = { underline = { color = "err", style = "curl" } }
7+
"diagnostic.warning" = { underline = { color = "warn", style = "curl" } }
8+
"diagnostic.deprecated" = { fg = "code_unsafe", modifiers = ["crossed_out"] }
9+
10+
"ui.background" = { bg = "bg" }
11+
"ui.window" = { bg = "bg_ui" }
12+
"ui.gutter" = { bg = "bg_ui" }
13+
# should it be `code`?
14+
"ui.text" = "default"
15+
"ui.text.focus" = { bg = "sel" }
16+
"ui.cursor" = { bg = "#555555" }
17+
"ui.cursor.primary" = { bg = "#777777" }
18+
"ui.cursor.match" = { bg = "#222222" }
19+
"ui.debug" = "default"
20+
"ui.selection" = { bg = "sel" }
21+
"ui.cursorline" = { bg = "sel_weak" }
22+
"ui.cursorcolumn" = { bg = "sel_weak" }
23+
"ui.virtual" = "default_weak"
24+
"ui.virtual.ruler" = { bg = "sel_weak" }
25+
"ui.virtual.inlay-hint" = "default_weak"
26+
"ui.virtual.jump-label" = "sym"
27+
"ui.statusline" = { fg = "default", bg = "bg_ui" }
28+
"ui.bufferline" = { fg = "default", bg = "bg_ui" }
29+
"ui.bufferline.active" = { bg = "sel", modifiers = ["bold"] }
30+
"ui.help" = { fg = "doc", bg = "bg_ui" }
31+
"ui.highlight" = { bg = "sel" }
32+
"ui.menu" = { fg = "code", bg = "bg_ui" }
33+
"ui.menu.selected" = { bg = "sel" }
34+
"ui.popup" = { fg = "code", bg = "bg_ui" }
35+
"ui.picker.header" = { modifiers = ["bold", "underlined"] }
36+
37+
38+
# Tree-Sitter scopes (syntax highlight)
39+
40+
# NOTE: builtin HTML ones can be trivially auto-checked,
41+
# but custom ones (contain hyphens) need highlighting.
42+
#"attribute" = {}
43+
#"tag" = {}
44+
"tag.error" = { fg = "err", underline = { style = "line" } }
45+
"constant" = "literal"
46+
# TO-DO: escapes need highlight, but not unsafe
47+
"constant.character.escape" = "literal_unsafe"
48+
# floats are a plague!
49+
# https://riskledger.com/resources/floating-point-numbers
50+
# https://0.30000000000000004.com/
51+
# https://reddit.com/r/ProgrammerHumor/comments/13gt6co/standagainstfloats
52+
"constant.numeric.float" = "literal_unsafe"
53+
"string" = "literal"
54+
"string.regexp" = "literal_unsafe"
55+
"string.special" = "sym"
56+
"comment" = "doc"
57+
# some are mutable and can be misused without triggering warns
58+
#"variable.builtin" = "literal_unsafe"
59+
"punctuation" = "default_weak"
60+
# beware of the Halting Problem!
61+
"keyword.control.repeat" = "code_unsafe"
62+
"markup.heading" = { modifiers = ["bold"] }
63+
"markup.heading.marker" = "sym"
64+
"markup.bold" = { modifiers = ["bold"] }
65+
"markup.italic" = { modifiers = ["italic"] }
66+
"markup.strikethrough" = { modifiers = ["crossed_out"] }
67+
"markup.link" = { fg = "sym", underline = { style = "line" } }
68+
"markup.quote" = "doc"
69+
70+
"markup.normal" = "default"
71+
"markup.normal.raw" = "code"
72+
"markup.heading.raw" = "code"
73+
"markup.raw" = "code"
74+
75+
"diff.plus" = "green" # + add
76+
"diff.minus" = "red" # - delete
77+
"diff.delta" = "yellow" # ± edit
78+
"diff.delta.moved" = "sym" # -> rename
79+
"diff.delta.conflict" = "err" #
80+
81+
[palette]
82+
bg = "#000000"
83+
bg_ui = "#111111"
84+
default = "#cccccc"
85+
default_weak = "#666666"
86+
code = "#ccffcc"
87+
code_unsafe = "#ffcc77"
88+
red = "#bb3333"
89+
green = "#33aa33"
90+
yellow = "#aaaa33"
91+
sel = "#333333"
92+
sel_weak = "#171717"
93+
err = "#ff2200"
94+
warn = "#eedd33"
95+
diag = "#0077ff"
96+
literal = "#ccee00"
97+
literal_unsafe = "#ff7700"
98+
sym = "#11aaff"
99+
# inspired by ⭐ Gleam
100+
doc = "#eeaaee"

runtime/themes/omicron_light.toml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
error = "err"
2+
warning = "warn"
3+
info = "diag"
4+
hint = "diag"
5+
diagnostic = { underline = { color = "diag", style = "curl" } }
6+
"diagnostic.error" = { underline = { color = "err", style = "curl" } }
7+
"diagnostic.warning" = { underline = { color = "warn", style = "curl" } }
8+
"diagnostic.deprecated" = { fg = "code_unsafe", bg = "code_bg_unsafe", modifiers = [
9+
"crossed_out",
10+
] }
11+
12+
"ui.background" = { bg = "bg" }
13+
"ui.window" = { bg = "bg_ui" }
14+
"ui.gutter" = { bg = "bg_ui" }
15+
# should it be `code`?
16+
"ui.text" = "default"
17+
"ui.text.focus" = { bg = "sel" }
18+
"ui.cursor" = { bg = "#aaaaaa" }
19+
"ui.cursor.primary" = { bg = "#888888" }
20+
"ui.cursor.match" = { bg = "#dddddd" }
21+
"ui.debug" = "default"
22+
"ui.selection" = { bg = "sel" }
23+
"ui.cursorline" = { bg = "sel_weak" }
24+
"ui.cursorcolumn" = { bg = "sel_weak" }
25+
"ui.virtual" = "default_weak"
26+
"ui.virtual.ruler" = { bg = "sel_weak" }
27+
"ui.virtual.inlay-hint" = "default_weak"
28+
"ui.virtual.jump-label" = "sym"
29+
"ui.statusline" = { fg = "default", bg = "bg_ui" }
30+
"ui.bufferline" = { fg = "default", bg = "bg_ui" }
31+
"ui.bufferline.active" = { bg = "sel", modifiers = ["bold"] }
32+
"ui.help" = { fg = "doc", bg = "bg_ui" }
33+
"ui.highlight" = { bg = "sel" }
34+
"ui.menu" = { fg = "code", bg = "bg_ui" }
35+
"ui.menu.selected" = { bg = "sel" }
36+
"ui.popup" = { fg = "code", bg = "bg_ui" }
37+
"ui.picker.header" = { modifiers = ["bold", "underlined"] }
38+
39+
40+
# Tree-Sitter scopes (syntax highlight)
41+
42+
# NOTE: builtin HTML ones can be trivially auto-checked,
43+
# but custom ones (contain hyphens) need highlighting.
44+
#"attribute" = {}
45+
#"tag" = {}
46+
"tag.error" = { fg = "err", underline = { style = "line" } }
47+
"constant" = "literal"
48+
# TO-DO: escapes need highlight, but not unsafe
49+
"constant.character.escape" = "literal_unsafe"
50+
# floats are a plague!
51+
# https://riskledger.com/resources/floating-point-numbers
52+
# https://0.30000000000000004.com/
53+
# https://reddit.com/r/ProgrammerHumor/comments/13gt6co/standagainstfloats
54+
"constant.numeric.float" = { fg = "literal_unsafe", bg = "literal_bg_unsafe" }
55+
"string" = "literal"
56+
"string.regexp" = { fg = "literal_unsafe", bg = "literal_bg_unsafe" }
57+
"string.special" = "sym"
58+
"comment" = "doc"
59+
# some are mutable and can be misused without triggering warns
60+
#"variable.builtin" = "literal_unsafe"
61+
"punctuation" = "default_weak"
62+
# beware of the Halting Problem!
63+
"keyword.control.repeat" = { fg = "code_unsafe", bg = "code_bg_unsafe" }
64+
"markup.heading" = { modifiers = ["bold"] }
65+
"markup.heading.marker" = "sym"
66+
"markup.bold" = { modifiers = ["bold"] }
67+
"markup.italic" = { modifiers = ["italic"] }
68+
"markup.strikethrough" = { modifiers = ["crossed_out"] }
69+
"markup.link" = { fg = "sym", underline = { style = "line" } }
70+
"markup.quote" = "doc"
71+
72+
"markup.normal" = "default"
73+
"markup.normal.raw" = "code"
74+
"markup.heading.raw" = "code"
75+
"markup.raw" = "code"
76+
77+
"diff.plus" = "green" # + add
78+
"diff.minus" = "red" # - delete
79+
"diff.delta" = "yellow" # ± edit
80+
"diff.delta.moved" = "sym" # -> rename
81+
"diff.delta.conflict" = "err" #
82+
83+
[palette]
84+
bg = "#eeeeee"
85+
bg_ui = "#dddddd"
86+
default = "#333333"
87+
default_weak = "#999999"
88+
code = "#003300"
89+
code_unsafe = "#330000"
90+
code_bg_unsafe = "#eeaabb"
91+
red = "#880000"
92+
green = "#007700"
93+
yellow = "#777700"
94+
sel = "#cccccc"
95+
sel_weak = "#e7e7e7"
96+
err = "#ff0000"
97+
warn = "#bbaa00"
98+
diag = "#0066aa"
99+
literal = "#779900"
100+
literal_unsafe = "#441100"
101+
literal_bg_unsafe = "#eebb99"
102+
sym = "#00aaff"
103+
doc = "#770077"

0 commit comments

Comments
 (0)