Skip to content

Commit ccb38e7

Browse files
authored
doc: add theme inheritance example (#4096)
1 parent ed5febf commit ccb38e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

book/src/themes.md

+15
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,21 @@ Less common modifiers might not be supported by your terminal emulator.
8989
| `hidden` |
9090
| `crossed_out` |
9191

92+
### Inheritance
93+
94+
Extend upon other themes by setting the `inherits` property to an existing theme.
95+
96+
```toml
97+
inherits = "boo_berry"
98+
99+
# Override the theming for "keyword"s:
100+
"keyword" = { fg = "gold" }
101+
102+
# Override colors in the palette:
103+
[palette]
104+
berry = "#2A2A4D"
105+
```
106+
92107
### Scopes
93108

94109
The following is a list of scopes available to use for styling.

0 commit comments

Comments
 (0)