diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docs/guide/theming.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/docs/guide/theming.md b/docs/docs/guide/theming.md index e6c36bdd..2d71d41d 100644 --- a/docs/docs/guide/theming.md +++ b/docs/docs/guide/theming.md @@ -95,6 +95,17 @@ For example, the following are valid color names: * `@ansi_(255)` * `@rgb_(255, 128, 0)` +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 |
