fork/helix
git clone https://git.julia.blue/fork/helix
f2ccc033
23.05
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" = { bg = "mid-green" , fg = "red" , modifiers = [ "bold" ] } # Editor errors, like mis-typing a command. 11"info" = { fg = "mid-blue" , bg = "mid-green" } # 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' = { 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' = { } # 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' = { bg = "dark-green" , fg = "gray" } # Line numbers. 44'ui.linenr.selected' = { bg = "mid-green" , 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 = "mid-blue" , modifiers = [ "bold" ]} # Constructor method for a class or struct. And in some cases applies to module names 79 80'constant' = { fg = "light-blue" } # 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 = "light-blue" } # 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 = "white" } # Variable names. 102'variable.builtin' = { } # Language reserved variables: `this`, `self`, `super`, etc. 103'variable.parameter' = { } # Funtion parameters. 104'variable.other.member' = { } # Fields of composite data types (e.g. structs, unions). 105'variable.function' = { } # ? 106 107'label' = { fg = "purple" } # Loop labels in rust. 108 109'punctuation' = { fg = "yellow" , modifiers = [ "bold" ] } # (){}[]:;,. 110# 'punctuation.delimeter' = { fg = "yellow" } # Commas and colons. 111# 'punctuation.bracket' = { fg = "yellow" } # Parentheses, angle brackets, etc. 112 113'keyword' = { fg = "pink" , modifiers = [ "bold" ] } # Language reserved keywords. 114'keyword.control' = { fg = "pink" , modifiers = [ "bold" ] } # Control keywords. 115'keyword.control.conditional' = { fg = "pink" , modifiers = [ "bold" ] } # 'if', 'else', 'elif'. 116'keyword.control.repeat' = { } # 'for', 'while', 'loop'. 117'keyword.control.import' = { fg = "pink" , modifiers = [ "italic" ] } # 'import', 'export' ('use'?). 118'keyword.control.return' = { } # 'return' in most languages. 119'keyword.control.exception' = { fg = "pink" , modifiers = [ "bold" ] } # 'raise' in python. 120'keyword.operator' = { } # 'or', 'and', 'in'. 121'keyword.directive' = { fg = "purple" } # Preprocessor directives (#if in C). 122'keyword.function' = { } # The keyword to define a funtion: 'def', 'fun', 'fn'. 123 124'operator' = { fg = "pink" , modifiers = [ "bold" ] } # Logical (&&, ||) and - I assume - Mathematical (+, %) operators 125 126'function' = { fg = "dark-blue" } 127'function.builtin' = { fg = "dark-blue" } 128'function.method' = { fg = "dark-blue" } # Class / Struct methods. 129'function.macro' = { fg = "purple" } # Like macros in rust. 130# 'function.special' = { fg = "yellow" } # Preprocessor in C. 131 132'tag' = { fg = "yellow" } # As in <body> for html. 133 134'namespace' = { fg = "mid-blue" } # * Namespace keyword in java, C#, etc. 135 136# Markup ============================== 137# Colors for markup languages, like Markdown or XML. 138 139'markup.heading' = { } # Markdown headings 140'markup.heading.1' = { } # Markdown heading 1 color. 141'markup.heading.2' = { } # Markdown heading 2 color. 142'markup.heading.3' = { } # Markdown heading 3 color. 143'markup.heading.4' = { } # Markdown heading 4 color. 144'markup.heading.5' = { } # Markdown heading 5 color. 145'markup.heading.6' = { } # Markdown heading 6 color. 146'markup.heading.marker' = { fg = "red" } # Hashtag color on Markdown headings. 147 148'markup.list' = { fg = "red" } 149'markup.list.numbered' = { } # Numbered list. 150'markup.list.unnumbered' = { } # Bullet point list. 151 152'markup.bold' = { modifiers = [ "bold" ] } # Bold text. 153'markup.italic' = { modifiers = [ "italic" ] } # Italicised text. 154"markup.strikethrough" = { modifiers = [ "crossed_out" ] } # Crossed out text. 155 156'markup.link' = { fg = "light-blue" , modifiers = [ "underlined" ] } 157'markup.link.url' = { } # Urls pointed to by links. 158'markup.link.label' = { } # Non-URL link references. 159'markup.link.text' = { fg = "purple" } # URL and image descriptions in links. 160 161'markup.quote' = { } # `> Quotes` in Markdown. 162 163 164# Markup - Interface ============================== 165# "These scopes are used for theming the editor interface." 166 167'markup.normal' = { } 168'markup.normal.completion' = { } # For completion doc popup ui. 169'markup.normal.raw' = { } # For hover popup ui. 170 171'markup.heading.completion' = { } # Headings for completion doc popup ui. 172'markup.heading.raw' = { } # Headings for hover popup ui. 173 174'markup.raw' = { } # Code block in Markdown. 175'markup.raw.block' = { } # Multiline (```) codeblock in Markdown. 176'markup.raw.inline' = { } # `Inline code block` in Markdown. 177'markup.raw.inline.completion' = { } # ? 178'markup.raw.inline.hover' = { } # ? 179 180# Diff ============================== 181# Version control changes. 182 183'diff.plus' = "light-green" # { } # Additions. 184'diff.minus' = "yellow" # { } # Deletions. 185'diff.delta' = "red" # { } # Modifications. 186# 'diff.delta.moved' = { } # Renamed or moved files / changes. 187 188 189[ palette ] # Define your custom colors here. 190dark-green = "#00262a" # backgrounds 191mid-green = "#073a40" # highlights 192autocomp-green = "#0d6772" # lighter than mid-green 193light-green = "#48e9a7" # strings 194 195pink = "#df769b" 196yellow = "#ffd800" 197purple = "#918cff" 198white = "#b1cace" 199orange = "#ffa864" 200gray = "#5b858b" # mainly for comments/background text 201light-gray = "#354e51" # used when whitespace rendering is enabled and for indent-guides 202red = "#e34e1b" 203 204dark-blue = "#19a2b7" 205mid-blue = "#47ace8" 206light-blue = "#87efff" 207