Confused is a shadcn/ui theme built around a purple primary color (#833a98) with purple accents (#983a7d). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the purple primary (#833a98) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #070208black |
| Foreground | #0d0510black | #fdfbfdsnow |
| Card | #faf3fcghostwhite | #0a040cblack |
| Card foreground | #0a040cblack | #ffffffwhite |
| Popover | #fcf7fdghostwhite | #070208black |
| Popover foreground | #0d0510black | #fdfbfdsnow |
| Primary | #833a98rebeccapurple | #833a98rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #543a98darkslateblue | #543a98darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e3dfeclavender | #171320black |
| Muted foreground | #605c6adimgray | #9995a3darkgray |
| Accent | #983a7drebeccapurple | #983a7drebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #812b09saddlebrown | #e04b10orangered |
| Destructive foreground | #fbd1c1peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #833a98rebeccapurple | #833a98rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 8.66:1 | AAA |
| Muted text | 4.95:1 | AA |
| Accent | 6.52:1 | AA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 8.66:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 6.52:1 | AA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Confused in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 318.887);
--foreground: oklch(0.135 0.029 319.545);
--muted: oklch(0.911 0.018 298.973);
--muted-foreground: oklch(0.485 0.023 298.504);
--popover: oklch(0.981 0.009 318.887);
--popover-foreground: oklch(0.135 0.029 319.545);
--card: oklch(0.972 0.014 318.885);
--card-foreground: oklch(0.122 0.025 320.418);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.485 0.16 318.361);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.429 0.147 292.11);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.5 0.149 340.3);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.413 0.126 38.788);
--destructive-foreground: oklch(0.893 0.052 42.717);
--ring: oklch(0.485 0.16 318.361);
--chart-1: oklch(0.485 0.16 318.361);
--chart-2: oklch(0.429 0.147 292.11);
--chart-3: oklch(0.5 0.149 340.3);
--chart-4: oklch(0.451 0.156 292.027);
--chart-5: oklch(0.486 0.168 318.268);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.022 320.644);
--foreground: oklch(0.991 0.003 318.889);
--muted: oklch(0.198 0.026 297.005);
--muted-foreground: oklch(0.676 0.021 298.778);
--popover: oklch(0.107 0.022 320.644);
--popover-foreground: oklch(0.991 0.003 318.889);
--card: oklch(0.122 0.025 320.418);
--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.485 0.16 318.361);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.429 0.147 292.11);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.5 0.149 340.3);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.615 0.195 37.915);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.485 0.16 318.361);
--chart-1: oklch(0.485 0.16 318.361);
--chart-2: oklch(0.429 0.147 292.11);
--chart-3: oklch(0.5 0.149 340.3);
--chart-4: oklch(0.451 0.156 292.027);
--chart-5: oklch(0.486 0.168 318.268);
}