Crooked is a shadcn/ui theme built around a green primary color (#78e236) with muted light green accents (#d0d6cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#78e236) on a green-tinted background (#070c04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070c04black |
| Foreground | #060e02black | #f7f9f6whitesmoke |
| Card | #fcfcfcsnow | #091005black |
| Card foreground | #040901black | #fafbf9snow |
| Popover | #fcfcfcsnow | #091005black |
| Popover foreground | #040901black | #fafbf9snow |
| Primary | #78e236yellowgreen | #78e236yellowgreen |
| Primary foreground | #20430adarkgreen | #20430adarkgreen |
| Secondary | #d0d6cclightgrey | #2e2f2ddarkslategray |
| Secondary foreground | #373e32darkslategray | #c7c9c5silver |
| Muted | #f1f7eewhitesmoke | #0c1108black |
| Muted foreground | #45513ddarkslategray | #b5c2aesilver |
| Accent | #d0d6cclightgrey | #2e2f2ddarkslategray |
| Accent foreground | #373e32darkslategray | #c7c9c5silver |
| Destructive | #9c2811brown | #e74727chocolate |
| Destructive foreground | #fce8e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #78e236yellowgreen | #78e236yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.47:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 10.24:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Crooked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.032 131.382);
--muted: oklch(0.969 0.014 133.084);
--muted-foreground: oklch(0.419 0.036 133.613);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.129 0.028 131.002);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.129 0.028 131.002);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.819 0.223 136.408);
--primary-foreground: oklch(0.343 0.093 136.342);
--secondary: oklch(0.869 0.015 133.107);
--secondary-foreground: oklch(0.354 0.023 133.456);
--accent: oklch(0.869 0.015 133.107);
--accent-foreground: oklch(0.354 0.023 133.456);
--destructive: oklch(0.46 0.155 32.986);
--destructive-foreground: oklch(0.945 0.023 31.105);
--ring: oklch(0.819 0.223 136.408);
--chart-1: oklch(0.819 0.223 136.408);
--chart-2: oklch(0.869 0.015 133.107);
--chart-3: oklch(0.869 0.015 133.107);
--chart-4: oklch(0.891 0.013 133.083);
--chart-5: oklch(0.827 0.229 136.569);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.023 131.688);
--foreground: oklch(0.98 0.005 133.02);
--muted: oklch(0.17 0.021 133.685);
--muted-foreground: oklch(0.798 0.031 133.256);
--popover: oklch(0.16 0.026 132.582);
--popover-foreground: oklch(0.986 0.003 133.008);
--card: oklch(0.16 0.026 132.582);
--card-foreground: oklch(0.986 0.003 133.008);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.819 0.223 136.408);
--primary-foreground: oklch(0.343 0.093 136.342);
--secondary: oklch(0.304 0.005 133.109);
--secondary-foreground: oklch(0.832 0.005 133.028);
--accent: oklch(0.304 0.005 133.109);
--accent-foreground: oklch(0.832 0.005 133.028);
--destructive: oklch(0.624 0.202 33.135);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.819 0.223 136.408);
--chart-1: oklch(0.819 0.223 136.408);
--chart-2: oklch(0.304 0.005 133.109);
--chart-3: oklch(0.304 0.005 133.109);
--chart-4: oklch(0.334 0.006 133.113);
--chart-5: oklch(0.827 0.229 136.569);
}