Skip to content

Commit 902c2da

Browse files
committed
feat(theme): add "omicron" (placeholder name)
1 parent 68c7e87 commit 902c2da

File tree

2 files changed

+198
-0
lines changed

2 files changed

+198
-0
lines changed

runtime/themes/omicron_dark.toml

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

runtime/themes/omicron_light.toml

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

0 commit comments

Comments
 (0)