Crest is a shadcn/ui theme built around a vivid deep red primary color (#740a07) with vivid deep indigo accents (#0a0774). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#740a07) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040101black |
| Foreground | #110404black | #fcf8f8snow |
| Card | #ffffffwhite | #040101black |
| Card foreground | #110404black | #fcf8f8snow |
| Popover | #ffffffwhite | #040101black |
| Popover foreground | #110404black | #fcf8f8snow |
| Primary | #740a07maroon | #740a07maroon |
| Primary foreground | #fbb4b2lightpink | #fbb4b2lightpink |
| Secondary | #07740agreen | #07740agreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4e7d5gainsboro | #182b18black |
| Muted foreground | #3d483ddarkslategray | #b7c2b8silver |
| Accent | #0a0774navy | #0a0774navy |
| Accent foreground | #b4b2fblightsteelblue | #b4b2fblightsteelblue |
| Destructive | #970502darkred | #fc2622crimson |
| Destructive foreground | #fececdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #740a07maroon | #740a07maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.00:1 | AA |
| Muted text | 7.41:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.00:1 | AA |
| Muted text | 8.19:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Crest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.026 24.389);
--muted: oklch(0.91 0.032 146.227);
--muted-foreground: oklch(0.387 0.022 146.033);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.026 24.389);
--card: oklch(1 0 180);
--card-foreground: oklch(0.132 0.026 24.389);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.356 0.138 28.979);
--primary-foreground: oklch(0.836 0.082 21.194);
--secondary: oklch(0.484 0.16 142.809);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.263 0.167 267.728);
--accent-foreground: oklch(0.792 0.102 285.332);
--destructive: oklch(0.426 0.172 29.295);
--destructive-foreground: oklch(0.892 0.055 19.377);
--ring: oklch(0.356 0.138 28.979);
--chart-1: oklch(0.356 0.138 28.979);
--chart-2: oklch(0.484 0.16 142.809);
--chart-3: oklch(0.263 0.167 267.728);
--chart-4: oklch(0.527 0.175 142.773);
--chart-5: oklch(0.359 0.14 29.231);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.013 23.244);
--foreground: oklch(0.982 0.004 19.659);
--muted: oklch(0.265 0.042 145.013);
--muted-foreground: oklch(0.803 0.018 146.34);
--popover: oklch(0.084 0.013 23.244);
--popover-foreground: oklch(0.982 0.004 19.659);
--card: oklch(0.084 0.013 23.244);
--card-foreground: oklch(0.982 0.004 19.659);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.356 0.138 28.979);
--primary-foreground: oklch(0.836 0.082 21.194);
--secondary: oklch(0.484 0.16 142.809);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.263 0.167 267.728);
--accent-foreground: oklch(0.792 0.102 285.332);
--destructive: oklch(0.634 0.243 28.327);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.356 0.138 28.979);
--chart-1: oklch(0.356 0.138 28.979);
--chart-2: oklch(0.484 0.16 142.809);
--chart-3: oklch(0.263 0.167 267.728);
--chart-4: oklch(0.527 0.175 142.773);
--chart-5: oklch(0.359 0.14 29.231);
}