Wretched for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.34:1AAA
Text on card20.12:1AAA
Primary button7.48:1AAA
Secondary button5.96:1AA
Muted text4.79:1AA
Accent5.96:1AA
Destructive7.06:1AAA
Dark mode
Text on background19.03:1AAA
Text on card19.22:1AAA
Primary button7.48:1AAA
Secondary button5.96:1AA
Muted text6.84:1AA
Accent5.96:1AA
Destructive4.33:1AA Large

CSS variables

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);
}