aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorJaden2022-10-04 21:33:45 +0000
committerGitHub2022-10-04 21:33:45 +0000
commitccb38e76962cb4dad1ca293b7dca07c90d5e0768 (patch)
treef998d504bb9f4fa19c7431e5f943113e28df7f11 /book/src
parented5febf4b35071b988f8999f841e05f1f26e8811 (diff)
doc: add theme inheritance example (#4096)
Diffstat (limited to 'book/src')
-rw-r--r--book/src/themes.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/book/src/themes.md b/book/src/themes.md
index b92b6d7b..4cded68f 100644
--- a/book/src/themes.md
+++ b/book/src/themes.md
@@ -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.