Crooked is a shadcn/ui theme built around a near-black primary color (#000305) with muted light red accents (#c9c0c0). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the near-black primary (#000305) on a blue-tinted background (#070b0d).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #070b0dblack |
| Foreground | #030b12black | #fcfcfdwhite |
| Card | #f7fafcghostwhite | #090d11black |
| Card foreground | #02080dblack | #ffffffwhite |
| Popover | #fbfdfewhite | #070b0dblack |
| Popover foreground | #030b12black | #fcfcfdwhite |
| Primary | #000305black | #000305black |
| Primary foreground | #38a9ffdodgerblue | #38a9ffdodgerblue |
| Secondary | #d9d9d9gainsboro | #1a1a1ablack |
| Secondary foreground | #404040darkslategray | #b3b3b3darkgray |
| Muted | #f0eaealinen | #150f0fblack |
| Muted foreground | #564d4ddarkslategray | #b2a9a9darkgray |
| Accent | #c9c0c0silver | #2c2525darkslategray |
| Accent foreground | #2f2828darkslategray | #c7bcbcsilver |
| Destructive | #8b1604darkred | #f83516orangered |
| Destructive foreground | #fdcbc4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000305black | #000305black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Crooked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 240.312);
--foreground: oklch(0.144 0.022 236.24);
--muted: oklch(0.942 0.006 17.266);
--muted-foreground: oklch(0.429 0.013 17.674);
--popover: oklch(0.992 0.002 240.312);
--popover-foreground: oklch(0.144 0.022 236.24);
--card: oklch(0.984 0.004 240.342);
--card-foreground: oklch(0.13 0.018 232.226);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.089 0.017 227.566);
--primary-foreground: oklch(0.711 0.16 246.266);
--secondary: oklch(0.885 0 180);
--secondary-foreground: oklch(0.371 0 168.69);
--accent: oklch(0.814 0.011 17.374);
--accent-foreground: oklch(0.284 0.01 17.776);
--destructive: oklch(0.41 0.153 31.558);
--destructive-foreground: oklch(0.885 0.058 28.41);
--ring: oklch(0.089 0.017 227.566);
--chart-1: oklch(0.089 0.017 227.566);
--chart-2: oklch(0.885 0 180);
--chart-3: oklch(0.814 0.011 17.374);
--chart-4: oklch(0.908 0 180);
--chart-5: oklch(0.089 0.018 227.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.009 238.916);
--foreground: oklch(0.992 0 240.29);
--muted: oklch(0.176 0.01 18.114);
--muted-foreground: oklch(0.741 0.011 17.412);
--popover: oklch(0.145 0.009 238.916);
--popover-foreground: oklch(0.992 0 240.29);
--card: oklch(0.157 0.01 240.993);
--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.089 0.017 227.566);
--primary-foreground: oklch(0.711 0.16 246.266);
--secondary: oklch(0.216 0 180);
--secondary-foreground: oklch(0.765 0 172.405);
--accent: oklch(0.273 0.011 17.849);
--accent-foreground: oklch(0.805 0.012 17.416);
--destructive: oklch(0.635 0.233 31.486);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.089 0.017 227.566);
--chart-1: oklch(0.089 0.017 227.566);
--chart-2: oklch(0.216 0 180);
--chart-3: oklch(0.273 0.011 17.849);
--chart-4: oklch(0.248 0 173.29);
--chart-5: oklch(0.089 0.018 227.213);
}