Skip to content
Gruvbox with Material Palette
Vim script Shell
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload adjust white in the dark variant Nov 7, 2019
colors adjust white in the dark variant Nov 7, 2019
doc add note for g:gruvbox_material_lightline_disable_bold Oct 14, 2019
templates adjust white in the dark variant Nov 7, 2019
Anti-996-LICENSE add license Jul 20, 2019 release v0.3.3 Nov 7, 2019
LICENSE add license Jul 20, 2019


𝐎𝐫𝐢𝐠𝐢𝐧𝐚𝐥 𝐆𝐫𝐮𝐯𝐛𝐨𝐱 𝐆𝐫𝐮𝐯𝐛𝐨𝐱 𝐌𝐚𝐭𝐞𝐫𝐢𝐚𝐥
𝒉𝒂𝒓𝒅 original-hard-dark material-hard-dark
𝒎𝒆𝒅𝒊𝒖𝒎 original-medium-dark material-medium-dark
𝒔𝒐𝒇𝒕 original-soft-dark material-soft-dark


𝐎𝐫𝐢𝐠𝐢𝐧𝐚𝐥 𝐆𝐫𝐮𝐯𝐛𝐨𝐱 𝐆𝐫𝐮𝐯𝐛𝐨𝐱 𝐌𝐚𝐭𝐞𝐫𝐢𝐚𝐥
𝒉𝒂𝒓𝒅 original-hard-light material-hard-light
𝒎𝒆𝒅𝒊𝒖𝒎 original-medium-light material-medium-light
𝒔𝒐𝒇𝒕 original-soft-light material-soft-light

In my opinion, the very first thing a color scheme should do is to be eye-friendly, anything else is secondary. This requires soft contrast and low blue light.

Gruvbox Material is based on Gruvbox, but with a very different color palette, I'm trying to adjust the foreground colors to match these requirements.

The syntax highlighting logic used in this branch is almost the same as the original gruvbox. In addition, I've developed neosyn branch that uses another syntax highlighting logic, and it has also been optimized for common file types and plugins.


Via Plugin Manager

Take vim-plug for example:

Plug 'sainnhe/gruvbox-material'

For better syntax highlighting support, please install sheerun/vim-polyglot.


  1. Clone this repository.
  2. Copy /path/to/gruvbox-material/colors/* to ~/.vim/colors/
  3. To install airline theme, copy /path/to/gruvbox-material/autoload/airline/themes/gruvbox_material.vim to ~/.vim/autoload/airline/themes/gruvbox_material.vim
  4. To install lightline theme, copy /path/to/gruvbox-material/autoload/lightline/colorscheme/gruvbox_material.vim to ~/.vim/autoload/lightline/colorscheme/gruvbox_material.vim


There is a package available for Arch Linux users in AUR: gruvbox-material-git



Put something like this in your vimrc:

" if you don't set this option, this color scheme will fall back to the original gruvbox
set termguicolors

" for dark version
set background=dark

" for light version
set background=light

colorscheme gruvbox-material

If you want to apply this color scheme temporarily, run this command in vim(this may cause broken colors):

:colorscheme gruvbox-material


To enable airline color scheme, put this in your vimrc:

let g:airline_theme = 'gruvbox_material'

To apply it without reloading:

:AirlineTheme gruvbox_material


To enable lightline color scheme, put this in your vimrc:

let g:lightline = {}
let g:lightline.colorscheme = 'gruvbox_material'

" or this line
let g:lightline = {'colorscheme' : 'gruvbox_material'}

To apply it without reloading:

:let g:lightline.colorscheme = 'gruvbox_material'
:call lightline#init()
:call lightline#colorscheme()


See :help gruvbox-material-configuration


Q: It doesn't work as expected.


  1. This color scheme is mainly designed for true colors, set termguicolors is required. Check output of vim --version, maybe your vim doesn't support termguicolors.

  2. Maybe your terminal emulator doesn't support true colors, you can test it using this script.

  3. If you are running vim in tmux, you need to override default true colors of tmux, as tmux cannot display true color properly: #1246 How to use true colors in vim under tmux?

  4. There are many highlight group links in syntax files while a color scheme may change them, enabling one color scheme based on another color scheme enabled is very likely to cause colors to break. If any color is broken, you can enable the color scheme in your vimrc instead of after vim startup.

Q: What's your status line configuration?

A: Check this gist.

Q: What's the font used here?

A: Fira Code Nerd Font.


Check this gist for detailed instructions to hack this color scheme:

Related Projects

Color reference: dark, light

Note: The following projects are sorted by alphabet.

Code Editor

Terminal Emulators




MIT && Anti-996

You can’t perform that action at this time.