luisiacc/gruvbox-baby

github github
tree-sitter-supported-colorscheme
star 22
stars
alert-circle 1
open issues
users 1
subscribers
git-branch 1
forks
CREATED

2021-12-25

UPDATED

21 hours ago


logo

🎄 Gruvbox baby!

My variation of the gruvbox theme with full support for treesitter!

Why?

I wasn't confortable with the gruvbox themes out there, either they didn't have good treesitter support or if they do, I didn't like their colors on python and javascript/typescript files.

📸 Pretty pictures

Lua example lua-example

Python example python-example

React with typescript example react-typescript-example

Data from images:

Font: Jetbrains Mono patched with nerd fonts

Terminal: https://github.com/wez/wezterm

⚙️ Installation

Plug 'luisiacc/gruvbox-baby', {'branch': 'main'}
...
colorscheme gruvbox-baby

🪛 Configuration

❗️ configuration needs to be set BEFORE loading the color scheme with colorscheme gruvbox-baby

Option Default Available options
background_color medium medium, dark
comment_style italic see :h attr-list
keyword_style italic see :h attr-list
function_style bold see :h attr-list
variable_style NONE see :h attr-list
hightlights {} override highlights with your custom colors
-- Example config in Lua
vim.g.gruvbox_baby_function_style = "NONE"
vim.g.gruvbox_baby_keyword_style = "italic"

-- Each highlight group must follow the structure:
-- ColorGroup = {fg = "foreground color", bg = "background_color", style = "some_style(:h attr-list)"}
-- See also :h highlight-guifg
-- Example:
vim.g.gruvbox_baby_highlights = {Normal = {fg = "#123123", bg = "NONE", style="underline"}}

-- Load the colorscheme
vim.cmd[[colorscheme gruvbox-baby]]
" Example config in VimScript
let g:gruvbox_baby_function_style = "NONE"
let g:gruvbox_baby_keyword_style = "italic"

" Load the colorscheme
colorscheme gruvbox-baby

If you want access to the palette you have to:

local colors = require("gruvbox-baby.colors").config()
vim.g.gruvbox_baby_highlights = {Normal = {fg = colors.orange}}

🔌 Plugin support

☑️ TODO

  • Add specification for background intensity

Palette

gruvbox palette

Aknowledgments