mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
README: Simplify color docs
This commit is contained in:
parent
9236f0d4a7
commit
e35dd5e30c
1 changed files with 4 additions and 17 deletions
21
README.md
21
README.md
|
|
@ -179,24 +179,11 @@ Currently supported attributes:
|
|||
- `underline` (`true` or `false`)
|
||||
- `bold` (`true` or `false`)
|
||||
|
||||
The currently supported color strings are:
|
||||
Colors can be specified in one of three ways:
|
||||
|
||||
- `black`
|
||||
- `red`
|
||||
- `green`
|
||||
- `yellow`
|
||||
- `blue`
|
||||
- `purple`
|
||||
- `cyan`
|
||||
- `white`
|
||||
|
||||
ANSI color codes are also supported:
|
||||
|
||||
foreground = { ansi = 4 }
|
||||
|
||||
Finally, colors can also be configured by their RGB representation:
|
||||
|
||||
background = { rgb = { r = 255, g = 255, b = 255 } }
|
||||
- Color string (`black`, `red`, `green`, `yellow`, `blue`, `purple`, `cyan`, `white`)
|
||||
- 256 color ANSI code (e.g. `foreground = { ansi = 4 }`)
|
||||
- 24-bit RGB color (e.g. `background = { rgb = { r = 255, g = 255, b = 255 } }`)
|
||||
|
||||
Example customization:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue