Puzzled is a shadcn/ui theme built around a vivid light yellow primary color (#fdffd1) with vivid light purple accents (#ffd1fd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fdffd1) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #080802black | #ffffffwhite |
| Card | #ffffffwhite | #070703black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #ffffffwhite | #070703black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #fdffd1lightgoldenrodyellow | #fdffd1lightgoldenrodyellow |
| Primary foreground | #353800darkgreen | #353800darkgreen |
| Secondary | #d1fdfflightcyan | #d1fdfflightcyan |
| Secondary foreground | #003538darkslategray | #003538darkslategray |
| Muted | #ecefefwhitesmoke | #101313black |
| Muted foreground | #4c5757darkslategray | #a8b3b3darkgray |
| Accent | #ffd1fdlavenderblush | #ffd1fdlavenderblush |
| Accent foreground | #380035midnightblue | #380035midnightblue |
| Destructive | #7e280csaddlebrown | #eb5524chocolate |
| Destructive foreground | #f9d0c2peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdffd1lightgoldenrodyellow | #fdffd1lightgoldenrodyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 11.87:1 | AAA |
| Secondary button | 12.23:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 12.95:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 11.87:1 | AAA |
| Secondary button | 12.23:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 12.95:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Puzzled in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.017 110.439);
--muted: oklch(0.949 0.003 200.847);
--muted-foreground: oklch(0.447 0.014 200.537);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.017 110.439);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.017 110.439);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.987 0.059 109.792);
--primary-foreground: oklch(0.327 0.073 112.858);
--secondary: oklch(0.963 0.045 200.38);
--secondary-foreground: oklch(0.3 0.051 200.499);
--accent: oklch(0.913 0.076 327.78);
--accent-foreground: oklch(0.237 0.108 330.706);
--destructive: oklch(0.405 0.124 37.196);
--destructive-foreground: oklch(0.89 0.05 39.27);
--ring: oklch(0.987 0.059 109.792);
--chart-1: oklch(0.987 0.059 109.792);
--chart-2: oklch(0.963 0.045 200.38);
--chart-3: oklch(0.913 0.076 327.78);
--chart-4: oklch(0.975 0.03 200.534);
--chart-5: oklch(0.989 0.061 109.82);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.013 110.071);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.005 200.585);
--muted-foreground: oklch(0.757 0.012 200.697);
--popover: oklch(0.127 0.013 110.071);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.013 110.071);
--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.987 0.059 109.792);
--primary-foreground: oklch(0.327 0.073 112.858);
--secondary: oklch(0.963 0.045 200.38);
--secondary-foreground: oklch(0.3 0.051 200.499);
--accent: oklch(0.913 0.076 327.78);
--accent-foreground: oklch(0.237 0.108 330.706);
--destructive: oklch(0.645 0.194 37.442);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.987 0.059 109.792);
--chart-1: oklch(0.987 0.059 109.792);
--chart-2: oklch(0.963 0.045 200.38);
--chart-3: oklch(0.913 0.076 327.78);
--chart-4: oklch(0.975 0.03 200.534);
--chart-5: oklch(0.989 0.061 109.82);
}