Skip to content
Edit this page

Themes

CodeArt ships seven colorscheme plugins. Enfocado is the default; the others load the first time you switch to them, so they cost nothing at startup.

Theme Colorscheme names Flag in disable_plugins
Enfocado enfocado (default) nvim_enfocado
Tokyonight tokyonight, tokyonight-night, tokyonight-storm, tokyonight-moon, tokyonight-day tokyonight
Nightfly nightfly nightfly
Moonfly moonfly moonfly
Nordic nordic (nord still works and loads nordic) nordic
Onedark onedark onedark
Catppuccin catppuccin, catppuccin-latte, -frappe, -macchiato, -mocha (off by default) catppuccin

vscode.nvim (colorscheme vscode) is also installed, through the default additional_plugins list.

Try a theme

Keys Action
<leader>cp Pick a colorscheme with live preview
<leader>cf Pick a colorscheme (no preview)
<leader>co Cycle through the Onedark styles (dark, darker, cool, deep, warm, warmer, light)
<leader>cc Catppuccin (only when it is enabled)

Or run :colorscheme <name>. The pickers use Telescope or the snacks.nvim picker, depending on config.picker.

Make it the default

A theme picked with :colorscheme lasts until you quit. To keep it, set it in user/settings.lua (:CodeArtConfig opens it):

M.config = {
  other_configs = function()
    vim.cmd("colorscheme nordic")
  end,
}

other_configs runs last, after everything else has loaded.

Catppuccin

Catppuccin is off by default. Turn it on, restart, and pick a flavor:

M.disable_plugins = {
  catppuccin = false,
}

Theme options

Each bundled theme has an options table that is merged over CodeArt's settings for it, for example config.tokyonight, config.onedark or config.catppuccin (see the Configuration reference). Onedark starts in its deep style.

Transparent background

:CodeArtTransparent clears the background of the editor, floats, the sign and fold columns, the tabline and the plugin windows, so your terminal's background (or its transparency) shows through. It keeps the theme's foreground colors and leaves the statusline to lualine. Run it after picking a colorscheme, or add it to other_configs:

M.config = {
  other_configs = function()
    vim.cmd("colorscheme tokyonight")
    vim.cmd("CodeArtTransparent")
  end,
}

Add another theme

Add it with additional_plugins and give it a colorscheme trigger so it loads when you switch to it:

M.additional_plugins = {
  { "rebelot/kanagawa.nvim", colorscheme = "kanagawa" },
}

Remove a bundled theme you never use with its disable_plugins flag (for example nightfly = true).

Screenshots

Enfocado Tokyonight
Enfocado (default) Tokyonight
Onedark Nordic
Onedark Nordic