Reduction is a shadcn/ui theme built around a muted pink primary color (#986777) with muted blue accents (#677798). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the muted pink primary (#986777) on a neutral background (#080204).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #080204black |
| Foreground | #000000black | #faf5f6whitesmoke |
| Card | #fdf7f9snow | #080204black |
| Card foreground | #000000black | #faf5f6whitesmoke |
| Popover | #fdf7f9snow | #080204black |
| Popover foreground | #000000black | #faf5f6whitesmoke |
| Primary | #986777gray | #986777gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #779867gray | #779867gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2e5e0gainsboro | #1b1f1ablack |
| Muted foreground | #4c5747darkslategray | #adb8a8darkgray |
| Accent | #677798slategray | #677798slategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #682808saddlebrown | #de5612chocolate |
| Destructive foreground | #f8c4aanavajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #986777gray | #986777gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 6.00:1 | AA |
| Accent | 4.51:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 8.13:1 | AAA |
| Accent | 4.51:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Reduction in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 355.801);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.008 135.464);
--muted-foreground: oklch(0.442 0.029 135.722);
--popover: oklch(0.981 0.006 355.801);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 355.801);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.57 0.065 358.765);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.641 0.079 136.041);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.568 0.055 265.318);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.365 0.1 42.977);
--destructive-foreground: oklch(0.86 0.069 47.894);
--ring: oklch(0.57 0.065 358.765);
--chart-1: oklch(0.57 0.065 358.765);
--chart-2: oklch(0.641 0.079 136.041);
--chart-3: oklch(0.568 0.055 265.318);
--chart-4: oklch(0.663 0.074 135.969);
--chart-5: oklch(0.567 0.076 359.291);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.019 355.291);
--foreground: oklch(0.974 0.006 355.782);
--muted: oklch(0.232 0.011 135.634);
--muted-foreground: oklch(0.769 0.025 135.571);
--popover: oklch(0.105 0.019 355.291);
--popover-foreground: oklch(0.974 0.006 355.782);
--card: oklch(0.105 0.019 355.291);
--card-foreground: oklch(0.974 0.006 355.782);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.57 0.065 358.765);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.641 0.079 136.041);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.568 0.055 265.318);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.624 0.183 41.463);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.57 0.065 358.765);
--chart-1: oklch(0.57 0.065 358.765);
--chart-2: oklch(0.641 0.079 136.041);
--chart-3: oklch(0.568 0.055 265.318);
--chart-4: oklch(0.663 0.074 135.969);
--chart-5: oklch(0.567 0.076 359.291);
}