|
| 1 | +# Default Configuration |
| 2 | + |
| 3 | +> [!IMPORTANT] |
| 4 | +> If you're using a stable release of Yazi instead of the latest nightly build, make sure you're checking these files from [the shipped tag][shipped], not the latest main branch. |
| 5 | +
|
| 6 | +This directory contains the default configuration files for Yazi: |
| 7 | + |
| 8 | +- [`yazi-default.toml`][yazi-default]: General configuration |
| 9 | +- [`keymap-default.toml`][keymap-default]: Keybindings configuration |
| 10 | +- [`theme-dark.toml`][theme-dark]: Dark color scheme (loaded when your terminal is in dark mode) |
| 11 | +- [`theme-light.toml`][theme-light]: Light color scheme (loaded when your terminal is in light mode) |
| 12 | + |
| 13 | +These files are already included with Yazi when you install the release, so you don't need to manually download or copy them to your Yazi configuration directory. |
| 14 | + |
| 15 | +However, if you want to customize certain configurations: |
| 16 | + |
| 17 | +- Create a `yazi.toml` in your config directory to override the settings in [`yazi-default.toml`][yazi-default], so either: |
| 18 | + - `~/.config/yazi/yazi.toml` on Unix-like systems |
| 19 | + - `C:\Users\USERNAME\AppData\Roaming\yazi\config\yazi.toml` on Windows |
| 20 | +- Create a `keymap.toml` in your config directory to override the settings in [`keymap-default.toml`][keymap-default], so either: |
| 21 | + - `~/.config/yazi/keymap.toml` on Unix-like systems |
| 22 | + - `C:\Users\USERNAME\AppData\Roaming\yazi\config\keymap.toml` on Windows |
| 23 | +- Create a `theme.toml` in your config directory to override the settings in [`theme-light.toml`][theme-light] and [`theme-dark.toml`][theme-dark], so either: |
| 24 | + - `~/.config/yazi/theme.toml` on Unix-like systems |
| 25 | + - `C:\Users\USERNAME\AppData\Roaming\yazi\config\theme.toml` on Windows |
| 26 | + |
| 27 | +For the user's `theme.toml` file, you can only apply the same color scheme to both the light and dark themes. |
| 28 | + |
| 29 | +If you want more granular control over colors, specify two different flavors for light and dark modes under the `[flavor]` section of your `theme.toml`, and override them in your respective flavor instead. |
| 30 | + |
| 31 | +[shipped]: https://github.com/sxyazi/yazi/tree/shipped |
| 32 | +[yazi-default]: yazi-default.toml |
| 33 | +[keymap-default]: keymap-default.toml |
| 34 | +[theme-dark]: theme-dark.toml |
| 35 | +[theme-light]: theme-light.toml |
| 36 | + |
| 37 | +## Learn more |
| 38 | + |
| 39 | +- [Configuration documentation](https://yazi-rs.github.io/docs/configuration/overview) |
| 40 | +- [Flavors documentation](https://yazi-rs.github.io/docs/flavors/overview) |
0 commit comments