Crush is a shadcn/ui theme built around a muted light teal primary color (#f2f8f7) with muted light red accents (#f8f2f3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#f2f8f7) on a teal-tinted background (#060e0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e0dblack |
| Foreground | #041613black | #f6f9f8whitesmoke |
| Card | #ffffffwhite | #060e0dblack |
| Card foreground | #041613black | #f6f9f8whitesmoke |
| Popover | #ffffffwhite | #060e0dblack |
| Popover foreground | #041613black | #f6f9f8whitesmoke |
| Primary | #f2f8f7whitesmoke | #f2f8f7whitesmoke |
| Primary foreground | #1e3430darkslategray | #1e3430darkslategray |
| Secondary | #f8f2f3whitesmoke | #f8f2f3whitesmoke |
| Secondary foreground | #75434cdimgray | #75434cdimgray |
| Muted | #e6cbd0thistle | #34191eblack |
| Muted foreground | #565253dimgray | #ada9aadarkgray |
| Accent | #f8f2f3whitesmoke | #f8f2f3whitesmoke |
| Accent foreground | #75434cdimgray | #75434cdimgray |
| Destructive | #dc4909orangered | #f66628tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f8f7whitesmoke | #f2f8f7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 12.26:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.20:1 | AA Large |
| Text on background | 18.37:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 12.26:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.83:1 | AA |
Paste this into your globals.css to use Crush in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.182 0.027 180.346);
--muted: oklch(0.867 0.031 5.238);
--muted-foreground: oklch(0.444 0.004 4.58);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.182 0.027 180.346);
--card: oklch(1 0 180);
--card-foreground: oklch(0.182 0.027 180.346);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.973 0.006 184.147);
--primary-foreground: oklch(0.304 0.029 181.415);
--secondary: oklch(0.966 0.006 4.478);
--secondary-foreground: oklch(0.445 0.069 8.442);
--accent: oklch(0.966 0.006 4.478);
--accent-foreground: oklch(0.445 0.069 8.442);
--destructive: oklch(0.606 0.194 38.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.973 0.006 184.147);
--chart-1: oklch(0.973 0.006 184.147);
--chart-2: oklch(0.966 0.006 4.478);
--chart-3: oklch(0.966 0.006 4.478);
--chart-4: oklch(0.991 0.001 4.352);
--chart-5: oklch(0.974 0.007 184.129);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.014 182.468);
--foreground: oklch(0.979 0.003 184.235);
--muted: oklch(0.252 0.043 8.89);
--muted-foreground: oklch(0.738 0.004 4.454);
--popover: oklch(0.156 0.014 182.468);
--popover-foreground: oklch(0.979 0.003 184.235);
--card: oklch(0.156 0.014 182.468);
--card-foreground: oklch(0.979 0.003 184.235);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.973 0.006 184.147);
--primary-foreground: oklch(0.304 0.029 181.415);
--secondary: oklch(0.966 0.006 4.478);
--secondary-foreground: oklch(0.445 0.069 8.442);
--accent: oklch(0.966 0.006 4.478);
--accent-foreground: oklch(0.445 0.069 8.442);
--destructive: oklch(0.683 0.191 40.835);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.973 0.006 184.147);
--chart-1: oklch(0.973 0.006 184.147);
--chart-2: oklch(0.966 0.006 4.478);
--chart-3: oklch(0.966 0.006 4.478);
--chart-4: oklch(0.991 0.001 4.352);
--chart-5: oklch(0.974 0.007 184.129);
}