Debian Codegraph @

contrib/themes/wolf-alabaster-light.toml

raw symbols SCIP
1 # wolf-alabaster-light.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-light.toml
6 #
7 # This is a light-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 = "cursor-secondary", fg = "bg" }
37 "ui.cursor.primary" = { bg = "active", fg = "bg" }
38 # Bracket matching: Helix only styles the *other* bracket via ui.match, not the one
39 # under the cursor. ui.cursor.match affects cursor appearance, not the bracket itself.
40 # Following tonsky's Sublime approach (blue + underline) as closely as Helix allows.
41 "ui.cursor.match" = { fg = "active", underline = { style = "line" } }
42 "ui.match" = { fg = "active", underline = { style = "line" } }
43 "ui.cursorline.primary" = { bg = "cursorline-primary" }
44 "ui.cursorline" = { bg = "cursorline" }
45 "ui.cursorcolumn" = { bg = "cursorline" }
46
47 "ui.gutter" = { bg = "bg" }
48
49 "ui.selection" = { bg = "selection" }
50 "ui.selection.primary" = { bg = "selection-primary" }
51
52 "ui.linenr" = { fg = "punctuation" }
53 "ui.linenr.selected" = { fg = "active", modifiers = ["bold"] }
54
55 "ui.statusline" = { fg = "fg", bg = "panel" }
56 "ui.statusline.inactive" = { fg = "punctuation", bg = "panel" }
57
58 # Bufferline - make active buffer clearly visible (like onelight-fixed-bufferline)
59 "ui.bufferline.active" = { fg = "fg", bg = "bg", modifiers = ["bold"] }
60 "ui.bufferline.background" = { bg = "bg" }
61 "ui.bufferline" = { fg = "punctuation", bg = "panel" }
62
63 "ui.menu" = { fg = "fg", bg = "panel" }
64 "ui.menu.selected" = { fg = "bg", bg = "active" }
65
66 "ui.popup" = { fg = "fg", bg = "panel" }
67 "ui.popup.info" = { fg = "fg", bg = "panel" }
68 "ui.window" = { fg = "punctuation" }
69 "ui.help" = { fg = "fg", bg = "bg" }
70
71 # Jump labels - extremely visible
72 "ui.virtual.jump-label" = { fg = "jump-label", modifiers = ["bold"] }
73
74 # Virtual text (inlay hints, etc.) - dimmed type color
75 "ui.virtual" = { fg = "inlay-hint" }
76 "ui.virtual.inlay-hint" = { fg = "inlay-hint" }
77 "ui.virtual.ruler" = { bg = "cursorline" }
78
79 # LSP diagnostic inline/expanded text
80 "diagnostic.error" = { underline = { color = "error-red", style = "curl" } }
81 "diagnostic.warning" = { underline = { color = "highlight", style = "curl" } }
82 "diagnostic.info" = { underline = { color = "definition", style = "curl" } }
83 "diagnostic.hint" = { underline = { color = "punctuation", style = "curl" } }
84 "diagnostic.deprecated" = { fg = "punctuation", modifiers = ["crossed_out"] }
85
86 # SYNTAX HIGHLIGHTING - Following Alabaster's minimal approach
87 # Only 4 categories get color: strings, constants, comments, definitions
88 # Everything else (keywords, variables, calls) stays default fg
89
90 "string" = { fg = "string" }
91 "string.regexp" = { fg = "string" }
92 "string.special" = { fg = "string" }
93
94 "constant" = { fg = "constant" }
95 "constant.numeric" = { fg = "constant" }
96 "constant.character" = { fg = "constant" }
97 "constant.builtin" = { fg = "constant" }
98
99 "comment" = { fg = "comment" }
100 "comment.line" = { fg = "comment" }
101 "comment.block" = { fg = "comment" }
102
103 "function" = { fg = "definition" }
104 # Helix uses function.builtin only at call sites (no builtin definitions exist),
105 # so we treat it as a call—unhighlighted per tonsky's philosophy.
106 "function.builtin" = { fg = "fg" }
107 "function.method" = { fg = "definition" }
108 "function.call" = { fg = "fg" }
109 "function.method.call" = { fg = "fg" }
110
111 "constructor" = { fg = "definition" }
112 "type" = { fg = "fg" }
113 "type.definition" = { fg = "definition" }
114 "type.builtin" = { fg = "fg" }
115
116 # These are NOT highlighted (Alabaster philosophy: keywords are obvious)
117 "keyword" = { fg = "fg" }
118 "keyword.control" = { fg = "fg" }
119 "keyword.operator" = { fg = "fg" }
120 "variable" = { fg = "fg" }
121 "variable.parameter" = { fg = "fg" }
122 "variable.builtin" = { fg = "fg" }
123
124 # Punctuation is dimmed
125 "punctuation" = { fg = "punctuation" }
126 "punctuation.bracket" = { fg = "punctuation" }
127 "punctuation.delimiter" = { fg = "punctuation" }
128
129 "operator" = { fg = "punctuation" }
130
131 # Special cases
132 "tag" = { fg = "definition" }
133 "tag.error" = { fg = "error-red", underline = { style = "line" } }
134 "attribute" = { fg = "fg" }
135 "namespace" = { fg = "fg" }
136 "label" = { fg = "constant" }
137
138 # MARKUP - For markdown/documentation
139 "markup.heading" = { fg = "definition", modifiers = ["bold"] }
140 "markup.list" = { fg = "fg" }
141 "markup.bold" = { modifiers = ["bold"] }
142 "markup.italic" = { modifiers = ["italic"] }
143 "markup.link.url" = { fg = "string", modifiers = ["underlined"] }
144 "markup.link.text" = { fg = "definition" }
145 "markup.quote" = { fg = "comment" }
146 "markup.raw" = { fg = "string" }
147
148 # DIFF - Version control
149 "diff.plus" = { fg = "string" }
150 "diff.minus" = { fg = "error-red" }
151 "diff.delta" = { fg = "highlight" }
152
153 [palette]
154 # Core colors (Alabaster-inspired)
155 fg = "#000000" # Main text (Alabaster uses pure black)
156 bg = "#F7F7F7" # Background (Alabaster's light grey)
157
158 # The 4 semantic colors
159 string = "#448C27" # Green - strings & numbers
160 constant = "#7A3E9D" # Magenta - constants, booleans
161 comment = "#AA3731" # Red - comments (important!)
162 definition = "#325CC0" # Blue - function/class definitions
163
164 # Supporting colors
165 punctuation = "#777777" # Grey - dimmed operators/brackets
166 selection = "#DDE7ED" # Light gray-blue - secondary selections (subtle but distinct)
167 selection-primary = "#BFDBFE" # Light blue - primary selection (original Alabaster)
168 active = "#007ACC" # Bright blue - cursor, active elements
169 cursor-secondary = "#5A9DC4" # Dimmed blue - secondary cursors (multi-cursor)
170 highlight = "#FFBC5D" # Orange - search, warnings
171 error-red = "#AA3731" # Red - errors
172 panel = "#EEEEEE" # Darker grey - UI panels, menus, popups
173 cursorline = "#F3F3F3" # Subtle highlight - secondary cursorline
174 cursorline-primary = "#EFEFEF" # Primary cursorline (tonsky's original)
175 jump-label = "#FF4500" # Bright orange-red - jump destinations
176 inlay-hint = "#8090B8" # Dimmed blue - virtual text (type hints)
177
178 # Diff colors
179 diff-green = "#448C27" # Green - additions (same as string)
180 diff-red = "#AA3731" # Red - deletions (same as error-red)
181 diff-orange = "#FFBC5D" # Orange - changes (same as highlight)