theme.toml
If you're looking for ready-made themes and don't want to create one yourself, check out the yazi-rs/flavors repository.
Types
Color
A color. It can be in Hex format with RGB values, such as "#484D66"
. Or can be one of the following 17 values:
"reset"
"black"
"white"
"red"
"lightred"
"green"
"lightgreen"
"yellow"
"lightyellow"
"blue"
"lightblue"
"magenta"
"lightmagenta"
"cyan"
"lightcyan"
"gray"
"darkgray"
Style
Appears in a format similar to { fg = "#e4e4e4", bg = "black", ... }
, and supports the following properties:
- fg (Color): Foreground color
- bg (Color): Background color
- bold (Boolean): Bold
- dim (Boolean): Dim (not supported by all terminals)
- italic (Boolean): Italic
- underline (Boolean): Underline
- blink (Boolean): Blink
- blink_rapid (Boolean): Rapid blink
- reversed (Boolean): Reversed foreground and background colors
- hidden (Boolean): Hidden
- crossed (Boolean): Crossed out
[flavor]
- dark (String): Flavor name used in dark mode, e.g.
"dracula"
. - light (String): Flavor name used in light mode, e.g.
"gruvbox"
.
See flavor documentation for more details.
[manager]
- cwd (Style): CWD text style.
Hovered:
- hovered (Style): Hovered file style.
- preview_hovered (Style): Hovered file style, in the preview pane.
Find: The find
feature
- find_keyword (Style): Style of the highlighted portion in the filename.
- find_position (Style): Style of current file location in all found files to the right of the filename.
Marker: Color block on the left side separator line in the filename.
- marker_copied (Style): Copied file marker style.
- marker_cut (Style): Cut file marker style.
- marker_marked (Style): Marker style of pre-selected file in visual mode.
- marker_selected (Style): Selected file marker style.
Tab: Tab bar.
- tab_active (Style): Active tab style.
- tab_inactive (Style): Inactive tab style.
- tab_width (Number): Tab maximum width. When set to a value greater than 2, the remaining space will be filled with the tab name, which is current directory name.
Count: Counters.
- count_copied (Style): Style of copied file number.
- count_cut (Style): Style of cut file number.
- count_selected (Style): Style of selected file number.
Border:
- border_symbol (String): Border symbol. e.g.
"│"
. - border_style (Style): Border style.
Highlighting: The built-in syntax highlighting feature
-
syntect_theme (String): For example,
"~/Downloads/Dracula.tmTheme"
, not available after using a flavor, as flavors always use their own tmTheme filestmtheme.xml
.Code preview highlighting themes, which are paths to
.tmTheme
files. You can find them on GitHub using "tmTheme" as a keyword