Crazy is a shadcn/ui theme built around a muted light green primary color (#c6d5c3) with muted light red accents (#d5c3c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#c6d5c3) on a green-tinted background (#070f05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070f05black |
| Foreground | #030802black | #ffffffwhite |
| Card | #ffffffwhite | #070f05black |
| Card foreground | #030802black | #ffffffwhite |
| Popover | #ffffffwhite | #070f05black |
| Popover foreground | #030802black | #ffffffwhite |
| Primary | #c6d5c3lightgrey | #c6d5c3lightgrey |
| Primary foreground | #2d3c2adarkslategray | #2d3c2adarkslategray |
| Secondary | #c3c6d5lightgrey | #c3c6d5lightgrey |
| Secondary foreground | #2a2d3cdarkslategray | #2a2d3cdarkslategray |
| Muted | #ecedf4lavender | #0b0d13black |
| Muted foreground | #3f4046darkslategray | #b9bbc0silver |
| Accent | #d5c3c6thistle | #d5c3c6thistle |
| Accent foreground | #3c2a2ddarkslategray | #3c2a2ddarkslategray |
| Destructive | #9d2007firebrick | #f64623orangered |
| Destructive foreground | #fdded8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6d5c3lightgrey | #c6d5c3lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 10.11:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Crazy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.026 137.42);
--muted: oklch(0.947 0.009 274.917);
--muted-foreground: oklch(0.373 0.009 274.721);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.026 137.42);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.026 137.42);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.03 139.436);
--primary-foreground: oklch(0.338 0.037 139.441);
--secondary: oklch(0.83 0.021 274.714);
--secondary-foreground: oklch(0.302 0.027 273.748);
--accent: oklch(0.833 0.021 3.866);
--accent-foreground: oklch(0.307 0.028 5.583);
--destructive: oklch(0.453 0.164 32.495);
--destructive-foreground: oklch(0.925 0.036 31.165);
--ring: oklch(0.857 0.03 139.436);
--chart-1: oklch(0.857 0.03 139.436);
--chart-2: oklch(0.83 0.021 274.714);
--chart-3: oklch(0.833 0.021 3.866);
--chart-4: oklch(0.856 0.018 274.776);
--chart-5: oklch(0.859 0.034 139.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.025 138.402);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.014 273.751);
--muted-foreground: oklch(0.792 0.008 274.916);
--popover: oklch(0.156 0.025 138.402);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.025 138.402);
--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.857 0.03 139.436);
--primary-foreground: oklch(0.338 0.037 139.441);
--secondary: oklch(0.83 0.021 274.714);
--secondary-foreground: oklch(0.302 0.027 273.748);
--accent: oklch(0.833 0.021 3.866);
--accent-foreground: oklch(0.307 0.028 5.583);
--destructive: oklch(0.647 0.217 33.004);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.03 139.436);
--chart-1: oklch(0.857 0.03 139.436);
--chart-2: oklch(0.83 0.021 274.714);
--chart-3: oklch(0.833 0.021 3.866);
--chart-4: oklch(0.856 0.018 274.776);
--chart-5: oklch(0.859 0.034 139.435);
}