Deduce is a shadcn/ui theme built around a vivid red primary color (#f22821) with vivid indigo accents (#2821f2). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the vivid red primary (#f22821) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f6snow | #080303black |
| Foreground | #090101black | #fcf8f8snow |
| Card | #fdf2f2lavenderblush | #0b0404black |
| Card foreground | #050101black | #fdfbfbsnow |
| Popover | #fdf7f6snow | #080303black |
| Popover foreground | #090101black | #fcf8f8snow |
| Primary | #f22821crimson | #f22821crimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #21f228limegreen | #21f228limegreen |
| Secondary foreground | #044306darkgreen | #044306darkgreen |
| Muted | #d1e1d1lightgrey | #1e2e1fdarkslategray |
| Muted foreground | #3e4c3edarkslategray | #b3c1b4silver |
| Accent | #2821f2blue | #2821f2blue |
| Accent foreground | #e3e2fdlavender | #e3e2fdlavender |
| Destructive | #762a04saddlebrown | #f65f13orangered |
| Destructive foreground | #fccab0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f22821crimson | #f22821crimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 4.11:1 | AA Large |
| Secondary button | 7.62:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 6.38:1 | AA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 4.11:1 | AA Large |
| Secondary button | 7.62:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 6.38:1 | AA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Deduce in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 19.711);
--foreground: oklch(0.1 0.025 26.506);
--muted: oklch(0.893 0.027 146.273);
--muted-foreground: oklch(0.399 0.028 145.902);
--popover: oklch(0.98 0.007 19.711);
--popover-foreground: oklch(0.1 0.025 26.506);
--card: oklch(0.97 0.011 19.768);
--card-foreground: oklch(0.079 0.02 26.506);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.618 0.234 28.639);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.836 0.273 142.862);
--secondary-foreground: oklch(0.335 0.108 143.054);
--accent: oklch(0.461 0.283 268.74);
--accent-foreground: oklch(0.922 0.037 287.184);
--destructive: oklch(0.393 0.115 41.808);
--destructive-foreground: oklch(0.876 0.067 47.934);
--ring: oklch(0.618 0.234 28.639);
--chart-1: oklch(0.618 0.234 28.639);
--chart-2: oklch(0.836 0.273 142.862);
--chart-3: oklch(0.461 0.283 268.74);
--chart-4: oklch(0.84 0.266 143.042);
--chart-5: oklch(0.622 0.239 28.805);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.015 22.943);
--foreground: oklch(0.982 0.004 19.665);
--muted: oklch(0.283 0.035 145.372);
--muted-foreground: oklch(0.797 0.024 146.276);
--popover: oklch(0.106 0.015 22.943);
--popover-foreground: oklch(0.982 0.004 19.665);
--card: oklch(0.122 0.017 22.938);
--card-foreground: oklch(0.991 0.002 19.635);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.618 0.234 28.639);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.836 0.273 142.862);
--secondary-foreground: oklch(0.335 0.108 143.054);
--accent: oklch(0.461 0.283 268.74);
--accent-foreground: oklch(0.922 0.037 287.184);
--destructive: oklch(0.674 0.2 41.164);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.618 0.234 28.639);
--chart-1: oklch(0.618 0.234 28.639);
--chart-2: oklch(0.836 0.273 142.862);
--chart-3: oklch(0.461 0.283 268.74);
--chart-4: oklch(0.84 0.266 143.042);
--chart-5: oklch(0.622 0.239 28.805);
}