Skip to content

Commit eee95c2

Browse files
committed
feat(theme): add "omicron" (placeholder name)
1 parent d966e12 commit eee95c2

File tree

2 files changed

+192
-0
lines changed

2 files changed

+192
-0
lines changed

runtime/themes/omicron_dark.toml

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

runtime/themes/omicron_light.toml

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

0 commit comments

Comments
 (0)