Debian Codegraph @

runtime/themes/omicron_dark.toml

raw symbols SCIP
1 # Author: Ricardo Fernández Serrata <[email protected]>
2
3 error = "err"
4 warning = "warn"
5 hint = "diag"
6 info = "diag"
7 diagnostic = { underline = { color = "ghost", style = "curl" } }
8 "diagnostic.error" = { underline = { color = "err", style = "curl" } }
9 "diagnostic.warning" = { underline = { color = "warn", style = "curl" } }
10 "diagnostic.deprecated" = { fg = "code_unsafe", modifiers = ["crossed_out"] }
11
12 "ui.background" = { bg = "bg" }
13 "ui.window" = { bg = "bg_ui" }
14 "ui.gutter" = { bg = "bg_ui" }
15 "ui.linenr" = "default_weak"
16 "ui.linenr.selected" = "default"
17 "ui.text" = "default"
18 "ui.text.focus" = { bg = "sel" }
19 # secondary
20 "ui.cursor" = { fg = "#111", bg = "#ccc" }
21 # it only uses 1 cell, and it must be skimmable,
22 # so force max contrast
23 "ui.cursor.primary" = { fg = "#000", bg = "#fff" }
24 "ui.cursor.match" = { bg = "#333" }
25 "ui.debug" = "default"
26 # it feels questionable, but it's more consistent and clean than `reversed`;
27 # some web-browsers do the same
28 "ui.selection" = { fg = "#222", bg = "#aaa" }
29 "ui.cursorline" = { bg = "sel_weak" }
30 "ui.cursorcolumn" = { bg = "sel_weak" }
31 "ui.virtual" = "ghost"
32 "ui.virtual.ruler" = { bg = "sel_weak" }
33 "ui.virtual.inlay-hint" = "ghost"
34 # these are ephemeral and user-controllable,
35 # are not part of the buffer,
36 # should be skimmable,
37 # so override FG & BG to guarantee contrast
38 # while also signaling that they are special text
39 "ui.virtual.jump-label" = { fg = "#fff", bg = "sym" }
40 "ui.statusline" = { fg = "default", bg = "bg_ui" }
41 "ui.bufferline" = { fg = "default", bg = "bg_ui" }
42 "ui.bufferline.active" = { bg = "sel", modifiers = ["bold"] }
43 "ui.help" = { fg = "doc", bg = "bg_ui" }
44 "ui.highlight" = { bg = "sel" }
45 "ui.menu" = { fg = "code", bg = "bg_ui" }
46 "ui.menu.selected" = { bg = "sel" }
47 "ui.popup" = { fg = "#fff", bg = "#333" }
48 "ui.picker.header" = { modifiers = ["bold", "underlined"] }
49
50
51 # Tree-Sitter scopes (syntax highlight)
52
53 # NOTE: builtin HTML ones can be trivially auto-checked,
54 # but custom ones (contain hyphens) need highlighting.
55 #"attribute" = {}
56 #"tag" = {}
57 "tag.error" = { fg = "err", underline = { style = "line" } }
58 "constant" = "literal"
59 # TO-DO: escapes need highlight, but not unsafe
60 "constant.character.escape" = "literal_unsafe"
61 # floats are a plague!
62 # https://github.com/you-dont-need/You-Dont-Need/issues/13
63 "constant.numeric.float" = "literal_unsafe"
64 "string" = "literal"
65 "string.regexp" = "literal_unsafe"
66 "string.special" = "sym"
67 "comment" = "doc"
68 # some are mutable and can be misused without triggering warns
69 #"variable.builtin" = "literal_unsafe"
70 "punctuation" = "default_weak"
71 # beware of the Halting Problem!
72 "keyword.control.repeat" = "code_unsafe"
73 "markup.heading" = { modifiers = ["bold"] }
74 "markup.heading.marker" = "sym"
75 "markup.bold" = { modifiers = ["bold"] }
76 "markup.italic" = { modifiers = ["italic"] }
77 "markup.strikethrough" = { modifiers = ["crossed_out"] }
78 "markup.link" = { fg = "sym", underline = { style = "line" } }
79 "markup.quote" = "doc"
80
81 "markup.normal" = "default"
82 "markup.normal.raw" = "code"
83 "markup.heading.raw" = "code"
84 "markup.raw" = "code"
85
86 "diff.plus" = "green" # + add
87 "diff.minus" = "red" # - delete
88 "diff.delta" = "yellow" # ± edit
89 "diff.delta.moved" = "sym" # -> rename
90 "diff.delta.conflict" = "err" # ❌
91
92 [palette]
93 bg = "#000"
94 bg_ui = "#111"
95 default = "#ccc"
96 default_weak = "#999"
97 ghost = "#666"
98 code = "#9c9"
99 code_unsafe = "#fc7"
100 red = "#b33"
101 green = "#3a3"
102 yellow = "#aa3"
103 sel = "#333"
104 sel_weak = "#171717"
105 # I call this "eye-piercing red" because
106 # it's designed to be jarring like a laser
107 err = "#f20"
108 warn = "#ed3"
109 diag = "#07f"
110 literal = "#0d7"
111 literal_unsafe = "#f70"
112 sym = "#1af"
113 # inspired by ⭐ Gleam's "faf pink"
114 doc = "#c7c"