fork/helix

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

Jan ScheerUpdate nightfox theme (#7061)91da0dc1

23.05
9.4 KiB188 linesraw
1# Author: github.com/jhscheer
2#
3# This theme is an adaptation of
4# github.com/EdenEast/nightfox.nvim
5
6
7# INTERFACE
8# These scopes are used for theming the editor interface.
9
10"ui.background" = { bg = "bg1" } # Default background color.
11"ui.window" = { fg = "bg0" } # Window border between splits.
12"ui.gutter" = { fg = "fg3" } # Left gutter for diagnostics and breakpoints.
13
14"ui.text" = { fg = "fg1" } # Default text color.
15"ui.text.focus" = { bg = "sel1", fg = "fg1" } # Selection highlight in buffer-picker or file-picker.
16"ui.text.info" = { fg = "fg2", bg = "sel0" } # Info popup contents (space mode menu).
17
18"ui.cursor" = { bg = "fg3", fg = "bg1" } # Fallback cursor colour, non-primary cursors when there are multiple (shift-c).
19"ui.cursor.primary" = { bg = "fg1", fg = "bg1" } # The primary cursor when there are multiple (shift-c).
20"ui.cursor.match" = { fg = "yellow", modifiers = ["bold"] } # The matching parentheses of that under the cursor.
21
22"ui.selection" = { bg = "bg4" } # All currently selected text.
23"ui.selection.primary" = { bg = "sel1" } # The primary selection when there are multiple.
24"ui.cursorline.primary" = { bg = "bg3" } # The line of the primary cursor (if cursorline is enabled)
25# "ui.cursorline.secondary" = { } #	The lines of any other cursors (if cursorline is enabled)
26# "ui.cursorcolumn.primary" = { } #	The column of the primary cursor (if cursorcolumn is enabled)
27# "ui.cursorcolumn.secondary" = { } #	The columns of any other cursors (if cursorcolumn is enabled)
28
29"ui.linenr" = { fg = "fg3" } # Line numbers.
30"ui.linenr.selected" = { fg = "yellow", modifiers = ["bold"] } # Current line number.
31
32# "ui.virtual" = { } # Namespace for additions to the editing area.
33"ui.virtual.ruler" = { bg = "bg3" } # Vertical rulers (colored columns in editing area).
34"ui.virtual.whitespace" = { fg = "bg3" } # Whitespace markers in editing area.
35"ui.virtual.indent-guide" = { fg = "black" } # Vertical indent width guides
36"ui.virtual.inlay-hint" = { fg = "comment", bg = "bg2" } # Default style for inlay hints of all kinds
37
38"ui.statusline" = { fg = "fg2", bg = "bg0" } # Status line.
39"ui.statusline.inactive" = { fg = "fg3", bg = "bg0" } # Status line in unfocused windows.
40"ui.statusline.normal" = { bg = "blue", fg = "bg0", modifiers = ["bold"] } # Statusline mode during normal mode (only if editor.color-modes is enabled)
41"ui.statusline.insert" = { bg = "green", fg = "bg0", modifiers = ["bold"] } # Statusline mode during insert mode (only if editor.color-modes is enabled)
42"ui.statusline.select" = { bg = "magenta", fg = "bg0", modifiers = ["bold"] } # Statusline mode during select mode (only if editor.color-modes is enabled)
43
44"ui.bufferline" = { fg = "fg3", bg = "bg2", underline = { style = "line" } }
45"ui.bufferline.active" = { fg = "fg2", bg = "bg4" }
46"ui.bufferline.background" = { bg = "bg0" }
47
48"ui.help" = { bg = "sel0", fg = "fg1" } # Description box for commands.
49
50"ui.menu" = { bg = "sel0", fg = "fg1" } # Code and command completion menus.
51"ui.menu.selected" = { bg = "fg3" } # Selected autocomplete item.
52"ui.menu.scroll"	= { fg = "fg3" } # fg sets thumb color, bg sets track color of scrollbar.
53
54"ui.popup" = { bg = "bg0", fg = "fg1" } # Documentation popups (space-k).
55"ui.popup.info" = { bg = "sel0", fg = "fg1" } # Info popups box (space mode menu).
56
57"markup.raw" = { fg = "magenta" } # Code block in Markdown.
58"markup.raw.inline" = { fg = "orange" } # `Inline code block` in Markdown.
59"markup.heading" = { fg = "yellow", modifiers = ["bold"] }
60"markup.list" = { fg = "magenta", modifiers = ["bold"] }
61"markup.bold" = { fg = "orange", modifiers = ["bold"] }
62"markup.italic" = { fg = "pink" }
63"markup.strikethrough" = { modifiers = ["crossed_out"] }
64"markup.link" = { fg = "yellow-bright", modifiers = ["bold"] }
65"markup.quote" = { fg = "blue" }
66
67
68# DIAGNOSTICS
69"warning" = { fg = "yellow", bg = "bg1" } # Diagnostics warning (gutter)
70"error" = { fg = "red", bg = "bg1" } # Diagnostics error (gutter)
71"info" = { fg = "blue", bg = "bg1" } # Diagnostics info (gutter)
72"hint" = { fg = "green", bg = "bg1" } # Diagnostics hint (gutter)
73
74"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } } #	Diagnostics warning (editing area)
75"diagnostic.error" = { underline = { color = "red", style = "curl" } } #	Diagnostics error (editing area)
76"diagnostic.info" = { underline = { color = "blue", style = "curl" } } #	Diagnostics info (editing area)
77"diagnostic.hint" = { underline = { color = "green", style = "curl" } } #	Diagnostics hint (editing area)
78
79
80# SYNTAX HIGHLIGHTING
81# These keys match tree-sitter scopes.
82
83"special" = { fg = "fg2" } # Special symbols e.g `?` in Rust, `...` in Hare.
84"attribute" = { fg = "yellow" } # Class attributes, html tag attributes.
85
86"type" = { fg = "yellow" } # Variable type, like integer or string, including program defined classes, structs etc..
87"type.builtin" = { fg = "cyan-bright" } # Primitive types of the language (string, int, float).
88"type.enum.variant" = { fg = "orange-bright" }
89
90"constructor" = { fg = "magenta" } # Constructor method for a class or struct.
91
92"constant" = { fg = "orange-bright" } # Constant value
93"constant.builtin" = { fg = "orange-bright" } # Special constants like `true`, `false`, `none`, etc.
94"constant.builtin.boolean" = { fg = "orange" } # True or False.
95"constant.character" = { fg = "green" } # Constant of character type.
96"constant.character.escape" = { fg = "yellow-bright", modifiers = ["bold"] } # escape codes like \n.
97"constant.numeric"  = { fg = "orange" } # constant integer or float value.
98
99"string" = { fg = "green" } # String literal.
100"string.regexp" = { fg = "yellow-bright" } # Regular expression literal.
101"string.special" = { fg = "yellow-bright", modifiers = ["bold"] } # Strings containing a path, URL, etc.
102"string.special.url" = { fg = "cyan", modifiers = ["bold"] } # String containing a web URL.
103
104"comment" = { fg = "comment" } # This is a comment.
105"comment.block.documentation" = { fg = "comment", modifiers = ["bold"] } # Doc comments, e.g '///' in rust.
106
107"variable" = { fg = "white" }  # Variable names.
108"variable.builtin" = { fg = "red" } # Language reserved variables: `this`, `self`, `super`, etc.
109"variable.parameter" = { fg = "cyan-bright" } # Function parameters.
110"variable.other.member" = { fg = "fg2" } # Fields of composite data types (e.g. structs, unions).
111
112"label" = { fg = "magenta-bright" } # lifetimes - Loop labels, among other things.
113
114"punctuation" = { fg = "fg2" } # Any punctuation symbol.
115# "punctuation.delimiter" = { fg = "fg2" } # Commas, colons or other delimiter depending on the language.
116# "punctuation.bracket" = { fg = "fg2" } # Parentheses, angle brackets, etc.
117# "punctuation.special" = { fg = "fg2" } # String interpolation brackets
118
119"keyword" = { fg = "magenta" } # Language reserved keywords.
120"keyword.control" = { fg = "pink" } # Control keywords.
121"keyword.control.conditional" = { fg = "magenta-bright" } # `if`, `else`, `elif`.
122"keyword.control.repeat" = { fg = "magenta-bright" } # `for`, `while`, `loop`.
123"keyword.control.import" = { fg = "pink-bright" } # `import`, `export` `use`.
124"keyword.control.return" = { fg = "magenta" } # `return` in most languages.
125"keyword.control.exception" = { fg = "magenta" } # `try`, `catch`, `raise`/`throw` and related.
126"keyword.operator" = { fg = "fg2", modifiers = ["bold"] } # 'or', 'and', 'in'.
127"keyword.directive" = { fg = "pink-bright" } # Preprocessor directives (#if in C...).
128"keyword.function" = { fg = "red" } # The keyword to define a funtion: 'def', 'fun', 'fn'.
129"keyword.storage" = { fg = "magenta" } # Keywords describing how things are stored
130"keyword.storage.type" = { fg = "magenta" } #  The type of something, class, function, var, let, etc.
131"keyword.storage.modifier" = { fg = "yellow" } # Storage modifiers like static, mut, const, ref, etc.
132
133"operator" = {  fg = "fg2" } # Logical, mathematical, and other operators.
134
135"function" = { fg = "blue-bright" }
136"function.builtin" = { fg = "red" }
137"function.macro" = { fg = "red" }
138# "function.special" = { fg = "blue-bright" } # Preprocessor function in C.
139# "function.method" = { fg = "blue-bright" } # Class / Struct methods.
140
141"tag" = { fg = "blue-bright" } # As in <body> for html, css tags.
142
143"namespace" = { fg = "cyan-bright" } # Namespace or module identifier.
144
145
146# Diff ==============================
147# Version control changes.
148
149"diff.plus" = "green" # Additions.
150"diff.minus" = "red" # Deletions.
151"diff.delta" = "blue" # Modifications.
152"diff.delta.moved" = "cyan" # Renamed or moved files.
153
154# color palette
155[palette]
156black          = "#393b44"
157red            = "#c94f6d"
158red-dim        = "#2f2837"
159green          = "#81b29a"
160green-dim      = "#26343c"
161yellow         = "#dbc074"
162yellow-bright  = "#e0c989"
163blue           = "#719cd6"
164blue-bright    = "#86abdc"
165blue-dim       = "#2f2837"
166magenta        = "#9d79d6"
167magenta-bright = "#baa1e2"
168cyan           = "#63cdcf"
169cyan-bright    = "#7ad4d6"
170cyan-dim       = "#253f4a"
171white          = "#dfdfe0"
172orange         = "#f4a261"
173orange-bright  = "#f6b079"
174pink           = "#d67ad2"
175pink-bright    = "#dc8ed9"
176comment        = "#738091"
177# spec
178bg0            = "#131a24" # Dark bg (status line and float)
179bg1            = "#192330" # Default bg
180bg2            = "#212e3f" # Lighter bg (colorcolm folds)
181bg3            = "#29394f" # Lighter bg (cursor line)
182bg4            = "#39506d" # Conceal, border fg
183fg0            = "#d6d6d7" # Lighter fg
184fg1            = "#cdcecf" # Default fg
185fg2            = "#aeafb0" # Darker fg (status line)
186fg3            = "#71839b" # Darker fg (line numbers, fold colums)
187sel0           = "#2b3b51" # Popup bg, visual selection bg
188sel1           = "#3c5372" # Popup sel bg, search bg