Skip to main content
The theme.toml file controls Yazi’s visual appearance including colors, text styles, and icons.

File Location

  • Unix-like systems: ~/.config/yazi/theme.toml
  • Windows: %AppData%\yazi\config\theme.toml

Dark and Light Themes

Yazi automatically loads different default themes based on your terminal’s color mode:
  • Dark mode: theme-dark.toml is used as the base
  • Light mode: theme-light.toml is used as the base
Your theme.toml overrides settings in both default themes.

Flavors for Advanced Theming

For more granular control over light and dark modes, use flavors:
Then create separate flavor files in ~/.config/yazi/flavors/.

Style Syntax

Styles are defined using TOML tables with the following fields:
string
Foreground color. See Colors section.
string
Background color. See Colors section.
boolean
Bold text when true
boolean
Italic text when true
boolean
Underlined text when true
boolean
Swap foreground and background colors when true

Colors

Colors can be specified as:
  • Named colors: black, red, green, yellow, blue, magenta, cyan, white, gray
  • Light variants: lightred, lightgreen, lightyellow, lightblue, lightmagenta, lightcyan
  • Dark variants: darkgray, darkred, darkgreen, darkyellow, darkblue, darkmagenta, darkcyan
  • RGB hex: #RRGGBB (e.g., #ff0000 for red)
  • Special: reset to use terminal default

Example Styles

Configuration Sections

[flavor] - Theme Flavors

[app] - Overall App Style

[mgr] - File Manager

[tabs] - Tab Bar

[mode] - Mode Indicator

[indicator] - File Indicator

[status] - Status Bar

[which] - Which-Key Popup

[confirm] - Confirmation Dialog

[spot] - File Details Spotter

[notify] - Notifications

[pick] - Picker Dialog

[input] - Input Dialog

[cmp] - Completion Popup

[tasks] - Task Manager

[help] - Help Menu

[filetype] - File Type Colors

Define colors for different file types:
Rule fields:
  • mime - Match by MIME type pattern
  • url - Match by URL pattern
  • is - Match by file property: orphan, exec, dummy, link, block, char, fifo, sock, sticky
  • fg - Foreground color
  • bg - Background color

[icon] - File and Folder Icons

Define custom icons for files and folders:
Icon conditions (if field):
  • dir - Directories
  • exec - Executable files
  • link - Symbolic links
  • orphan - Broken symlinks
  • block - Block devices
  • char - Character devices
  • fifo - Named pipes
  • sock - Sockets
  • sticky - Files with sticky bit
  • dummy - Dummy files
  • !dir - Non-directories (fallback)

Complete Example

Tips

Using Nerd Fonts

Many icon glyphs require Nerd Fonts. Make sure your terminal uses a Nerd Font to display icons correctly.

Color Schemes

Popular color schemes for Yazi:
  • Catppuccin: Soothing pastel theme
  • Tokyo Night: Dark theme inspired by Tokyo’s night
  • Nord: Arctic, north-bluish color palette
  • Gruvbox: Retro groove color scheme
Check the Yazi Flavors for pre-made themes.

Testing Colors

To test your theme changes:
  1. Save your theme.toml
  2. Reload Yazi (or restart it)
  3. Check the appearance
  4. Iterate on colors until satisfied

See Also