Crust is a shadcn/ui theme built around a muted light red primary color (#d7bab7) with muted light cyan accents (#b7d4d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#d7bab7) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #040101black | #f8f6f6whitesmoke |
| Card | #fcfcfcsnow | #070404black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #ffffffwhite | #030202black |
| Popover foreground | #040101black | #f8f6f6whitesmoke |
| Primary | #d7bab7silver | #d7bab7silver |
| Primary foreground | #3b2321darkslategray | #3b2321darkslategray |
| Secondary | #b7d4d7lightblue | #b7d4d7lightblue |
| Secondary foreground | #21393bdarkslategray | #21393bdarkslategray |
| Muted | #e3ecedlavender | #121b1cblack |
| Muted foreground | #475152darkslategray | #adb7b8darkgray |
| Accent | #b7d4d7lightblue | #b7d4d7lightblue |
| Accent foreground | #21393bdarkslategray | #21393bdarkslategray |
| Destructive | #d2390ffirebrick | #ea3f10orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7bab7silver | #d7bab7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 8.54:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Crust in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.083 0.015 29.469);
--muted: oklch(0.937 0.01 203.489);
--muted-foreground: oklch(0.426 0.013 203.336);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.083 0.015 29.469);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.812 0.033 24.027);
--primary-foreground: oklch(0.286 0.037 25.288);
--secondary: oklch(0.85 0.031 203.29);
--secondary-foreground: oklch(0.325 0.03 203.126);
--accent: oklch(0.85 0.031 203.29);
--accent-foreground: oklch(0.325 0.03 203.126);
--destructive: oklch(0.572 0.196 34.545);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.033 24.027);
--chart-1: oklch(0.812 0.033 24.027);
--chart-2: oklch(0.85 0.031 203.29);
--chart-3: oklch(0.85 0.031 203.29);
--chart-4: oklch(0.87 0.027 203.328);
--chart-5: oklch(0.811 0.037 24.084);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.007 25.76);
--foreground: oklch(0.976 0.002 23.602);
--muted: oklch(0.214 0.013 203.166);
--muted-foreground: oklch(0.772 0.011 203.454);
--popover: oklch(0.088 0.007 25.76);
--popover-foreground: oklch(0.976 0.002 23.602);
--card: oklch(0.111 0.008 25.76);
--card-foreground: oklch(0.984 0.001 23.595);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.812 0.033 24.027);
--primary-foreground: oklch(0.286 0.037 25.288);
--secondary: oklch(0.85 0.031 203.29);
--secondary-foreground: oklch(0.325 0.03 203.126);
--accent: oklch(0.85 0.031 203.29);
--accent-foreground: oklch(0.325 0.03 203.126);
--destructive: oklch(0.619 0.213 34.449);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.033 24.027);
--chart-1: oklch(0.812 0.033 24.027);
--chart-2: oklch(0.85 0.031 203.29);
--chart-3: oklch(0.85 0.031 203.29);
--chart-4: oklch(0.87 0.027 203.328);
--chart-5: oklch(0.811 0.037 24.084);
}