From 2244a5d40c83d477839f91cb6d6a4aeb02446a97 Mon Sep 17 00:00:00 2001
From: omentic
Date: Wed, 1 May 2024 23:29:52 +0000
Subject: deploy: 12eec890240a05d1e090114f7f4fdd7c1ee8ff88
---
themes.html | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
(limited to 'themes.html')
diff --git a/themes.html b/themes.html
index 989fd87b..06fcfcf0 100644
--- a/themes.html
+++ b/themes.html
@@ -180,23 +180,23 @@
-To use a theme add theme = "<name>"
to the top of your config.toml
file, or select it during runtime using :theme <name>
.
+To use a theme add theme = "<name>"
to the top of your config.toml
file, or select it during runtime using :theme <name>
.
Create a file with the name of your theme as the file name (i.e mytheme.toml
) and place it in your themes
directory (i.e ~/.config/helix/themes
or %AppData%\helix\themes
on Windows). The directory might have to be created beforehand.
-💡 The names "default" and "base16_default" are reserved for built-in themes
+
💡 The names "default" and "base16_default" are reserved for built-in themes
and cannot be overridden by user-defined themes.
Each line in the theme file is specified as below:
-key = { fg = "#ffffff", bg = "#000000", underline = { color = "#ff0000", style = "curl"}, modifiers = ["bold", "italic"] }
+key = { fg = "#ffffff", bg = "#000000", underline = { color = "#ff0000", style = "curl"}, modifiers = ["bold", "italic"] }
Where key
represents what you want to style, fg
specifies the foreground color, bg
the background color, underline
the underline style
/color
, and modifiers
is a list of style modifiers. bg
, underline
and modifiers
can be omitted to defer to the defaults.
To specify only the foreground color:
-key = "#ffffff"
+key = "#ffffff"
If the key contains a dot '.'
, it must be quoted to prevent it being parsed as a dotted key.
-"key.key" = "#ffffff"
+"key.key" = "#ffffff"
For inspiration, you can find the default theme.toml
here and
@@ -211,12 +211,12 @@ user-submitted themes
It's recommended to define a palette of named colors, and refer to them in the
configuration values in your theme. To do this, add a table called
palette
to your theme file:
-"ui.background" = "white"
-"ui.text" = "black"
+"ui.background" = "white"
+"ui.text" = "black"
[palette]
-white = "#ffffff"
-black = "#000000"
+white = "#ffffff"
+black = "#000000"
Keep in mind that the [palette]
table includes all keys after its header,
so it should be defined after the normal theme options.
@@ -260,7 +260,7 @@ your terminal emulator.
inherits = "boo_berry"
+inherits = "boo_berry"
-# Override the theming for "keyword"s:
-"keyword" = { fg = "gold" }
+# Override the theming for "keyword"s:
+"keyword" = { fg = "gold" }
# Override colors in the palette:
[palette]
-berry = "#2A2A4D"
+berry = "#2A2A4D"
The rainbow
key is used for rainbow highlight for matching brackets.
The key is a list of styles.
-rainbow = ["#ff0000", "#ffa500", "#fff000", { fg = "#00ff00", modifiers = ["bold"] }]
+rainbow = ["#ff0000", "#ffa500", "#fff000", { fg = "#00ff00", modifiers = ["bold"] }]
Colors from the palette and modifiers may be used.
@@ -306,6 +306,7 @@ The key is a list of styles.
type
- Types
builtin
- Primitive types provided by the language (int
, usize
)
+parameter
- Generic type parameters (T
)
enum
variant
@@ -544,11 +545,14 @@ The key is a list of styles.
ui.statusline.insert | Statusline mode during insert mode (only if editor.color-modes is enabled) |
ui.statusline.select | Statusline mode during select mode (only if editor.color-modes is enabled) |
ui.statusline.separator | Separator character in statusline |
+ui.bufferline | Style for the buffer line |
+ui.bufferline.active | Style for the active buffer in buffer line |
+ui.bufferline.background | Style for bufferline background |
ui.popup | Documentation popups (e.g. Space + k) |
ui.popup.info | Prompt for multiple key options |
ui.window | Borderlines separating splits |
ui.help | Description box for commands |
-ui.text | Command prompts, popup text, etc. |
+ui.text | Default text style, command prompts, popup text, etc. |
ui.text.focus | The currently selected line in the picker |
ui.text.inactive | Same as ui.text but when the text is inactive (e.g. suggestions) |
ui.text.info | The key: command text in ui.popup.info boxes |
@@ -559,6 +563,7 @@ The key is a list of styles.
ui.virtual.inlay-hint.parameter | Style for inlay hints of kind parameter (LSPs are not required to set a kind) |
ui.virtual.inlay-hint.type | Style for inlay hints of kind type (LSPs are not required to set a kind) |
ui.virtual.wrap | Soft-wrap indicator (see the editor.soft-wrap config) |
+ui.virtual.jump-label | Style for virtual jump labels |
ui.menu | Code and command completion menus |
ui.menu.selected | Selected autocomplete item |
ui.menu.scroll | fg sets thumb color, bg sets track color of scrollbar |
@@ -578,6 +583,8 @@ The key is a list of styles.
diagnostic.info | Diagnostics info (editing area) |
diagnostic.warning | Diagnostics warning (editing area) |
diagnostic.error | Diagnostics error (editing area) |
+diagnostic.unnecessary | Diagnostics with unnecessary tag (editing area) |
+diagnostic.deprecated | Diagnostics with deprecated tag (editing area) |
--
cgit v1.2.3-70-g09d2