Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/content/docs/guide/theming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ the following are valid color names:
* `teal`
* `powderblue`

You can also express colors through Crossterm-supported strings, prefixed by `@`.
For example,

* `@ansi_(123)`
* `@dark_yellow`

While there is not currently an official reference, you can see examples in the
[crossterm tests](https://docs.rs/crossterm/latest/src/crossterm/style/types/color.rs.html#376).
As this is passed straight to Crossterm, using [ANSI codes](https://www.ditig.com/256-colors-cheat-sheet)
can be helpful for ensuring your theme is compatible with 256-color terminals.

A theme file, say `my-theme.toml` can then be built up, such as:

```toml
Expand Down