Skip to content

Commit da92aa0

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

File tree

2 files changed

+194
-0
lines changed

2 files changed

+194
-0
lines changed

runtime/themes/omicron_dark.toml

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

runtime/themes/omicron_light.toml

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

0 commit comments

Comments
 (0)