Skip to content

Commit c39166a

Browse files
committed
docs: flavor documentation update for 0.4
1 parent 722d61e commit c39166a

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docs/flavors/overview.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,26 @@ Where:
5050

5151
## Usage {#usage}
5252

53-
For example, if you want to use the `bar.yazi` flavor, set the content of your `theme.toml` to:
53+
For example, if you want to use the `bar.yazi` flavor in _dark_ mode, set the content of your `theme.toml` to:
5454

5555
```toml
5656
[flavor]
57-
use = "bar"
57+
dark = "bar"
58+
```
59+
60+
or use it in _light_ mode:
61+
62+
```toml
63+
[flavor]
64+
light = "bar"
65+
```
66+
67+
If you want to use the `bar.yazi` flavor in both _dark_ and _light_ modes:
68+
69+
```toml
70+
[flavor]
71+
dark = "bar"
72+
light = "bar"
5873
```
5974

6075
Make sure your `theme.toml` doesn't contain anything other than `[flavor]`, unless you want to override certain styles of the `bar.yazi` flavor.

0 commit comments

Comments
 (0)