fork/helix

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

Pedro Fedriccifeat(themes): add `ui.text.directory` to nightfox (#12328)9e77c44b

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