doc: add theme inheritance example (#4096)

This commit is contained in:
Jaden 2022-10-04 14:33:45 -07:00 committed by GitHub
parent ed5febf4b3
commit ccb38e7696
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,21 @@ Less common modifiers might not be supported by your terminal emulator.
| `hidden` |
| `crossed_out` |
### Inheritance
Extend upon other themes by setting the `inherits` property to an existing theme.
```toml
inherits = "boo_berry"
# Override the theming for "keyword"s:
"keyword" = { fg = "gold" }
# Override colors in the palette:
[palette]
berry = "#2A2A4D"
```
### Scopes
The following is a list of scopes available to use for styling.