From d09c97c014378b88214146b2f9e71ef05d51a801 Mon Sep 17 00:00:00 2001 From: Jaden Date: Mon, 3 Oct 2022 17:46:29 -0700 Subject: [PATCH 1/2] doc: add theme inheritance example --- book/src/themes.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/book/src/themes.md b/book/src/themes.md index b92b6d7b1da3..23052ea3e4c5 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -89,6 +89,14 @@ 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" +``` + ### Scopes The following is a list of scopes available to use for styling. From 4af6478569384c9c328c409de343945fe14aa1db Mon Sep 17 00:00:00 2001 From: greym0uth Date: Tue, 4 Oct 2022 08:11:57 -0700 Subject: [PATCH 2/2] add some override examples --- book/src/themes.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/book/src/themes.md b/book/src/themes.md index 23052ea3e4c5..4cded68fe4ed 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -95,6 +95,13 @@ 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