doc: add theme inheritance example (#4096)

pull/4103/head
Jaden 2 years ago committed by GitHub
parent ed5febf4b3
commit ccb38e7696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save