Malick-Tammal/chroma.nvim

github github
colorschemecolorscheme-creation
stars 18
issues 0
subscribers 1
forks 0
CREATED

UPDATED



🎨 chroma.nvim derives every highlight group from a small palette, so one theme file styles syntax, Treesitter, LSP, semantic tokens, and 20+ plugin integrations consistently. It ships with 98 themes vendored from NvChad/base46 plus monokai-fusion, and any base46 theme also works.

📸 Preview

🔍 Browse all 99+ themes with :Chroma pick.

✨ Features

  • 🎨 99+ themes with a base46-compatible palette schema; drop in a palette file to add your own.
  • 🌈 Data-driven highlights for syntax, Treesitter, LSP, semantic tokens, and plugin integrations.
  • 🛠️ Deep customization with transparent backgrounds, per-theme polish, and user overrides.
  • 💾 Persistent theme selection across restarts with :Chroma reset to go back to the configured default.
  • 🔭 Telescope picker with inline palette swatches, and live colorscheme preview.
  • 🎯 Clean events with exactly one ColorScheme event per theme switch, so statuslines and bufferlines update naturally.

📋 Requirements

📦 Installation

With lazy.nvim:

return {
  "malick-tammal/chroma.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("chroma").setup {
      theme = "monokai-fusion",
    }
  end,
}

For local development, point Lazy at your checkout instead:

return {
  dir = "~/Projects/chroma.nvim",
  name = "chroma.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("chroma").setup {}
  end,
}

🚀 Quick start

require("chroma").setup {
  theme = "monokai-fusion", -- startup theme
  transparency = false,     -- set backgrounds to NONE
  persist = true,           -- remember the last applied theme
  overrides = nil,          -- table or function(palette, theme)
  lualine = {               -- optional lualine options
    transparency = nil,     -- override global transparency for lualine
    overrides = nil,        -- table or function(palette, theme)
  },
}

-- In your lualine setup:
require("lualine").setup {
  options = {
    theme = "chroma",
  },
}
Command Description
:Chroma pick Open the Telescope theme picker
:Chroma list List available themes
:Chroma apply <name> Apply a theme by name
:Chroma current Print the active theme
:Chroma reset Clear the saved theme and use the configured default
:checkhealth chroma Report themes, integrations, and configuration problems
:colorscheme ch-<name> Load any shipped theme through its shim
local chroma = require("chroma")

chroma.apply("tokyonight", {
  quiet = true,     -- suppress the notification
  persist = false,  -- do not save this selection
  fire_event = true -- fire ColorScheme (default)
})

print(chroma.current())
print(table.concat(chroma.list(), ", "))
print(chroma.palette().black)

📚 Documentation

Guide What it covers
User guide Installation, every option, commands, Lua API, transparency, persistence, picker, Lualine, plugin integrations, troubleshooting
Theme guide Palette schema, writing a theme, polish files, testing, and submitting a theme to chroma.nvim
Highlight reference Highlight spec syntax, override methods, custom groups, and per-theme polish recipes

Once installed, :help chroma opens the same reference inside Neovim.

🔌 Supported plugins

chroma.nvim ships highlights for telescope, bufferline, nvim-cmp, snacks, neo-tree, mini.nvim, noice, nvim-notify, yanky, which-key, render-markdown, lspsaga, inc-rename, gitsigns, flash, todo-comments, mason, nvim-scrollbar, minuet-ai, smear-cursor, and lualine. See the full table for integration keys.

🤝 Contributing

chroma.nvim is brand new and actively growing — and we'd love your help shaping it!

Whether you are fixing bugs, improving documentation, or adding integrations for your favorite plugins, all contributions are warmly welcome.

🎨 Craft your dream colorscheme & go wild!

Because themes in chroma.nvim are 100% data-driven palettes (no messy highlight logic required), authoring a theme takes just minutes.

We want to see the wildest, most creative community themes imaginable:

  • 🌴 GTA VI / Vice City: Neon pinks, palm-tree purples, and vibrant ocean turquoise.
  • ⚡ Cyberpunk 2077: Glitchy neon yellows, hot magenta, and high-voltage contrast.
  • 🌌 Synthwave / Outrun, retro anime aesthetics, sci-fi terminals, or whatever vibe fuels your flow state.

If you've created a custom palette, don't keep it to yourself — submit a PR and have it shipped directly with chroma.nvim!

🛠️ Getting started

  • Check out the Theme Creation Guide to see the palette schema and how easy it is to add a theme.
  • See CONTRIBUTING.md for the development workflow, testing, and linting guidelines.
  • Have a plugin you love that needs highlight integration? Check docs/highlights.md to add it.

💖 Credits

  • Palettes and theme schema: NvChad/base46, MIT, © 2019 Ashkan Kiani — vendored at tag v3.0.
  • monokai-fusion: derived from Monokai Pro.
  • HSL helpers in lua/chroma/engine/resolve.lua numerically match base46.

Individual theme credits live in lua/chroma/themes/CREDITS.md.

📄 License

MIT.