Debian Codegraph @

contrib/themes/wolf-alabaster-dark.toml

raw symbols SCIP
1 # wolf-alabaster-dark.toml
2 #
3 # Author: Wolf <[email protected]>
4 # Project: https://github.com/wolf/alabaster-for-helix
5 # Download: https://raw.githubusercontent.com/wolf/alabaster-for-helix/main/helix/dot-config/helix/themes/wolf-alabaster-dark.toml
6 #
7 # This is a dark-background theme especically for the Helix editor.
8 #
9 # The most important part here is the syntax stuff, but the theme includes UI stuff specifically for Helix, as well.
10 #
11 # What I care about is:
12 # * Readable syntax, no matter the language
13 # * The error messages provided by the LSP
14 # * Anything special needed to make the UI non-surprising
15 # * Building a minimal definition
16 #
17 # I started from a couple important sources:
18 # * The [priorities and ideas](https://tonsky.me/blog/syntax-highlighting/) behind the Alabaster Theme (which exists for many editors) by Nikita Prokopov
19 # * His [actual repo implementing the theme](https://github.com/tonsky/sublime-scheme-alabaster)
20 # * A [theme template](https://github.com/joegm/helix-theme-template) on GitHub provided by joegm
21
22 # I don't consider this to be done! I absolutely want feedback. I absolutely will continue to tinker.
23
24 # GENERAL - Diagnostics (LSP errors/warnings)
25 warning = { fg = "highlight" }
26 error = { fg = "error-red", modifiers = ["bold"] }
27 info = { fg = "definition" }
28 hint = { fg = "punctuation" }
29 diagnostic = { underline = { style = "curl" } }
30
31 # UI - Interface elements
32 "ui.background" = { bg = "bg" }
33 "ui.text" = { fg = "fg" }
34 "ui.text.focus" = { fg = "active", modifiers = ["bold"] }
35
36 "ui.cursor" = { bg = "active", fg = "bg" }
37 "ui.cursor.primary" = { bg = "active", fg = "bg" }
38 "ui.cursor.match" = { bg = "highlight" }
39 "ui.cursorline" = { bg = "cursorline" }
40 "ui.cursorcolumn" = { bg = "cursorline" }
41
42 "ui.gutter" = { bg = "bg" }
43
44 "ui.selection" = { bg = "selection" }
45 "ui.selection.primary" = { bg = "selection-primary" }
46
47 "ui.linenr" = { fg = "punctuation" }
48 "ui.linenr.selected" = { fg = "active", modifiers = ["bold"] }
49
50 "ui.statusline" = { fg = "fg", bg = "panel" }
51 "ui.statusline.inactive" = { fg = "punctuation", bg = "panel" }
52
53 # Bufferline - make active buffer clearly visible (like onelight-fixed-bufferline)
54 "ui.bufferline.active" = { fg = "fg", bg = "bg", modifiers = ["bold"] }
55 "ui.bufferline.background" = { bg = "bg" }
56 "ui.bufferline" = { fg = "punctuation", bg = "panel" }
57
58 "ui.menu" = { fg = "fg", bg = "panel" }
59 "ui.menu.selected" = { fg = "bg", bg = "active" }
60
61 "ui.popup" = { fg = "fg", bg = "panel" }
62 "ui.popup.info" = { fg = "fg", bg = "panel" }
63 "ui.window" = { fg = "punctuation" }
64 "ui.help" = { fg = "fg", bg = "bg" }
65
66 # Jump labels - extremely visible
67 "ui.virtual.jump-label" = { fg = "jump-label", modifiers = ["bold"] }
68
69 # Virtual text (inlay hints, etc.) - dimmed type color
70 "ui.virtual" = { fg = "inlay-hint" }
71 "ui.virtual.inlay-hint" = { fg = "inlay-hint" }
72 "ui.virtual.ruler" = { bg = "cursorline" }
73
74 # LSP diagnostic inline/expanded text
75 "diagnostic.error" = { underline = { color = "error-red", style = "curl" } }
76 "diagnostic.warning" = { underline = { color = "highlight", style = "curl" } }
77 "diagnostic.info" = { underline = { color = "definition", style = "curl" } }
78 "diagnostic.hint" = { underline = { color = "punctuation", style = "curl" } }
79 "diagnostic.deprecated" = { fg = "punctuation", modifiers = ["crossed_out"] }
80
81 # SYNTAX HIGHLIGHTING - Following Alabaster's minimal approach
82 # Only 4 categories get color: strings, constants, comments, definitions
83 # Everything else (keywords, variables, calls) stays default fg
84
85 "string" = { fg = "string" }
86 "string.regexp" = { fg = "string" }
87 "string.special" = { fg = "string" }
88
89 "constant" = { fg = "constant" }
90 "constant.numeric" = { fg = "constant" }
91 "constant.character" = { fg = "constant" }
92 "constant.builtin" = { fg = "constant" }
93
94 "comment" = { fg = "comment" }
95 "comment.line" = { fg = "comment" }
96 "comment.block" = { fg = "comment" }
97
98 "function" = { fg = "definition" }
99 "function.builtin" = { fg = "definition" }
100 "function.method" = { fg = "definition" }
101
102 "constructor" = { fg = "definition" }
103 "type" = { fg = "definition" }
104 "type.builtin" = { fg = "definition" }
105
106 # These are NOT highlighted (Alabaster philosophy: keywords are obvious)
107 "keyword" = { fg = "fg" }
108 "keyword.control" = { fg = "fg" }
109 "keyword.operator" = { fg = "fg" }
110 "variable" = { fg = "fg" }
111 "variable.parameter" = { fg = "fg" }
112 "variable.builtin" = { fg = "fg" }
113
114 # Punctuation is dimmed
115 "punctuation" = { fg = "punctuation" }
116 "punctuation.bracket" = { fg = "punctuation" }
117 "punctuation.delimiter" = { fg = "punctuation" }
118
119 "operator" = { fg = "punctuation" }
120
121 # Special cases
122 "tag" = { fg = "definition" }
123 "tag.error" = { fg = "error-red", underline = { style = "line" } }
124 "attribute" = { fg = "fg" }
125 "namespace" = { fg = "definition" }
126 "label" = { fg = "constant" }
127
128 # MARKUP - For markdown/documentation
129 "markup.heading" = { fg = "definition", modifiers = ["bold"] }
130 "markup.list" = { fg = "fg" }
131 "markup.bold" = { modifiers = ["bold"] }
132 "markup.italic" = { modifiers = ["italic"] }
133 "markup.link.url" = { fg = "string", modifiers = ["underlined"] }
134 "markup.link.text" = { fg = "definition" }
135 "markup.quote" = { fg = "comment" }
136 "markup.raw" = { fg = "string" }
137
138 # DIFF - Version control
139 "diff.plus" = { fg = "string" }
140 "diff.minus" = { fg = "error-red" }
141 "diff.delta" = { fg = "highlight" }
142
143 [palette]
144 # Core colors (Original Alabaster Dark)
145 fg = "#CECECE" # Main text - light grey
146 bg = "#0E1415" # Background - very dark blue-black
147
148 # The 4 semantic colors (Original Alabaster Dark)
149 string = "#95CB82" # Green - strings & numbers
150 constant = "#CC8BC9" # Magenta - constants, booleans
151 comment = "#DFDF8E" # Yellow - comments (important!)
152 definition = "#71ADE7" # Blue - function/class definitions
153
154 # Supporting colors
155 punctuation = "#8C8C8C" # Grey - dimmed operators/brackets
156 selection = "#1E3A5F" # Very dark blue - secondary selections (subtle)
157 selection-primary = "#4A7BA7" # Bright blue - primary selection (clearly distinct)
158 active = "#CD974B" # Golden brown - cursor, active elements (original Alabaster Dark)
159 highlight = "#FF9800" # Orange - search, warnings
160 error-red = "#DFDF8E" # Yellow - errors (use comment color for visibility)
161 panel = "#252526" # Slightly lighter grey - UI panels, menus, popups
162 cursorline = "#1A2022" # Subtle highlight - cursorline, ruler
163 jump-label = "#FF6B35" # Bright orange - jump destinations
164 inlay-hint = "#4A7090" # Dimmed blue - virtual text (type hints)
165
166 # Diff colors
167 diff-green = "#95CB82" # Green - additions (same as string)
168 diff-red = "#DFDF8E" # Yellow - deletions (same as error-red)
169 diff-orange = "#FF9800" # Orange - changes (same as highlight)