Mellow
A warm, minimalist light colorscheme for (neo)vim
Plug 'adigitoleo/vim-mellow'
Note for terminal users: This theme requires 24-bit RGB color support. If your terminal is compatible, enable RGB colors via :set termguicolors
Screenshots
Taken on alacritty with LiberationMono font:
Do you want a statusline as well? Try the mellow statusline!
Installation
If you use a vim plugin manager (recommended), consult the relevant documentation. Here are some links to popular plugin managers:
For manual installation, download the files from GitHub and put the colors
folder inside:
~/.vim/
(vim users)~/.config/nvim/
(neovim users)
Usage
To apply commands at startup, add them to the end of your configuration file (see :help vimrc
).
:set termguicolors
:colorscheme mellow
You can omit the termguicolors
part if you are running (neo)vim in a GUI.
If it doesn't look right, it probably isn't. If you're sure you are running in a compatible terminal, read :help 'termguicolors'
and :help xterm-true-color
before opening an issue.
Options
Use mellow color palette in the embedded terminal:
- enabled (
1
) by default if your (neo)vim has the terminal feature :let g:mellow_terminal_colors = 0
to disable
Customization
To make small changes to a colorscheme, use autocommands (see :help autocmd
). For example, to make line numbering use the normal background color:
augroup fix_colors
autocmd!
autocmd ColorScheme mellow hi LineNr guibg=None
autocmd ColorScheme mellow hi CursorLineNr guibg=None
augroup END
Miscellaneous
This theme was first motivated by a lack of bg=light
option in vim-farout, which uses a similar palette in a completely different arrangement. I wanted a light theme with moderate contrast and warm colors, that didn't make me want to change every single syntax file. To me, mellow lies mid-way between :syntax off
and popular themes like solarized or gruvbox.
And that's just the way I like it :)
Since the theme uses only 16 colors, you can use the same palette in your terminal of choice. For example, for alacritty I use:
colors:
primary:
background: '#f2ddbc'
foreground: '#0f0908'
normal:
black: '#0f0908'
red: '#af0032'
green: '#4c6e25'
yellow: '#a67458'
blue: '#573e55'
magenta: '#66292f'
cyan: '#bf472c'
white: '#e0ccae'
bright:
black: '#291916'
red: '#ff7477'
green: '#84bf40'
yellow: '#f5bb89'
blue: '#8a7b85'
magenta: '#8a4b53'
cyan: '#d47d49'
white: '#f2ddbc'
Consult the relevant documentation for how to set this up in other programs.
Some more links, for your convenience:
Stay tuned for mellow's fellows (i3wm, rofi, ...)