Update theme documentation
This commit is contained in:
parent
79a39c1063
commit
de72b9c04c
1 changed files with 17 additions and 13 deletions
|
@ -13,10 +13,10 @@ The default theme.toml can be found [here](https://github.com/helix-editor/helix
|
||||||
Each line in the theme file is specified as below:
|
Each line in the theme file is specified as below:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
key = { fg = "#ffffff", bg = "#000000", modifiers = ["bold", "italic"] }
|
key = { fg = "#ffffff", bg = "#000000", underline = "#ff0000", modifiers = ["bold", "italic", "undercurled"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
where `key` represents what you want to style, `fg` specifies the foreground color, `bg` the background color, and `modifiers` is a list of style modifiers. `bg` and `modifiers` can be omitted to defer to the defaults.
|
where `key` represents what you want to style, `fg` specifies the foreground color, `bg` the background color, `underline` the underline color (only meaningful if an underline modifier is enabled), 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:
|
To specify only the foreground color:
|
||||||
|
|
||||||
|
@ -83,6 +83,10 @@ Less common modifiers might not be supported by your terminal emulator.
|
||||||
| `dim` |
|
| `dim` |
|
||||||
| `italic` |
|
| `italic` |
|
||||||
| `underlined` |
|
| `underlined` |
|
||||||
|
| `undercurled` |
|
||||||
|
| `underdashed` |
|
||||||
|
| `underdotted` |
|
||||||
|
| `double-underlined` |
|
||||||
| `slow_blink` |
|
| `slow_blink` |
|
||||||
| `rapid_blink` |
|
| `rapid_blink` |
|
||||||
| `reversed` |
|
| `reversed` |
|
||||||
|
|
Loading…
Add table
Reference in a new issue