Skip to content

Commit

Permalink
doc: add theme inheritance example (#4096)
Browse files Browse the repository at this point in the history
  • Loading branch information
greym0uth authored Oct 4, 2022
1 parent ed5febf commit ccb38e7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions book/src/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ccb38e7

Please sign in to comment.