A port of the retro groove Gruvbox color theme, including both flavors Dark and Light, each in three contrasts: Hard, medium (default) and Soft.
Both flavors expose the same API, with Hard and Soft variants alongside the default medium contrast. Only the editor background (and the panel color derived from it) changes between contrasts; the highlight style is shared.
gruvboxDarkHard: Extension;
gruvboxDark: Extension;
gruvboxDarkSoft: Extension;
gruvboxLightHard: Extension;
gruvboxLight: Extension;
gruvboxLightSoft: Extension;import { gruvboxDark } from 'gruvbox-codemirror-theme';
new EditorView({
state: EditorState.create({
extensions: [gruvboxDark, ...]
...
});
...
});gruvboxDarkHardTheme: Extension;
gruvboxDarkTheme: Extension;
gruvboxDarkSoftTheme: Extension;
gruvboxLightHardTheme: Extension;
gruvboxLightTheme: Extension;
gruvboxLightSoftTheme: Extension;import { gruvboxDarkTheme } from 'gruvbox-codemirror-theme';
new EditorView({
state: EditorState.create({
extensions: [gruvboxDarkTheme, ...]
...
});
...
});gruvboxDarkHighlightStyle: HighlightStyle;
gruvboxLightHighlightStyle: HighlightStyle;import { syntaxHighlighting } from "@codemirror/language";
import { gruvboxDarkHighlightStyle } from 'gruvbox-codemirror-theme';
new EditorView({
state: EditorState.create({
extensions: [syntaxHighlighting(gruvboxDarkHighlightStyle), ...]
...
});
...
});Credits to morhetz for the original Vim theme and ellisonleao for the Neovim port.
This project is licensed under the MIT License - see the LICENSE file for details.






