ryanjayleyva/kasumi.nvim

github github
colorscheme
stars 0
issues 0
subscribers 0
forks 0
CREATED

UPDATED


kasumi.nvim 💮

A Neovim colorscheme written in Lua, with a muted palette of dusty pinks, sages and greys on a near-black background.

kasumi.nvim in Astro, CSS, Rust and Go

Features

  • Editor, syntax, Treesitter and LSP semantic token highlights
  • Plugin highlights for gitsigns, nvim-cmp, telescope, nvim-treesitter-context, nvim-dap, neotest, mason, kulala and vim-dadbod-ui
  • The 16 terminal colors set inside Neovim, so :terminal matches the theme
  • Matching themes for Ghostty, WezTerm, tmux, eza, powerlevel10k and zsh syntax highlighting, in extras

Installation

With vim.pack, the plugin manager built into Neovim 0.12 and newer:

vim.pack.add({ 'https://github.com/ryanjayleyva/kasumi.nvim' })
vim.cmd.colorscheme('kasumi')

With lazy.nvim:

{
  'ryanjayleyva/kasumi.nvim',
  lazy = false,
  priority = 1000,
  config = function()
    vim.cmd.colorscheme('kasumi')
  end,
}

Options

Call setup before loading the colorscheme. These are the defaults:

require('kasumi').setup({
  -- Use the terminal background instead of the theme background
  transparent = false,
})

Transparent background

Set transparent = true before loading the colorscheme.

With vim.pack:

vim.pack.add({ 'https://github.com/ryanjayleyva/kasumi.nvim' })
require('kasumi').setup({ transparent = true })
vim.cmd.colorscheme('kasumi')

With lazy.nvim:

{
  'ryanjayleyva/kasumi.nvim',
  lazy = false,
  priority = 1000,
  config = function()
    require('kasumi').setup({ transparent = true })
    vim.cmd.colorscheme('kasumi')
  end,
}

The editor, winbar and selected tab then use your terminal's background, so set the opacity or blur in the terminal itself. Floating windows, the statusline and the treesitter-context bar stay opaque.

Palette

The editor colors reuse the base colors where they can. Only the backgrounds and the soft foreground are new.

Base colors (ANSI 0-15)

These also set the :terminal colors inside Neovim. The tables below are generated from lua/kasumi/palette.lua by scripts/build-extras.lua.

Index Name Color
0 black black
1 rose rose
2 sage sage
3 blush blush
4 aqua aqua
5 mauve mauve
6 jade jade
7 grey grey
8 charcoal charcoal
9 rose_light rose_light
10 cream cream
11 peach peach
12 mist mist
13 lavender lavender
14 sage_light sage_light
15 silver silver

Editor colors

Role Color Variable
background background ink
background_panel background_panel ink_darker
background_popup background_popup ink_popup
subtle subtle charcoal
selection selection ink_selection
foreground foreground silver
foreground_soft foreground_soft ash
foreground_muted foreground_muted grey
border border charcoal

Extras

The extras folder has the same colors for other tools. Each file starts with a comment that says where to copy it and what to add to your config.

Tool File
Ghostty extras/ghostty/kasumi
WezTerm extras/wezterm/kasumi.toml or extras/wezterm/kasumi.lua
tmux extras/tmux/kasumi.tmux
eza in zsh extras/zsh/kasumi-eza.zsh
powerlevel10k extras/zsh/kasumi-p10k.zsh
zsh-syntax-highlighting and zsh-autosuggestions extras/zsh/kasumi-syntax.zsh

The powerlevel10k file sets the prompt colors, but not the git segment. The default ~/.p10k.zsh hardcodes those colors in my_git_formatter, so edit that function by hand. In ~/.p10k.zsh, replace the colors in the first block of my_git_formatter, the one commented green foreground, with these. The .gitconfig color settings don't affect the prompt.

local clean='%F{#babca7}' modified='%F{#9cbeba}'
local untracked='%F{#cac1c7}' conflicted='%F{#dbaeaf}'

The same lines are in the comment at the top of extras/zsh/kasumi-p10k.zsh.

Rex can import the Ghostty file, so import extras/ghostty/kasumi there to use kasumi.

Contributing

The extras and the palette tables above are generated from lua/kasumi/palette.lua, so edit the palette and never the generated files. Then run this with Neovim 0.10 or newer:

nvim -l scripts/build-extras.lua

Add --check to list any generated file that is out of date without writing.

License

Released under the Apache License 2.0.