Wretched is a shadcn/ui theme built around a vivid purple primary color (#ea57c3) with vivid red accents (#ea5779). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid purple primary (#ea57c3) on a purple-tinted background (#0c030a).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #0c030ablack |
| Foreground | #000000black | #faf5f9whitesmoke |
| Card | #fcf8fbsnow | #10050dblack |
| Card foreground | #000000black | #fcf8fbsnow |
| Popover | #fcf8fbsnow | #10050dblack |
| Popover foreground | #000000black | #fcf8fbsnow |
| Primary | #ea57c3hotpink | #ea57c3hotpink |
| Primary foreground | #0e020ablack | #0e020ablack |
| Secondary | #c857eamediumorchid | #c857eamediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2ecf4whitesmoke | #110b13black |
| Muted foreground | #605464dimgray | #a89babdarkgray |
| Accent | #ea5779palevioletred | #ea5779palevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #850f0fmaroon | #e72727crimson |
| Destructive foreground | #f9cdcdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ea57c3hotpink | #ea57c3hotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.00:1 | AA |
| Muted text | 6.11:1 | AA |
| Accent | 6.14:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 18.84:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.00:1 | AA |
| Muted text | 7.32:1 | AAA |
| Accent | 6.14:1 | AA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Wretched in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 334.578);
--foreground: oklch(0 0 0);
--muted: oklch(0.949 0.012 318.317);
--muted-foreground: oklch(0.463 0.031 318.263);
--popover: oklch(0.983 0.006 334.629);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.006 334.629);
--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.685 0.215 339.746);
--primary-foreground: oklch(0.119 0.038 336.251);
--secondary: oklch(0.659 0.227 317.481);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.183 9.458);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.395 0.151 27.77);
--destructive-foreground: oklch(0.885 0.051 18.157);
--ring: oklch(0.685 0.215 339.746);
--chart-1: oklch(0.685 0.215 339.746);
--chart-2: oklch(0.659 0.227 317.481);
--chart-3: oklch(0.66 0.183 9.458);
--chart-4: oklch(0.682 0.212 317.679);
--chart-5: oklch(0.686 0.221 339.928);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.026 335.475);
--foreground: oklch(0.975 0.007 334.657);
--muted: oklch(0.163 0.019 318.204);
--muted-foreground: oklch(0.705 0.028 318.291);
--popover: oklch(0.137 0.029 336.712);
--popover-foreground: oklch(0.983 0.005 334.613);
--card: oklch(0.137 0.029 336.712);
--card-foreground: oklch(0.983 0.005 334.613);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.685 0.215 339.746);
--primary-foreground: oklch(0.119 0.038 336.251);
--secondary: oklch(0.659 0.227 317.481);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.183 9.458);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.598 0.224 27.409);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.215 339.746);
--chart-1: oklch(0.685 0.215 339.746);
--chart-2: oklch(0.659 0.227 317.481);
--chart-3: oklch(0.66 0.183 9.458);
--chart-4: oklch(0.682 0.212 317.679);
--chart-5: oklch(0.686 0.221 339.928);
}