Wretched is a shadcn/ui theme built around a pink primary color (#6f2f50) with green accents (#2f6f4e). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#6f2f50) on a pink-tinted background (#0d070a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070ablack |
| Foreground | #0c0308black | #fbf9fasnow |
| Card | #fcfcfcsnow | #11090dblack |
| Card foreground | #080205black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #11090dblack |
| Popover foreground | #080205black | #fdfcfcsnow |
| Primary | #6f2f50dimgray | #6f2f50dimgray |
| Primary foreground | #f1dfe8mistyrose | #f1dfe8mistyrose |
| Secondary | #2f6f4eseagreen | #2f6f4eseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0f0e8lavender | #0f1f17black |
| Muted foreground | #566c61dimgray | #93a99edarkseagreen |
| Accent | #2f6f4eseagreen | #2f6f4eseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7c190emaroon | #e6321eorangered |
| Destructive foreground | #f8c9c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f2f50dimgray | #6f2f50dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 5.96:1 | AA |
| Muted text | 4.79:1 | AA |
| Accent | 5.96:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 5.96:1 | AA |
| Muted text | 6.84:1 | AA |
| Accent | 5.96:1 | AA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Wretched in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.027 344.563);
--muted: oklch(0.941 0.02 163.721);
--muted-foreground: oklch(0.509 0.031 162.619);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.105 0.024 344.126);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.105 0.024 344.126);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.405 0.101 350.329);
--primary-foreground: oklch(0.92 0.024 344.947);
--secondary: oklch(0.491 0.086 158.281);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.491 0.086 158.281);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.384 0.136 30.425);
--destructive-foreground: oklch(0.875 0.055 25.628);
--ring: oklch(0.405 0.101 350.329);
--chart-1: oklch(0.405 0.101 350.329);
--chart-2: oklch(0.491 0.086 158.281);
--chart-3: oklch(0.491 0.086 158.281);
--chart-4: oklch(0.524 0.093 158.202);
--chart-5: oklch(0.405 0.107 350.786);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 345.523);
--foreground: oklch(0.984 0.002 344.34);
--muted: oklch(0.222 0.027 160.516);
--muted-foreground: oklch(0.714 0.029 163.213);
--popover: oklch(0.152 0.017 346.763);
--popover-foreground: oklch(0.992 0.001 344.313);
--card: oklch(0.152 0.017 346.763);
--card-foreground: oklch(0.992 0.001 344.313);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.405 0.101 350.329);
--primary-foreground: oklch(0.92 0.024 344.947);
--secondary: oklch(0.491 0.086 158.281);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.491 0.086 158.281);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.603 0.218 30.489);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.405 0.101 350.329);
--chart-1: oklch(0.405 0.101 350.329);
--chart-2: oklch(0.491 0.086 158.281);
--chart-3: oklch(0.491 0.086 158.281);
--chart-4: oklch(0.524 0.093 158.202);
--chart-5: oklch(0.405 0.107 350.786);
}