Skip to content

Commit 5064706

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

File tree

2 files changed

+207
-0
lines changed

2 files changed

+207
-0
lines changed

runtime/themes/omicron_dark.toml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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+
# ideally it should be BG not FG,
27+
# but selection-color makes it tricky to keep contrast
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" = "literal_unsafe"
55+
"string" = "literal"
56+
"string.regexp" = "literal_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" = "code_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 = "#000000"
85+
bg_ui = "#111111"
86+
default = "#cccccc"
87+
default_weak = "#666666"
88+
code = "#ccffcc"
89+
code_unsafe = "#ffcc77"
90+
red = "#bb3333"
91+
green = "#33aa33"
92+
yellow = "#aaaa33"
93+
sel = "#333333"
94+
sel_weak = "#171717"
95+
err = "#ff2200"
96+
warn = "#eedd33"
97+
diag = "#0077ff"
98+
literal = "#ccee00"
99+
literal_unsafe = "#ff7700"
100+
sym = "#11aaff"
101+
# inspired by ⭐ Gleam
102+
doc = "#eeaaee"

runtime/themes/omicron_light.toml

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

0 commit comments

Comments
 (0)