Puzzle is a shadcn/ui theme built around a teal primary color (#3c8b7b) with cyan accents (#3c738b). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#3c8b7b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #041612black | #ffffffwhite |
| Card | #f6fdfcmintcream | #030303black |
| Card foreground | #03120fblack | #ffffffwhite |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #041612black | #ffffffwhite |
| Primary | #3c8b7bseagreen | #3c8b7bseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3c8b54seagreen | #3c8b54seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9e2dcgainsboro | #1d261fblack |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #3c738bsteelblue | #3c738bsteelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7e1f0cmaroon | #d23314firebrick |
| Destructive foreground | #f9ccc2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c8b7bseagreen | #3c8b7bseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.35:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 4.05:1 | AA Large |
| Secondary button | 4.18:1 | AA Large |
| Muted text | 5.74:1 | AA |
| Accent | 5.20:1 | AA |
| Destructive | 6.92:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.05:1 | AA Large |
| Secondary button | 4.18:1 | AA Large |
| Muted text | 6.79:1 | AA |
| Accent | 5.20:1 | AA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Puzzle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 183.082);
--foreground: oklch(0.182 0.027 179.097);
--muted: oklch(0.905 0.013 155.588);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.995 0.004 183.082);
--popover-foreground: oklch(0.182 0.027 179.097);
--card: oklch(0.989 0.007 182.979);
--card-foreground: oklch(0.165 0.024 180.209);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.583 0.082 178.117);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.573 0.116 150.939);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.529 0.07 228.13);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.394 0.133 32.983);
--destructive-foreground: oklch(0.881 0.054 31.289);
--ring: oklch(0.583 0.082 178.117);
--chart-1: oklch(0.583 0.082 178.117);
--chart-2: oklch(0.573 0.116 150.939);
--chart-3: oklch(0.529 0.07 228.13);
--chart-4: oklch(0.605 0.123 150.897);
--chart-5: oklch(0.591 0.086 177.762);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.018 154.462);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.583 0.082 178.117);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.573 0.116 150.939);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.529 0.07 228.13);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.568 0.199 32.734);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.583 0.082 178.117);
--chart-1: oklch(0.583 0.082 178.117);
--chart-2: oklch(0.573 0.116 150.939);
--chart-3: oklch(0.529 0.07 228.13);
--chart-4: oklch(0.605 0.123 150.897);
--chart-5: oklch(0.591 0.086 177.762);
}