Puzzling is a shadcn/ui theme built around a vivid deep green primary color (#334f02) with vivid deep violet accents (#1f024f). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid deep green primary (#334f02) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #030401black |
| Foreground | #060902black | #fafbf9snow |
| Card | #f9fcf3floralwhite | #060802black |
| Card foreground | #030401black | #fdfdfcwhite |
| Popover | #f9fcf3floralwhite | #060802black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #334f02darkgreen | #334f02darkgreen |
| Primary foreground | #abf825greenyellow | #abf825greenyellow |
| Secondary | #1f024fmidnightblue | #1f024fmidnightblue |
| Secondary foreground | #b288fbmediumpurple | #b288fbmediumpurple |
| Muted | #e3dbf0lavender | #170f24black |
| Muted foreground | #615a6ddimgray | #9992a5darkgray |
| Accent | #1f024fmidnightblue | #1f024fmidnightblue |
| Accent foreground | #b288fbmediumpurple | #b288fbmediumpurple |
| Destructive | #aa1808firebrick | #f4301aorangered |
| Destructive foreground | #fee9e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #334f02darkgreen | #334f02darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 4.91:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 6.19:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Puzzling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 123.058);
--foreground: oklch(0.13 0.023 122.307);
--muted: oklch(0.904 0.029 302.446);
--muted-foreground: oklch(0.48 0.033 301.886);
--popover: oklch(0.986 0.013 123.124);
--popover-foreground: oklch(0.104 0.018 122.307);
--card: oklch(0.986 0.013 123.124);
--card-foreground: oklch(0.104 0.018 122.307);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.391 0.103 129.413);
--primary-foreground: oklch(0.896 0.23 129.318);
--secondary: oklch(0.224 0.123 289.025);
--secondary-foreground: oklch(0.715 0.166 299.072);
--accent: oklch(0.224 0.123 289.025);
--accent-foreground: oklch(0.715 0.166 299.072);
--destructive: oklch(0.474 0.181 30.486);
--destructive-foreground: oklch(0.95 0.023 25.204);
--ring: oklch(0.391 0.103 129.413);
--chart-1: oklch(0.391 0.103 129.413);
--chart-2: oklch(0.224 0.123 289.025);
--chart-3: oklch(0.224 0.123 289.025);
--chart-4: oklch(0.25 0.139 287.991);
--chart-5: oklch(0.394 0.105 129.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.014 122.446);
--foreground: oklch(0.986 0.002 122.966);
--muted: oklch(0.191 0.041 299.395);
--muted-foreground: oklch(0.671 0.03 302.245);
--popover: oklch(0.127 0.017 122.446);
--popover-foreground: oklch(0.993 0.001 122.947);
--card: oklch(0.127 0.017 122.446);
--card-foreground: oklch(0.993 0.001 122.947);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.391 0.103 129.413);
--primary-foreground: oklch(0.896 0.23 129.318);
--secondary: oklch(0.224 0.123 289.025);
--secondary-foreground: oklch(0.715 0.166 299.072);
--accent: oklch(0.224 0.123 289.025);
--accent-foreground: oklch(0.715 0.166 299.072);
--destructive: oklch(0.626 0.232 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.391 0.103 129.413);
--chart-1: oklch(0.391 0.103 129.413);
--chart-2: oklch(0.224 0.123 289.025);
--chart-3: oklch(0.224 0.123 289.025);
--chart-4: oklch(0.25 0.139 287.991);
--chart-5: oklch(0.394 0.105 129.568);
}