Puzzled is a shadcn/ui theme built around a green primary color (#2f743f) with red accents (#743f2f). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#2f743f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #000000black |
| Foreground | #031206black | #fcfdfcwhite |
| Card | #fbfefcwhite | #000000black |
| Card foreground | #031206black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #000000black |
| Popover foreground | #031206black | #fcfdfcwhite |
| Primary | #2f743fseagreen | #2f743fseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3f2f74darkslateblue | #3f2f74darkslateblue |
| Secondary foreground | #e6e2f3lavender | #e6e2f3lavender |
| Muted | #e3e0eblavender | #17141fblack |
| Muted foreground | #494653darkslategray | #afacb9darkgray |
| Accent | #743f2fsaddlebrown | #743f2fsaddlebrown |
| Accent foreground | #f3e6e2mistyrose | #f3e6e2mistyrose |
| Destructive | #601206maroon | #e62b0forangered |
| Destructive foreground | #f9ab9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f743fseagreen | #2f743fseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 8.81:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 7.15:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 8.81:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Puzzled in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 153.188);
--foreground: oklch(0.162 0.035 151.168);
--muted: oklch(0.912 0.015 296.79);
--muted-foreground: oklch(0.403 0.021 296.152);
--popover: oklch(0.994 0.003 153.188);
--popover-foreground: oklch(0.162 0.035 151.168);
--card: oklch(0.994 0.003 153.188);
--card-foreground: oklch(0.162 0.035 151.168);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.501 0.108 148.779);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.363 0.113 290.396);
--secondary-foreground: oklch(0.921 0.023 296.621);
--accent: oklch(0.43 0.078 37.715);
--accent-foreground: oklch(0.934 0.015 37.67);
--destructive: oklch(0.321 0.112 31.833);
--destructive-foreground: oklch(0.813 0.094 28.954);
--ring: oklch(0.501 0.108 148.779);
--chart-1: oklch(0.501 0.108 148.779);
--chart-2: oklch(0.363 0.113 290.396);
--chart-3: oklch(0.43 0.078 37.715);
--chart-4: oklch(0.386 0.121 290.276);
--chart-5: oklch(0.506 0.114 148.489);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 153.22);
--muted: oklch(0.2 0.021 295.093);
--muted-foreground: oklch(0.752 0.018 296.657);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 153.22);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 153.22);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.501 0.108 148.779);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.363 0.113 290.396);
--secondary-foreground: oklch(0.921 0.023 296.621);
--accent: oklch(0.43 0.078 37.715);
--accent-foreground: oklch(0.934 0.015 37.67);
--destructive: oklch(0.597 0.223 31.346);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.501 0.108 148.779);
--chart-1: oklch(0.501 0.108 148.779);
--chart-2: oklch(0.363 0.113 290.396);
--chart-3: oklch(0.43 0.078 37.715);
--chart-4: oklch(0.386 0.121 290.276);
--chart-5: oklch(0.506 0.114 148.489);
}