Make a hot theme.toml
for your Yazi icons with your favorite color palette.
Basically just an adaptation of
tiny-devicons-auto-colors.nvim
plugin for Yazi.
Observe how the default colors (on the left) have been replaced with user-provided colors (on the right). The key lies in selecting the nearest color from the new given palette that matches the original one.
These screenshots were made using the script's default output, which is the
same as the one you can find in the catppuccin.toml
file. The default config
uses the Mocha and Latte palettes for dark and light themes, respectively.
If you have a taste for catppuccin
flavors,
just grab the ready-made catppuccin.toml, rename it to
theme.toml
and add it to your Yazi config path. You can do this with a single
command using wget
, but be aware that this will overwrite any existing
theme.toml
file in your ~/.config/yazi
directory:
wget -O ~/.config/yazi/theme.toml https://raw.githubusercontent.com/lpnh/icons-brew.yazi/main/catppuccin.toml
That's it, enjoy!
Use the dark_colors_table
and light_colors_table
in the
config.lua file to apply the desired color palette. There's also
some other variables you can adjust to change the color matching results.
Run the brew.lua
script and save the output in a theme.toml
file.
Using Bash:
lua brew.lua > theme.toml
Using Nushell:
lua brew.lua | save theme.toml
Add the generated file to your Yazi config directory:
mv theme.toml ~/.config/yazi/theme.toml
- Yazi for the amazing — and Blazing Fast —
terminal file manager. The
brew.lua
follows the same script found on Yazi's repo. - tiny-devicons-auto-colors.nvim,
for the algorithm and implementation logic. I.e. everything on the prepare
path and the
config.lua
file derived from it. - nvim-web-devicons, for providing and maintaining the icons we all rely on.
- catppuccin, for the soothing pastel theme. The warmest flavors one could ask for.