Confused is a shadcn/ui theme built around a light green primary color (#eaf9e6) with light purple accents (#f5e6f9). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the light green primary (#eaf9e6) on a green-tinted background (#060b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf6mintcream | #060b05black |
| Foreground | #020401black | #f9fbf9mintcream |
| Card | #f8fdf6mintcream | #060b05black |
| Card foreground | #020401black | #f9fbf9mintcream |
| Popover | #f8fdf6mintcream | #060b05black |
| Popover foreground | #020401black | #f9fbf9mintcream |
| Primary | #eaf9e6honeydew | #eaf9e6honeydew |
| Primary foreground | #163a0edarkgreen | #163a0edarkgreen |
| Secondary | #f5e6f9lavenderblush | #f5e6f9lavenderblush |
| Secondary foreground | #77218crebeccapurple | #77218crebeccapurple |
| Muted | #dcd3degainsboro | #2a212cdarkslategray |
| Muted foreground | #413e42darkslategray | #c0bdc1silver |
| Accent | #f5e6f9lavenderblush | #f5e6f9lavenderblush |
| Accent foreground | #77218crebeccapurple | #77218crebeccapurple |
| Destructive | #dc0804red | #fa1d19red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaf9e6honeydew | #eaf9e6honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 11.67:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 11.67:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Confused in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.011 139.441);
--foreground: oklch(0.099 0.02 137.42);
--muted: oklch(0.878 0.018 319.45);
--muted-foreground: oklch(0.368 0.008 319.45);
--popover: oklch(0.989 0.011 139.441);
--popover-foreground: oklch(0.099 0.02 137.42);
--card: oklch(0.989 0.011 139.441);
--card-foreground: oklch(0.099 0.02 137.42);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.966 0.03 139.437);
--primary-foreground: oklch(0.31 0.082 139.901);
--secondary: oklch(0.943 0.03 319.453);
--secondary-foreground: oklch(0.433 0.176 318.63);
--accent: oklch(0.943 0.03 319.453);
--accent-foreground: oklch(0.433 0.176 318.63);
--destructive: oklch(0.563 0.229 29.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.03 139.437);
--chart-1: oklch(0.966 0.03 139.437);
--chart-2: oklch(0.943 0.03 319.453);
--chart-3: oklch(0.943 0.03 319.453);
--chart-4: oklch(0.972 0.015 319.449);
--chart-5: oklch(0.967 0.031 139.436);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.018 138.216);
--foreground: oklch(0.986 0.003 139.443);
--muted: oklch(0.261 0.025 319.464);
--muted-foreground: oklch(0.803 0.006 319.446);
--popover: oklch(0.139 0.018 138.216);
--popover-foreground: oklch(0.986 0.003 139.443);
--card: oklch(0.139 0.018 138.216);
--card-foreground: oklch(0.986 0.003 139.443);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.966 0.03 139.437);
--primary-foreground: oklch(0.31 0.082 139.901);
--secondary: oklch(0.943 0.03 319.453);
--secondary-foreground: oklch(0.433 0.176 318.63);
--accent: oklch(0.943 0.03 319.453);
--accent-foreground: oklch(0.433 0.176 318.63);
--destructive: oklch(0.627 0.246 28.699);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.03 139.437);
--chart-1: oklch(0.966 0.03 139.437);
--chart-2: oklch(0.943 0.03 319.453);
--chart-3: oklch(0.943 0.03 319.453);
--chart-4: oklch(0.972 0.015 319.449);
--chart-5: oklch(0.967 0.031 139.436);
}