Skip to content

Commit

Permalink
Rework beginning of themes chapter
Browse files Browse the repository at this point in the history
The specifics of configuring themes has caused some confusion. Hopefully this will clarify things a little.
  • Loading branch information
neurocyte authored and CBenoit committed Jan 7, 2022
1 parent a8fd33a commit 1af8dd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions book/src/themes.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Themes

First you'll need to place selected themes in your `themes` directory (i.e `~/.config/helix/themes`), the directory might have to be created beforehand.
To use a theme add `theme = "<name>"` to your [`config.toml`](./configuration.md) at the very top of the file before the first section or select it during runtime using `:theme <name>`.

To use a custom theme add `theme = <name>` to your [`config.toml`](./configuration.md) or override it during runtime using `:theme <name>`.
## Creating a theme

The default theme.toml can be found [here](https://github.com/helix-editor/helix/blob/master/theme.toml), and user submitted themes [here](https://github.com/helix-editor/helix/blob/master/runtime/themes).
Create a file with the name of your theme as file name (i.e `mytheme.toml`) and place it in your `themes` directory (i.e `~/.config/helix/themes`). The directory might have to be created beforehand.

## Creating a theme
The names "default" and "base16_default" are reserved for the builtin themes and cannot be overridden by user defined themes.

First create a file with the name of your theme as file name (i.e `mytheme.toml`) and place it in your `themes` directory (i.e `~/.config/helix/themes`).
The default theme.toml can be found [here](https://github.com/helix-editor/helix/blob/master/theme.toml), and user submitted themes [here](https://github.com/helix-editor/helix/blob/master/runtime/themes).

Each line in the theme file is specified as below:

Expand Down

0 comments on commit 1af8dd9

Please sign in to comment.