Crepe is a shadcn/ui theme built around a near-white primary color (#fdfff5) with near-white accents (#fff5fd). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-white primary (#fdfff5) on a green-tinted background (#0e1004).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0e1004black |
| Foreground | #0e1004black | #fdfdfcwhite |
| Card | #fbfcf8snow | #111406black |
| Card foreground | #0a0c03black | #ffffffwhite |
| Popover | #fbfcf8snow | #111406black |
| Popover foreground | #0a0c03black | #ffffffwhite |
| Primary | #fdfff5ivory | #fdfff5ivory |
| Primary foreground | #485903darkolivegreen | #485903darkolivegreen |
| Secondary | #f5fdffazure | #f5fdffazure |
| Secondary foreground | #034859darkslategray | #034859darkslategray |
| Muted | #edf1f3whitesmoke | #0c1112black |
| Muted foreground | #464849darkslategray | #b6b8b9silver |
| Accent | #fff5fdsnow | #fff5fdsnow |
| Accent foreground | #590348indigo | #590348indigo |
| Destructive | #c91f13firebrick | #eb3124crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdfff5ivory | #fdfff5ivory |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 9.80:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 12.88:1 | AAA |
| Destructive | 5.71:1 | AA |
| Text on background | 18.86:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 9.80:1 | AAA |
| Muted text | 9.53:1 | AAA |
| Accent | 12.88:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Crepe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 115.637);
--foreground: oklch(0.167 0.026 117.605);
--muted: oklch(0.956 0.005 214.331);
--muted-foreground: oklch(0.401 0.003 214.338);
--popover: oklch(0.99 0.006 115.697);
--popover-foreground: oklch(0.15 0.023 116.616);
--card: oklch(0.99 0.006 115.697);
--card-foreground: oklch(0.15 0.023 116.616);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.995 0.013 115.811);
--primary-foreground: oklch(0.433 0.103 121.789);
--secondary: oklch(0.988 0.008 214.34);
--secondary-foreground: oklch(0.371 0.067 221.053);
--accent: oklch(0.98 0.014 332.219);
--accent-foreground: oklch(0.316 0.134 338.887);
--destructive: oklch(0.536 0.204 29.66);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.995 0.013 115.811);
--chart-1: oklch(0.995 0.013 115.811);
--chart-2: oklch(0.988 0.008 214.34);
--chart-3: oklch(0.98 0.014 332.219);
--chart-4: oklch(1.006 0.004 34.31);
--chart-5: oklch(0.995 0.013 115.818);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.166 0.024 117.5);
--foreground: oklch(0.994 0.001 115.605);
--muted: oklch(0.173 0.008 214.548);
--muted-foreground: oklch(0.782 0.003 214.326);
--popover: oklch(0.183 0.028 118.116);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.183 0.028 118.116);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.995 0.013 115.811);
--primary-foreground: oklch(0.433 0.103 121.789);
--secondary: oklch(0.988 0.008 214.34);
--secondary-foreground: oklch(0.371 0.067 221.053);
--accent: oklch(0.98 0.014 332.219);
--accent-foreground: oklch(0.316 0.134 338.887);
--destructive: oklch(0.61 0.222 29.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.995 0.013 115.811);
--chart-1: oklch(0.995 0.013 115.811);
--chart-2: oklch(0.988 0.008 214.34);
--chart-3: oklch(0.98 0.014 332.219);
--chart-4: oklch(1.006 0.004 34.31);
--chart-5: oklch(0.995 0.013 115.818);
}