Crisp is a shadcn/ui theme built around a purple primary color (#9c1aa8) with green accents (#26a81a). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the purple primary (#9c1aa8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #000000black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #fbf3fcghostwhite | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf3fcghostwhite | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #9c1aa8darkmagenta | #9c1aa8darkmagenta |
| Primary foreground | #fdf6feghostwhite | #fdf6feghostwhite |
| Secondary | #26a81aforestgreen | #26a81aforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbe7d9gainsboro | #192618black |
| Muted foreground | #597557dimgray | #8ca88adarkseagreen |
| Accent | #26a81aforestgreen | #26a81aforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #680b08maroon | #ee221bcrimson |
| Destructive foreground | #f9acaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9c1aa8darkmagenta | #9c1aa8darkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 3.14:1 | AA Large |
| Muted text | 4.01:1 | AA Large |
| Accent | 3.14:1 | AA Large |
| Destructive | 6.99:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 3.14:1 | AA Large |
| Muted text | 6.09:1 | AA |
| Accent | 3.14:1 | AA Large |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Crisp in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 323.183);
--foreground: oklch(0.086 0.019 324.793);
--muted: oklch(0.916 0.023 143.015);
--muted-foreground: oklch(0.533 0.057 142.621);
--popover: oklch(0.972 0.016 323.208);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.016 323.208);
--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.503 0.219 324.201);
--primary-foreground: oklch(0.981 0.012 323.191);
--secondary: oklch(0.638 0.203 141.979);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.638 0.203 141.979);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.333 0.126 28.688);
--destructive-foreground: oklch(0.818 0.09 21.419);
--ring: oklch(0.503 0.219 324.201);
--chart-1: oklch(0.503 0.219 324.201);
--chart-2: oklch(0.638 0.203 141.979);
--chart-3: oklch(0.638 0.203 141.979);
--chart-4: oklch(0.675 0.215 141.984);
--chart-5: oklch(0.507 0.224 324.161);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 323.142);
--muted: oklch(0.25 0.032 142.531);
--muted-foreground: oklch(0.703 0.054 142.771);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.503 0.219 324.201);
--primary-foreground: oklch(0.981 0.012 323.191);
--secondary: oklch(0.638 0.203 141.979);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.638 0.203 141.979);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.607 0.233 28.848);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.219 324.201);
--chart-1: oklch(0.503 0.219 324.201);
--chart-2: oklch(0.638 0.203 141.979);
--chart-3: oklch(0.638 0.203 141.979);
--chart-4: oklch(0.675 0.215 141.984);
--chart-5: oklch(0.507 0.224 324.161);
}