NyxVim uses base46 for theming, providing a flexible and powerful way to customize the appearance of your editor. This guide will walk you through the process of overriding highlight groups, customizing existing themes, and creating your own themes.
Base46 is a color scheme manager that allows for easy creation and modification of themes in Neovim.
You can create your own themes by defining a new theme file:
Copy
-- File: /lua/themes/mytheme.lualocal M = {}M.base_30 = { -- Define 30 colors based on base_16}M.base_16 = { -- Define 16 base colors}M.type = "dark" -- or "light"return M
After creating your theme, add it to your configuration:
Copy
M.base46 = { theme = "mytheme",}
Creating custom themes requires careful color selection to ensure good contrast and readability. Test your theme thoroughly in different contexts.