Catppuccin Frappé is a shadcn/ui theme built around a light violet primary color (#ca9ee6) with muted blue accents (#4e5573). The light mode uses a blue-tinted background (#303446). Dark mode keeps the light violet primary (#ca9ee6) on a blue-tinted background (#303446).
| Token | Light | Dark |
|---|---|---|
| Background | #303446darkslategray | #303446darkslategray |
| Foreground | #c7d1f5lightblue | #c7d1f5lightblue |
| Card | #2b2f40darkslategray | #2b2f40darkslategray |
| Card foreground | #dce3f9lavender | #dce3f9lavender |
| Popover | #292d3ddarkslategray | #292d3ddarkslategray |
| Popover foreground | #f2f4fdaliceblue | #f2f4fdaliceblue |
| Primary | #ca9ee6plum | #ca9ee6plum |
| Primary foreground | #2e1141midnightblue | #2e1141midnightblue |
| Secondary | #442d53darkslategray | #442d53darkslategray |
| Secondary foreground | #dbcde4gainsboro | #dbcde4gainsboro |
| Muted | #3d404ddarkslategray | #3d404ddarkslategray |
| Muted foreground | #bdc0cbsilver | #bdc0cbsilver |
| Accent | #4e5573darkslateblue | #4e5573darkslateblue |
| Accent foreground | #f9f9fbghostwhite | #f9f9fbghostwhite |
| Destructive | #fb372dorangered | #fb372dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #41434edarkslategray | #41434edarkslategray |
| Input | #484b56darkslategray | #484b56darkslategray |
| Ring | #ca9ee6plum | #ca9ee6plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.18:1 | AAA |
| Text on card | 10.33:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 3.69:1 | AA Large |
| Text on background | 8.18:1 | AAA |
| Text on card | 10.33:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Catppuccin Frappé in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.328 0.033 274.633);
--foreground: oklch(0.864 0.052 273.099);
--muted: oklch(0.373 0.023 275.254);
--muted-foreground: oklch(0.809 0.016 275.895);
--popover: oklch(0.3 0.029 274.686);
--popover-foreground: oklch(0.969 0.011 273.729);
--card: oklch(0.309 0.03 274.667);
--card-foreground: oklch(0.916 0.031 273.453);
--border: oklch(0.386 0.018 275.507);
--input: oklch(0.413 0.02 275.495);
--primary: oklch(0.764 0.111 311.977);
--primary-foreground: oklch(0.25 0.09 309.763);
--secondary: oklch(0.341 0.071 311.481);
--secondary-foreground: oklch(0.868 0.035 312.714);
--accent: oklch(0.457 0.05 274.474);
--accent-foreground: oklch(0.983 0.002 276.137);
--destructive: oklch(0.644 0.231 28.647);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.764 0.111 311.977);
--chart-1: oklch(0.764 0.111 311.977);
--chart-2: oklch(0.341 0.071 311.481);
--chart-3: oklch(0.457 0.05 274.474);
--chart-4: oklch(0.367 0.078 311.445);
--chart-5: oklch(0.762 0.117 311.92);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.328 0.033 274.633);
--foreground: oklch(0.864 0.052 273.099);
--muted: oklch(0.373 0.023 275.254);
--muted-foreground: oklch(0.809 0.016 275.895);
--popover: oklch(0.3 0.029 274.686);
--popover-foreground: oklch(0.969 0.011 273.729);
--card: oklch(0.309 0.03 274.667);
--card-foreground: oklch(0.916 0.031 273.453);
--border: oklch(0.386 0.018 275.507);
--input: oklch(0.413 0.02 275.495);
--primary: oklch(0.764 0.111 311.977);
--primary-foreground: oklch(0.25 0.09 309.763);
--secondary: oklch(0.341 0.071 311.481);
--secondary-foreground: oklch(0.868 0.035 312.714);
--accent: oklch(0.457 0.05 274.474);
--accent-foreground: oklch(0.983 0.002 276.137);
--destructive: oklch(0.644 0.231 28.647);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.764 0.111 311.977);
--chart-1: oklch(0.764 0.111 311.977);
--chart-2: oklch(0.341 0.071 311.481);
--chart-3: oklch(0.457 0.05 274.474);
--chart-4: oklch(0.367 0.078 311.445);
--chart-5: oklch(0.762 0.117 311.92);
}