fork/helix

git clone https://git.julia.blue/fork/helix

Henrik TjäderTheme: Papercolor: Cleanup, linting and using inheritance (#8276)764172d5

23.10
7.7 KiB210 linesraw
1# Palette based on https://github.com/NLKNguyen/papercolor-theme
2# Author: Soc Virnyl Estela <socvirnyl.estela@gmail.com>
3
4"ui.linenr.selected" = { fg = "cursorlinenr_fg", modifiers = ["bold"] }
5"ui.linenr" = { fg = "linenumber_fg" }
6"ui.background" = { bg = "background" }
7"ui.text" = "foreground"
8"ui.text.focus" = { fg = "selection_bg", modifiers = ["bold"] }
9"ui.selection" = { bg = "selection_secondary_bg", fg = "selection_secondary_fg" }
10"ui.selection.primary" = { bg = "selection_bg", fg = "selection_fg" }
11"ui.highlight" = { bg = "cursorline_bg" }
12
13"ui.cursorline" = { bg = "cursorline_bg" }
14"ui.cursorline.secondary" = { bg = "cursorline_secondary_bg" }
15"ui.cursorcolumn" = { bg = "cursorline_bg" }
16"ui.cursorcolumn.secondary" = { bg = "cursorcolumn_secondary_bg" }
17
18"ui.statusline" = { bg = "statusline_active_bg", fg = "statusline_active_fg" }
19"ui.statusline.inactive" = { bg = "statusline_inactive_bg", fg = "statusline_inactive_fg" }
20"ui.statusline.normal" = { bg = "statusline_inactive_bg", fg = "bright6" }
21"ui.statusline.insert" = { bg = "statusline_inactive_bg", fg = "bright4" }
22"ui.statusline.select" = { bg = "statusline_inactive_bg", fg = "regular3" }
23"ui.statusline.separator" = { bg = "statusline_active_bg", fg = "statusline_active_bg" }
24
25"ui.virtual" = { fg = "cursorlinenr_fg" }
26"ui.virtual.whitespace" = { fg = "regular5" }
27"ui.virtual.indent-guide" = { fg = "bright0" }
28"ui.virtual.ruler" = { bg = "cursorline_secondary_bg", fg = "regular4" }
29"ui.cursor.match" = { bg = "matchparen_bg", fg = "matchparen_fg" }
30"ui.cursor" = { bg = "regular5", fg = "background" }
31"ui.cursor.primary" = { bg = "foreground", fg = "background" }
32"ui.window" = { fg = "vertsplit_fg" }
33"ui.help" = { bg = "wildmenu_bg", fg = "wildmenu_fg" }
34"ui.popup" = { bg = "popupmenu_bg", fg = "popupmenu_fg" }
35"ui.popup.info" = { bg = "popupmenu_bg", fg = "bright7", modifiers = ["bold"] }
36"ui.menu" = { bg = "popupmenu_bg", fg = "foreground" }
37"ui.menu.selected" = { bg = "selection_bg", fg = "selection_fg" }
38
39"warning" = "bright5"
40"error" = { bg = "error_bg", fg = "error_fg" }
41"info" = "todo_fg"
42
43"diagnostic.warning" = { fg = "bright0", modifiers = [
44  "dim",
45], underline = { color = "bright5", style = "curl" } }
46"diagnostic.error".underline = { color = "bright1", style = "curl" }
47"diagnostic.info".underline = { color = "bright4", style = "curl" }
48"diagnostic.hint".underline = { color = "bright6", style = "curl" }
49
50# Tree-sitter scopes for syntax highlighting
51"attribute" = "bright4"
52
53"type" = { fg = "bright2", modifiers = ["bold"] }
54"type.builtin" = { fg = "bright2", modifiers = ["bold"] }
55"type.enum" = { fg = "foreground" }
56"type.enum.variant" = { fg = "foreground" }
57
58"constructor" = "foreground"
59
60"constant" = "bright5"
61"constant.builtin" = "regular3"
62"constant.builtin.boolean" = { fg = "regular2", modifiers = ["bold"] }
63"constant.character.escape" = { fg = "bright3", modifiers = ["bold"] }
64"constant.character" = { fg = "regular3" }
65"constant.numeric" = "bright5"
66
67"string" = "regular3"
68"string.regexp" = "bright3"
69
70"comment" = { fg = "regular5", modifiers = ["italic"] }
71"comment.line" = { fg = "regular5", modifiers = ["italic"] }
72"comment.block" = { fg = "regular5", modifiers = ["italic"] }
73"comment.block.documentation" = { fg = "regular5", modifiers = ["bold"] }
74
75"variable" = "foreground"
76"variable.builtin" = "bright5"
77"variable.other.member" = "foreground"
78"variable.parameter" = "foreground"
79
80"label" = { fg = "selection_bg", modifiers = ["bold", "italic"] }
81
82"punctuation" = { fg = "foreground" }
83"punctuation.delimiter" = { fg = "regular4", modifiers = ["bold"] }
84"punctuation.bracket" = { fg = "foreground" }
85"punctuation.special" = { fg = "bright1", modifiers = ["bold"] }
86
87"keyword" = { fg = "bright2" }
88"keyword.control" = "bright1"
89"keyword.control.conditional" = { fg = "bright3", modifiers = ["bold"] }
90"keyword.control.repeat" = { fg = "bright3", modifiers = ["bold"] }
91"keyword.control.import" = { fg = "bright2" }
92"keyword.control.return" = { fg = "bright2" }
93"keyword.control.exception" = { fg = "bright1" }
94
95"keyword.operator" = { fg = "regular4", modifiers = ["bold"] }
96"keyword.directive" = "regular4"
97"keyword.function" = "bright2"
98"keyword.storage" = "bright2"
99"keyword.storage.type" = { fg = "regular4", modifiers = ["bold"] }
100"keyword.storage.modifier" = { fg = "regular6", modifiers = ["bold"] }
101"keyword.storage.modifier.ref" = { fg = "regular4", modifiers = ["bold"] }
102"keyword.special" = "bright1"
103
104"operator" = { fg = "regular4", modifiers = ["bold"] }
105
106"function" = { fg = "foreground" }
107"function.builtin" = { fg = "bright6" }
108"function.method" = { fg = "foreground" }
109"function.macro" = { fg = "regular3", modifiers = ["bold"] }
110"function.special" = { fg = "bright4" }
111
112"tag" = { fg = "regular4" }
113
114"namespace" = "bright6"
115
116"special" = "special"
117
118"markup.heading" = { fg = "bright4", modifiers = ["bold"] }
119"markup.heading.marker" = { fg = "bright2", modifiers = ["bold"] }
120"markup.heading.1" = { fg = "bright2", modifiers = ["bold"] }
121"markup.heading.2" = { fg = "bright5", modifiers = ["bold"] }
122"markup.heading.3" = { fg = "bright3", modifiers = ["bold"] }
123"markup.heading.4" = { fg = "bright4", modifiers = ["bold"] }
124"markup.heading.5" = { fg = "bright4", modifiers = ["bold"] }
125"markup.heading.6" = { fg = "bright4", modifiers = ["bold"] }
126"markup.list" = "regular4"
127"markup.bold" = { fg = "foreground", modifiers = ["bold"] }
128"markup.italic" = { modifiers = ["italic"] }
129"markup.strikethrough" = { modifiers = ["crossed_out"] }
130"markup.link.url" = { fg = "bright6", underline.style = "line" }
131"markup.link.text" = "bright2"
132"markup.link.label" = { fg = "regular2", modifiers = ["bold"] }
133"markup.quote" = "regular4"
134# Both inline and block code
135"markup.raw" = "regular3"
136
137"diff.plus" = { bg = "diffadd_bg", fg = "diffadd_fg" }
138"diff.delta" = { bg = "diffchange_bg" }
139"diff.delta.moved" = { modifiers = ["italic"] }
140"diff.minus" = { bg = "diffdelete_bg", fg = "diffdelete_fg" }
141
142[palette]
143background = "#eeeeee"
144foreground = "#444444"
145regular0 = "#eeeeee"   # color00 "Background"
146regular1 = "#af0000"   # color01 "Negative"
147regular2 = "#008700"   # color02 "Positive"
148regular3 = "#5f8700"   # color03 "Olve"
149regular4 = "#0087af"   # color04 "Neutral" / Aqua
150regular5 = "#878787"   # color05 "Comment"
151regular6 = "#005f87"   # color06 "Navy"
152regular7 = "#444444"   # color07 "Foreground"
153bright0 = "#bcbcbc"    # color08 "Nontext"
154bright1 = "#d70000"    # color09 "Red"
155bright2 = "#d70087"    # color10 "Pink"
156bright3 = "#8700af"    # color11 "Purple"
157bright4 = "#d75f00"    # color12 "Accent"
158bright5 = "#d75f00"    # color13 "Orange"
159bright6 = "#005faf"    # color14 "Blue"
160bright7 = "#005f87"    # color15 "Highlight"
161
162selection_fg = "#eeeeee"
163selection_bg = "#0087af"
164selection_secondary_fg = "#d9d7d7"
165selection_secondary_bg = "#2c687a"
166special = "#3e999f"
167
168cursorline_bg = "#e4e4e4"
169cursorline_secondary_bg = "#eaeaea"
170cursorcolumn_bg = "#e4e4e4"
171cursorcolumn_secondary_bg = "#eaeaea"
172cursorlinenr_fg = "#af5f00"
173popupmenu_fg = "#444444"
174popupmenu_bg = "#d0d0d0"
175linenumber_fg = "#b2b2b2"
176vertsplit_fg = "#005f87"
177statusline_active_fg = "#e4e4e4"
178statusline_active_bg = "#005f87"
179statusline_inactive_fg = "#444444"
180statusline_inactive_bg = "#d0d0d0"
181todo_fg = "#00af5f"
182error_fg = "#af0000"
183error_bg = "#ffd7ff"
184matchparen_bg = "#c6c6c6"
185matchparen_fg = "#005f87"
186wildmenu_fg = "#444444"
187wildmenu_bg = "#ffff00"
188diffadd_fg = "#008700"
189diffadd_bg = "#afffaf"
190diffdelete_fg = "#af0000"
191diffdelete_bg = "#ffd7ff"
192diffchange_bg = "#ffd787"
193
194# 16 bit ANSI color names
195black = "#eeeeee"
196red = "#d70000"
197green = "#008700"
198yellow = "#5f8700"
199blue = "#0087af"
200magenta = "#878787"
201cyan = "#005f87"
202white = "#444444"
203light-black = "#bcbcbc"
204light-red = "#d70000"
205light-green = "#d70087"
206light-yellow = "#8700af"
207light-blue = "#d75f00"
208light-magenta = "#d75f00"
209light-cyan = "#4c7a4d"
210light-white = "#005faf"