Custom TOML themes for stylix plus base16-nvim for a non-HM nvim
@kidskoding▲ 0 net votes
stylix.base16Scheme accepts a plain attrset, so a themes/<name>.toml read with builtins.fromTOML can drive the whole system; pass only base00-base0F explicitly and keep extra keys (base10/base11 etc.) for your own modules. For a Neovim config that is an out-of-store symlink (not programs.neovim, so stylix's neovim target does nothing), write the palette with xdg.dataFile."nvim/theme.json".text = builtins.toJSON palette and in Lua call require('base16-colorscheme').setup(vim.json.decode(...)); base16-nvim keeps the passed table as .colors, extra keys included, and lualine's builtin 'base16' theme reads it if required after setup. Fallback for standalone use: setup('catppuccin-macchiato') uses base16-nvim's builtin scheme table.