Debian Codegraph @

runtime/themes/omicron_light.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", bg = "code_bg_unsafe", modifiers = [
11 "crossed_out",
12 ] }
13
14 "ui.background" = { bg = "bg" }
15 "ui.window" = { bg = "bg_ui" }
16 "ui.gutter" = { bg = "bg_ui" }
17 "ui.linenr" = "default_weak"
18 "ui.linenr.selected" = "default"
19 "ui.text" = "default"
20 "ui.text.focus" = { bg = "sel" }
21 # secondary
22 "ui.cursor" = { fg = "#eee", bg = "#333" }
23 # it only uses 1 cell, and it must be skimmable,
24 # so force max contrast
25 "ui.cursor.primary" = { fg = "#fff", bg = "#000" }
26 "ui.cursor.match" = { bg = "#ccc" }
27 "ui.debug" = "default"
28 # it feels questionable, but it's more consistent and clean than `reversed`;
29 # some web-browsers do the same
30 "ui.selection" = { fg = "#ddd", bg = "#555" }
31 "ui.cursorline" = { bg = "sel_weak" }
32 "ui.cursorcolumn" = { bg = "sel_weak" }
33 "ui.virtual" = "ghost"
34 "ui.virtual.ruler" = { bg = "sel_weak" }
35 "ui.virtual.inlay-hint" = "ghost"
36 # these are ephemeral and user-controllable,
37 # are not part of the buffer,
38 # should be skimmable,
39 # so override FG & BG to guarantee contrast
40 # while also signaling that they are special text
41 "ui.virtual.jump-label" = { fg = "#000", bg = "sym" }
42 "ui.statusline" = { fg = "default", bg = "bg_ui" }
43 "ui.bufferline" = { fg = "default", bg = "bg_ui" }
44 "ui.bufferline.active" = { bg = "sel", modifiers = ["bold"] }
45 "ui.help" = { fg = "doc", bg = "bg_ui" }
46 "ui.highlight" = { bg = "sel" }
47 "ui.menu" = { fg = "code", bg = "bg_ui" }
48 "ui.menu.selected" = { bg = "sel" }
49 "ui.popup" = { fg = "#000", bg = "#ccc" }
50 "ui.picker.header" = { modifiers = ["bold", "underlined"] }
51
52
53 # Tree-Sitter scopes (syntax highlight)
54
55 # NOTE: builtin HTML ones can be trivially auto-checked,
56 # but custom ones (contain hyphens) need highlighting.
57 #"attribute" = {}
58 #"tag" = {}
59 "tag.error" = { fg = "err", underline = { style = "line" } }
60 "constant" = "literal"
61 # TO-DO: escapes need highlight, but not unsafe
62 "constant.character.escape" = "literal_unsafe"
63 # floats are a plague!
64 # https://github.com/you-dont-need/You-Dont-Need/issues/13
65 "constant.numeric.float" = { fg = "literal_unsafe", bg = "literal_bg_unsafe" }
66 "string" = "literal"
67 "string.regexp" = { fg = "literal_unsafe", bg = "literal_bg_unsafe" }
68 "string.special" = "sym"
69 "comment" = "doc"
70 # some are mutable and can be misused without triggering warns
71 #"variable.builtin" = "literal_unsafe"
72 "punctuation" = "default_weak"
73 # beware of the Halting Problem!
74 "keyword.control.repeat" = { fg = "code_unsafe", bg = "code_bg_unsafe" }
75 "markup.heading" = { modifiers = ["bold"] }
76 "markup.heading.marker" = "sym"
77 "markup.bold" = { modifiers = ["bold"] }
78 "markup.italic" = { modifiers = ["italic"] }
79 "markup.strikethrough" = { modifiers = ["crossed_out"] }
80 "markup.link" = { fg = "sym", underline = { style = "line" } }
81 "markup.quote" = "doc"
82
83 "markup.normal" = "default"
84 "markup.normal.raw" = "code"
85 "markup.heading.raw" = "code"
86 "markup.raw" = "code"
87
88 "diff.plus" = "green" # + add
89 "diff.minus" = "red" # - delete
90 "diff.delta" = "yellow" # ± edit
91 "diff.delta.moved" = "sym" # -> rename
92 "diff.delta.conflict" = "err" # ❌
93
94 [palette]
95 bg = "#eee"
96 bg_ui = "#ddd"
97 default = "#333"
98 default_weak = "#666"
99 ghost = "#999"
100 code = "#363"
101 code_unsafe = "#300"
102 code_bg_unsafe = "#edd"
103 red = "#800"
104 green = "#070"
105 yellow = "#770"
106 sel = "#ccc"
107 sel_weak = "#e7e7e7"
108 err = "#f00"
109 warn = "#ba0"
110 diag = "#06a"
111 literal = "#093"
112 literal_unsafe = "#410"
113 literal_bg_unsafe = "#eca"
114 sym = "#0af"
115 doc = "#707"