fork/helix

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

0rpheetheme: update noctis (#9123)5f04d09f

24.03
10.0 KiB207 linesraw
1# Author : 0rphee <0rph3e@proton.me>
2
3# Template written with the help of https://github.com/n0s4/helix-theme-template
4# Keep in mind that I made this to fit Haskell and Python syntax, it may not work so well with other languages.
5
6## GENERAL ==============================
7
8'property' = { fg = "red" } # Regex group names.
9"warning" = { fg ="yellow", modifiers = ["bold"] } # Editor warnings.
10"error" = { fg = "red", modifiers = ["bold"] } # Editor errors, like mis-typing a command.
11"info" = { fg = "mid-blue" } # Code diagnostic info in gutter (LSP).
12# ? Difference between info and hint ?
13"hint" = { fg = "light-green", modifiers = ["bold"] } # Code diagnostics hint in gutter (LSP).
14
15# Code diagnostics in editing area (LSP).
16"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } }
17"diagnostic.error" = { underline = { color = "red", style = "curl" } }
18"diagnostic.info" = { underline = { color = "mid-blue", style = "curl" } }
19"diagnostic.hint" = { underline = { color = "light-green", style = "curl" } }
20
21# UI ==============================
22# For styling helix itself.
23
24'ui.background' = { fg = "autocomp-green", bg = "dark-green" } # Default background color.
25'ui.window' = { fg = "mid-green" } # Window border between splits.
26
27'ui.gutter' = { } # Left gutter for diagnostics and breakpoints.
28
29'ui.text' = { fg = "white" } # Default text color.
30'ui.text.focus' = { fg = "white", bg = "mid-green", modifiers = ["bold"] } # Selection highlight in buffer-picker or file-picker.
31'ui.text.info' = { fg = "white" } # Info popup contents (space mode menu).
32
33'ui.cursor' = { fg = "dark-green", bg = "white" } # Fallback cursor colour, non-primary cursors when there are multiple (shift-c).
34'ui.cursor.primary' = { fg = "dark-green", bg = "light-blue" } # The primary cursor when there are multiple (shift-c).
35'ui.cursor.insert' = { fg = "dark-green", bg = "light-blue" } # The cursor in insert mode (i).
36'ui.cursor.select' = { fg = "dark-green", bg = "light-blue" } # The cursor in select mode (v).
37'ui.cursor.match' = { fg = "dark-green", bg = "red", modifiers = ["bold"] } # The matching parentheses of that under the cursor.
38
39'ui.selection' = { bg = "autocomp-green" } # All currently selected text.
40'ui.selection.primary' = { bg = "autocomp-green" } # The primary selection when there are multiple.
41'ui.cursorline.primary' = { bg = 'mid-green' }
42
43'ui.linenr' = {  fg = "gray"  } # Line numbers.
44'ui.linenr.selected' = { fg = "light-green", modifiers = [ "bold" ] } # Current line number.
45
46'ui.virtual' = { fg = "mid-green" } # Namespace for additions to the editing area.
47'ui.virtual.ruler' = { bg = "mid-green" } # Vertical rulers (colored columns in editing area).
48'ui.virtual.whitespace' = { fg = "light-gray"} # Whitespace markers in editing area.
49'ui.virtual.indent-guide' = { fg = "light-gray" } # Indentation guides.
50
51'ui.statusline' = { fg = "light-green", bg = "autocomp-green"} # Status line.
52'ui.statusline.inactive' = { fg = "white", bg = "mid-green"} # Status line in unfocused windows.
53
54"ui.statusline.normal" = { fg = "dark-green", bg = "mid-blue", modifiers = [ "bold" ] }
55"ui.statusline.insert" = { fg = "dark-green", bg = "pink", modifiers = [ "bold" ] }
56"ui.statusline.select" = { fg = "dark-green", bg = "yellow", modifiers = [ "bold" ] }
57
58'ui.help' = { bg = "mid-green", fg = "white"} # `:command` descriptions above the command line.
59
60'ui.highlight' = { bg = "mid-green"} # selected contents of symbol pickers (spc-s, spc-S) and current line in buffer picker (spc-b).
61
62'ui.menu' = { fg = "white", bg = "mid-green" } # Autocomplete menu.
63'ui.menu.selected' = { fg = "light-green", bg = "autocomp-green" } # Selected autocomplete item.
64
65'ui.popup' = { bg = "mid-green" } # Documentation popups (space-k).
66# 'ui.ppopup.info' = { bg = "midgreen", fg = "gray", modifiers = ["bold"] } # Info popups box (space mode menu).
67
68# SYNTAX HIGHLIGHTING ==============================
69# All the keys here are Treesitter scopes.
70
71'special' = { fg = "mid-blue"} # Special symbols e.g `?` in Rust, `...` in Hare.
72'attribute' = { fg = "yellow" } # Class attributes, html tag attributes.
73
74'type' = { fg = "orange"} # Variable type, like integer or string, including program defined classes, structs etc..
75#'type.builtin' = { } # Primitive types of the language (string, int, float).
76#'type.enum.variant' = { } # A variant of an enum.
77
78'constructor' = { fg = "light-blue", modifiers = ["bold"]} # Constructor method for a class or struct. And in some cases applies to module names
79
80'constant' = { fg = "light-blue", modifiers = ["bold"] } # Constant value
81'constant.builtin' = { fg = "mid-blue", modifiers = ["bold"] } # Special constants like `true`, `false`, `none`, etc.
82'constant.builtin.boolean' = { } # True or False.
83'constant.character' = { fg = "light-green"} # Constant of character type.
84'constant.character.escape' = { fg = "purple", modifiers = ["bold"] } # escape codes like \n.
85'constant.numeric'  = { fg = "purple"} # constant integer or float value.
86# 'constant.numeric.integer' = { } # constant integer value.
87# 'constant.numeric.float' = { } # constant float value.
88
89'string' = { fg = "light-green" } # String literal.
90'string.regexp' = { } # Regular expression literal.
91'string.special' = { fg = "red" } # Strings containing a path, URL, etc.
92# 'string.special.path' = { } # String containing a file path.
93# 'string.special.url' = { } # String containing a web URL.
94# 'string.special.symbol' = { } # Erlang/Elixir atoms, Ruby symbols, Clojure keywords.
95
96'comment' = { fg = "gray", modifiers = ["italic"] } # This is a comment.
97'comment.line' = { } # Line comments, like this.
98'comment.block' = { } # Block comments, like /* this */ in some languages.
99'comment.block.documentation' = { } # Doc comments, e.g '///' in rust.
100
101'variable' = { fg = "light-orange" }  # Variable names.
102# 'variable.builtin' = { } # Language reserved variables: `this`, `self`, `super`, etc.
103# 'variable.parameter' = { } # Function parameters.
104'variable.other.member' = { fg = "orange" } # Fields of composite data types (e.g. structs, unions).
105
106'label' = { fg = "purple" } # Loop labels in rust.
107
108'punctuation' =  { fg = "yellow", modifiers = ["bold"] } # (){}[]:;,.
109# 'punctuation.delimiter' = { fg = "yellow" } # Commas and colons.
110# 'punctuation.bracket' = { fg = "yellow" } # Parentheses, angle brackets, etc.
111
112'keyword' = { fg = "pink", modifiers = ["bold"] } # Language reserved keywords.
113'keyword.control' = { fg = "pink", modifiers = ["bold"] } # Control keywords.
114'keyword.control.conditional' = { fg = "pink", modifiers = ["bold"] } # 'if', 'else', 'elif'.
115# 'keyword.control.repeat' = { } # 'for', 'while', 'loop'.
116'keyword.control.import' = { fg = "pink", modifiers = ["italic"] } # 'import', 'export' ('use'?).
117# 'keyword.control.return' = { } # 'return' in most languages.
118'keyword.control.exception' = {fg = "pink", modifiers = ["bold"] } # 'raise' in python.
119'keyword.operator' = { fg = "pink" } # 'or', 'and', 'in'.
120'keyword.directive' = { fg = "purple" } # Preprocessor directives (#if in C).
121'keyword.function' = { fg= "red" } # The keyword to define a function: 'def', 'fun', 'fn'.
122
123'operator' = { fg = "pink", modifiers = ["bold"] } # Logical (&&, ||) and - I assume - Mathematical (+, %) operators
124
125'function' = { fg = "mid-blue"}
126'function.builtin' = { fg = "dark-blue" }
127'function.method' = { fg = "dark-blue" } # Class / Struct methods.
128'function.macro' = { fg = "purple" } # Like macros in rust.
129# 'function.special' = { fg = "yellow" } # Preprocessor in C.
130
131'tag' = { fg = "yellow"} # As in <body> for html.
132
133'namespace' = { fg = "mid-blue" } # * Namespace keyword in java, C#, etc.
134
135# Markup ==============================
136# Colors for markup languages, like Markdown or XML.
137
138'markup.heading' = { } # Markdown headings
139'markup.heading.1' = { } # Markdown heading 1 color.
140'markup.heading.2' = { } # Markdown heading 2 color.
141'markup.heading.3' = { } # Markdown heading 3 color.
142'markup.heading.4' = { } # Markdown heading 4 color.
143'markup.heading.5' = { } # Markdown heading 5 color.
144'markup.heading.6' = { } # Markdown heading 6 color.
145'markup.heading.marker' = { fg = "red" } # Hashtag color on Markdown headings.
146
147'markup.list' = { fg = "red" }
148'markup.list.numbered' = { } # Numbered list.
149'markup.list.unnumbered' = { } # Bullet point list.
150
151'markup.bold' = { modifiers = ["bold"] } # Bold text.
152'markup.italic' = { modifiers = ["italic"] } # Italicised text.
153"markup.strikethrough" = { modifiers = ["crossed_out"] } # Crossed out text.
154
155'markup.link' = { fg = "light-blue", modifiers = ["underlined"] }
156'markup.link.url' = { } # Urls pointed to by links.
157'markup.link.label' = { } # Non-URL link references.
158'markup.link.text' = { fg = "purple"} # URL and image descriptions in links.
159
160'markup.quote' = { } # `> Quotes` in Markdown.
161
162
163# Markup - Interface ==============================
164# "These scopes are used for theming the editor interface."
165
166'markup.normal' = { }
167'markup.normal.completion' = { } # For completion doc popup ui.
168'markup.normal.raw' = { } # For hover popup ui.
169
170'markup.heading.completion' = { } # Headings for completion doc popup ui.
171'markup.heading.raw' = { } # Headings for hover popup ui.
172
173'markup.raw' = { } # Code block in Markdown.
174'markup.raw.block' = { } # Multiline (```) codeblock in Markdown.
175'markup.raw.inline' = { } # `Inline code block` in Markdown.
176'markup.raw.inline.completion' = { } # ?
177'markup.raw.inline.hover' = { } # ?
178
179# Diff ==============================
180# Version control changes.
181
182'diff.plus' = "light-green" # { } # Additions.
183'diff.minus' = "red" # { } # Deletions.
184'diff.delta' = "yellow" # { } # Modifications.
185# 'diff.delta.moved' = { } # Renamed or moved files / changes.
186
187
188[palette] # Define your custom colors here.
189dark-green = "#00262a" # backgrounds
190mid-green = "#073a40" # highlights
191autocomp-green = "#0d6772" # lighter than mid-green
192light-green = "#48e9a7" # strings
193
194pink = "#df769b"
195yellow = "#ffd800"
196purple = "#918cff"
197white = "#b1cace"
198orange = "#ffa864"
199light-orange = "#fff2c5"
200gray = "#5b858b" # mainly for comments/background text
201light-gray = "#2a3c41" # used when whitespace rendering is enabled and for indent-guides
202red = "#e34e1b"
203
204dark-blue = "#19a2b7"
205mid-blue = "#47ace8"
206light-blue = "#87efff"
207