Catppuccin
Catppuccin is a soft-pastel palette family with an unusually thorough syntax style guide: every hue has a name and a documented role. It is one of the few palettes to give function parameters their own hue (Maroon), and it colors six of the seven extended syntax roles distinctly. The preset ships the canonical pair — Latte for light, Mocha for dark; the Frappé and Macchiato flavors are not included.
Opt in
{
"site": {
"theme": {
"package": "@refrakt-md/lumina",
"presets": ["@refrakt-md/lumina/presets/catppuccin"]
}
}
}
Palette
Catppuccin — Latte (light)
Base (canvas)#eff1f5W: 1.1 · B: 18.6AA ✗AAA ✗
Mantle (surface)#e6e9efW: 1.2 · B: 17.3AA ✗AAA ✗
Text (variable)#4c4f69W: 8.0 · B: 2.6AA ✓AAA ✓
Overlay0 (comment)#9ca0b0W: 2.6 · B: 8.1AA ✗AAA ✗
Mauve (keyword, tag)#8839efW: 5.4 · B: 3.9AA ✓AAA ✗
Blue (function, attribute, primary)#1e66f5W: 4.9 · B: 4.3AA ✓AAA ✗
Yellow (type)#df8e1dW: 2.6 · B: 8.0AA ✗AAA ✗
Green (string)#40a02bW: 3.3 · B: 6.3AA ✗AAA ✗
Peach (constant, number)#fe640bW: 3.0 · B: 7.0AA ✗AAA ✗
Pink (regex, string-expression)#ea76cbW: 2.6 · B: 8.0AA ✗AAA ✗
Sky (operator)#04a5e5W: 2.8 · B: 7.5AA ✗AAA ✗
Maroon (parameter)#e64553W: 3.9 · B: 5.3AA ✗AAA ✗
Lavender (primary-hover)#7287fdW: 3.2 · B: 6.6AA ✗AAA ✗
Catppuccin — Mocha (dark)
Base (canvas)#1e1e2eW: 16.4 · B: 1.3AA ✓AAA ✓
Mantle (surface)#181825W: 17.6 · B: 1.2AA ✓AAA ✓
Text (variable)#cdd6f4W: 1.4 · B: 14.5AA ✗AAA ✗
Overlay0 (comment)#6c7086W: 4.9 · B: 4.3AA ✓AAA ✗
Mauve (keyword, tag)#cba6f7W: 2.0 · B: 10.3AA ✗AAA ✗
Blue (function, attribute, primary)#89b4faW: 2.1 · B: 10.0AA ✗AAA ✗
Yellow (type)#f9e2afW: 1.3 · B: 16.5AA ✗AAA ✗
Green (string)#a6e3a1W: 1.5 · B: 14.1AA ✗AAA ✗
Peach (constant, number)#fab387W: 1.8 · B: 11.9AA ✗AAA ✗
Pink (regex, string-expression)#f5c2e7W: 1.5 · B: 13.8AA ✗AAA ✗
Sky (operator)#89dcebW: 1.6 · B: 13.5AA ✗AAA ✗
Maroon (parameter)#eba0acW: 2.1 · B: 10.2AA ✗AAA ✗
Lavender (primary-hover)#b4befeW: 1.8 · B: 11.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
Catppuccin is the work of the Catppuccin organization and contributors, MIT licensed. The preset is derived from the official palette and the syntax style guide.