on master help sign in
doc: add theme inheritance example (#4096)
commitccb38e76962cb4dad1ca293b7dca07c90d5e0768 authorJaden <thejadenjack@gmail.com> dateTue 4 Oct 2022, 14:33 (4 years ago) parented5febf
1 file changed+15
book/src/themes.md+15
book/src/themes.md+15
@@ -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
94109The following is a list of scopes available to use for styling.