Puzzling is a shadcn/ui theme built around a vivid deep indigo primary color (#000856) with muted indigo accents (#acafc8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#000856) on an indigo-tinted background (#040510).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040510black |
| Foreground | #020412black | #f9f9fbghostwhite |
| Card | #fcfcfcsnow | #050614black |
| Card foreground | #02030eblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #040510black |
| Popover foreground | #020412black | #f9f9fbghostwhite |
| Primary | #000856midnightblue | #000856midnightblue |
| Primary foreground | #8a94fecornflowerblue | #8a94fecornflowerblue |
| Secondary | #c9cad4lightgrey | #2a2b2cdarkslategray |
| Secondary foreground | #30313bdarkslategray | #c3c3c6silver |
| Muted | #dee0edlavender | #121421black |
| Muted foreground | #393a46darkslategray | #b9bac6silver |
| Accent | #acafc8silver | #3c3d49darkslategray |
| Accent foreground | #1b1c28black | #d8d8dfgainsboro |
| Destructive | #d23104firebrick | #fa3e0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000856midnightblue | #000856midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.54:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 5.02:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 9.52:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Puzzling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.113 0.038 271.897);
--muted: oklch(0.908 0.018 281.882);
--muted-foreground: oklch(0.354 0.02 281.206);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.113 0.038 271.897);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.032 271.874);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.217 0.134 264.459);
--primary-foreground: oklch(0.705 0.155 277.723);
--secondary: oklch(0.842 0.014 281.942);
--secondary-foreground: oklch(0.315 0.019 281.134);
--accent: oklch(0.759 0.036 281.385);
--accent-foreground: oklch(0.229 0.024 280.323);
--destructive: oklch(0.565 0.202 33.753);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.134 264.459);
--chart-1: oklch(0.217 0.134 264.459);
--chart-2: oklch(0.842 0.014 281.942);
--chart-3: oklch(0.759 0.036 281.385);
--chart-4: oklch(0.867 0.011 281.994);
--chart-5: oklch(0.216 0.138 263.671);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.027 276.021);
--foreground: oklch(0.983 0.002 282.185);
--muted: oklch(0.195 0.026 279.636);
--muted-foreground: oklch(0.791 0.016 281.861);
--popover: oklch(0.123 0.027 276.021);
--popover-foreground: oklch(0.983 0.002 282.185);
--card: oklch(0.133 0.031 276.066);
--card-foreground: oklch(0.992 0.001 282.199);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.217 0.134 264.459);
--primary-foreground: oklch(0.705 0.155 277.723);
--secondary: oklch(0.288 0.003 282.046);
--secondary-foreground: oklch(0.819 0.003 282.152);
--accent: oklch(0.363 0.021 281.198);
--accent-foreground: oklch(0.885 0.009 282.044);
--destructive: oklch(0.646 0.229 33.87);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.134 264.459);
--chart-1: oklch(0.217 0.134 264.459);
--chart-2: oklch(0.288 0.003 282.046);
--chart-3: oklch(0.363 0.021 281.198);
--chart-4: oklch(0.318 0.003 282.039);
--chart-5: oklch(0.216 0.138 263.671);
}