From ccb38e76962cb4dad1ca293b7dca07c90d5e0768 Mon Sep 17 00:00:00 2001 From: Jaden Date: Tue, 4 Oct 2022 14:33:45 -0700 Subject: [PATCH] doc: add theme inheritance example (#4096) --- book/src/themes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.