on master help sign in
doc: add theme inheritance example (#4096)
ccb38e7Jaden
book/src/themes.md+15
@@ -89,6 +89,21 @@ Less common modifiers might not be supported by your terminal emulator.
89| `hidden` |
89| `hidden` |
90| `crossed_out` |
90| `crossed_out` |
91
91
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+
92### Scopes
107### Scopes
93
108
94The following is a list of scopes available to use for styling.
109The following is a list of scopes available to use for styling.