Confused is a shadcn/ui theme built around a vivid yellow primary color (#e0c110) with vivid green accents (#97e010). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid yellow primary (#e0c110) on a yellow-tinted background (#100e04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #100e04black |
| Foreground | #0e0c02black | #fbfaf9snow |
| Card | #fdfcf7snow | #100e04black |
| Card foreground | #0e0c02black | #fbfaf9snow |
| Popover | #fdfcf7snow | #100e04black |
| Popover foreground | #0e0c02black | #fbfaf9snow |
| Primary | #e0c110goldenrod | #e0c110goldenrod |
| Primary foreground | #211d02black | #211d02black |
| Secondary | #e05910chocolate | #e05910chocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7dedagainsboro | #251d18black |
| Muted foreground | #665f5cdimgray | #a39d99darkgray |
| Accent | #97e010yellowgreen | #97e010yellowgreen |
| Accent foreground | #172102black | #172102black |
| Destructive | #981f06darkred | #f64a28tomato |
| Destructive foreground | #fddad3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0c110goldenrod | #e0c110goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 9.50:1 | AAA |
| Secondary button | 3.75:1 | AA Large |
| Muted text | 4.73:1 | AA |
| Accent | 10.36:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 18.49:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 9.50:1 | AAA |
| Secondary button | 3.75:1 | AA Large |
| Muted text | 6.19:1 | AA |
| Accent | 10.36:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Confused in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 98.421);
--foreground: oklch(0.152 0.026 102.272);
--muted: oklch(0.907 0.012 50.496);
--muted-foreground: oklch(0.492 0.01 50.41);
--popover: oklch(0.991 0.007 98.421);
--popover-foreground: oklch(0.152 0.026 102.272);
--card: oklch(0.991 0.007 98.421);
--card-foreground: oklch(0.152 0.026 102.272);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.813 0.165 97.097);
--primary-foreground: oklch(0.228 0.044 99.817);
--secondary: oklch(0.631 0.184 42.309);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.827 0.219 129.573);
--accent-foreground: oklch(0.231 0.054 126.285);
--destructive: oklch(0.443 0.16 32.532);
--destructive-foreground: oklch(0.916 0.041 31.193);
--ring: oklch(0.813 0.165 97.097);
--chart-1: oklch(0.813 0.165 97.097);
--chart-2: oklch(0.631 0.184 42.309);
--chart-3: oklch(0.827 0.219 129.573);
--chart-4: oklch(0.661 0.193 42.207);
--chart-5: oklch(0.821 0.168 96.874);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.022 100.681);
--foreground: oklch(0.986 0.002 98.343);
--muted: oklch(0.238 0.016 49.847);
--muted-foreground: oklch(0.699 0.009 50.497);
--popover: oklch(0.164 0.022 100.681);
--popover-foreground: oklch(0.986 0.002 98.343);
--card: oklch(0.164 0.022 100.681);
--card-foreground: oklch(0.986 0.002 98.343);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.813 0.165 97.097);
--primary-foreground: oklch(0.228 0.044 99.817);
--secondary: oklch(0.631 0.184 42.309);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.827 0.219 129.573);
--accent-foreground: oklch(0.231 0.054 126.285);
--destructive: oklch(0.651 0.214 33.094);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.813 0.165 97.097);
--chart-1: oklch(0.813 0.165 97.097);
--chart-2: oklch(0.631 0.184 42.309);
--chart-3: oklch(0.827 0.219 129.573);
--chart-4: oklch(0.661 0.193 42.207);
--chart-5: oklch(0.821 0.168 96.874);
}