Gruvbox
Gruvbox is Pavel Pertsev's warm retro palette — earthy oranges, deep greens and mustard yellows on a coffee-and-cream canvas, and the only warm palette in the catalog. Born as a Vim colorscheme, it keeps terminal conventions: keywords in red, functions in yellow, types in green, constants in purple. The preset ships the medium contrast level in light and dark; the soft and hard levels are not included.
Opt in
{
"site": {
"theme": {
"package": "@refrakt-md/lumina",
"presets": ["@refrakt-md/lumina/presets/gruvbox"]
}
}
}
Palette
Gruvbox — light medium
bg0 (canvas)#fbf1c7W: 1.1 · B: 18.5AA ✗AAA ✗
bg1 (surface)#ebdbb2W: 1.4 · B: 15.3AA ✗AAA ✗
fg1 (text, variable)#3c3836W: 11.6 · B: 1.8AA ✓AAA ✓
gray (comment, muted)#928374W: 3.7 · B: 5.7AA ✗AAA ✗
faded_red (keyword, tag)#9d0006W: 8.6 · B: 2.4AA ✓AAA ✓
faded_orange (regex, operator)#af3a03W: 6.1 · B: 3.4AA ✓AAA ✗
faded_yellow (function)#b57614W: 3.8 · B: 5.6AA ✗AAA ✗
faded_green (string, type)#79740eW: 4.9 · B: 4.3AA ✓AAA ✗
faded_aqua (string-expression)#427b58W: 5.0 · B: 4.2AA ✓AAA ✗
faded_blue (primary, attribute)#076678W: 6.6 · B: 3.2AA ✓AAA ✗
faded_purple (constant, number)#8f3f71W: 6.7 · B: 3.1AA ✓AAA ✗
Gruvbox — dark medium
bg0 (canvas)#282828W: 14.7 · B: 1.4AA ✓AAA ✓
bg1 (surface)#3c3836W: 11.6 · B: 1.8AA ✓AAA ✓
fg1 (text, variable, punctuation)#ebdbb2W: 1.4 · B: 15.3AA ✗AAA ✗
gray (comment, muted)#928374W: 3.7 · B: 5.7AA ✗AAA ✗
bright_red (keyword, tag)#fb4934W: 3.4 · B: 6.1AA ✗AAA ✗
bright_orange (regex, operator)#fe8019W: 2.5 · B: 8.3AA ✗AAA ✗
bright_yellow (function)#fabd2fW: 1.7 · B: 12.4AA ✗AAA ✗
bright_green (string, type)#b8bb26W: 2.1 · B: 10.2AA ✗AAA ✗
bright_aqua (string-expression)#8ec07cW: 2.1 · B: 10.0AA ✗AAA ✗
bright_blue (primary, attribute)#83a598W: 2.7 · B: 7.8AA ✗AAA ✗
bright_purple (constant, number)#d3869bW: 2.7 · B: 7.7AA ✗AAA ✗
Preview
// A small user-service shape
interface User {
id: number;
name: string;
preferences: Record<string, unknown>;
}
async function findUser(id: number): Promise<User | null> {
const re = /^\d+$/;
if (!re.test(String(id))) return null;
const user = await db.users.findOne({ where: { id } });
return user ?? null;
}
const widget = <Button onClick={() => findUser(42)} variant="primary">Find</Button>;
Attribution
Gruvbox is the work of Pavel Pertsev (morhetz), MIT licensed. The preset is derived from gruvbox.vim and its palette specification.