Woeful for shadcn/ui

Woeful is a shadcn/ui theme built around a light red primary color (#f9dfd8) with light indigo accents (#dfd8f9). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light red primary (#f9dfd8) on a red-tinted background (#0b0604).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0b0604black
Foreground
#120602black
#fbf9f9snow
Card
#fcf9f8snow
#0f0806black
Card foreground
#0e0402black
#fdfcfcsnow
Popover
#fdfcfcsnow
#0b0604black
Popover foreground
#120602black
#fbf9f9snow
Primary
#f9dfd8mistyrose
#f9dfd8mistyrose
Primary foreground
#882f16saddlebrown
#882f16saddlebrown
Secondary
#d8f9dfgainsboro
#d8f9dfgainsboro
Secondary foreground
#083011black
#083011black
Muted
#e5ebe6gainsboro
#141a15black
Muted foreground
#4e5a51darkslategray
#a5b1a8darkgray
Accent
#dfd8f9lavender
#dfd8f9lavender
Accent foreground
#2f1688midnightblue
#2f1688midnightblue
Destructive
#822f03saddlebrown
#fa5e0aorangered
Destructive foreground
#fed1b9peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9dfd8mistyrose
#f9dfd8mistyrose

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.30:1AAA
Primary button6.70:1AA
Secondary button12.81:1AAA
Muted text5.97:1AA
Accent9.59:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.42:1AAA
Primary button6.70:1AA
Secondary button12.81:1AAA
Muted text7.95:1AAA
Accent9.59:1AAA
Destructive6.67:1AA

CSS variables

Paste this into your globals.css to use Woeful in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 36.006);
  --foreground: oklch(0.14 0.028 44.93);
  --muted: oklch(0.934 0.009 152.467);
  --muted-foreground: oklch(0.455 0.021 151.874);
  --popover: oklch(0.992 0.002 36.006);
  --popover-foreground: oklch(0.14 0.028 44.93);
  --card: oklch(0.984 0.003 36);
  --card-foreground: oklch(0.125 0.024 46.71);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.03 35.945);
  --primary-foreground: oklch(0.432 0.127 35.909);
  --secondary: oklch(0.95 0.049 151.786);
  --secondary-foreground: oklch(0.274 0.071 147.089);
  --accent: oklch(0.897 0.045 295.398);
  --accent-foreground: oklch(0.329 0.171 281.356);
  --destructive: oklch(0.421 0.124 42.379);
  --destructive-foreground: oklch(0.893 0.06 49.868);
  --ring: oklch(0.922 0.03 35.945);
  --chart-1: oklch(0.922 0.03 35.945);
  --chart-2: oklch(0.95 0.049 151.786);
  --chart-3: oklch(0.897 0.045 295.398);
  --chart-4: oklch(0.966 0.032 152.08);
  --chart-5: oklch(0.922 0.032 35.944);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.012 41.176);
  --foreground: oklch(0.984 0.002 36.006);
  --muted: oklch(0.21 0.013 151.617);
  --muted-foreground: oklch(0.748 0.019 152.223);
  --popover: oklch(0.128 0.012 41.176);
  --popover-foreground: oklch(0.984 0.002 36.006);
  --card: oklch(0.142 0.015 39.828);
  --card-foreground: oklch(0.992 0.001 36.009);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.03 35.945);
  --primary-foreground: oklch(0.432 0.127 35.909);
  --secondary: oklch(0.95 0.049 151.786);
  --secondary-foreground: oklch(0.274 0.071 147.089);
  --accent: oklch(0.897 0.045 295.398);
  --accent-foreground: oklch(0.329 0.171 281.356);
  --destructive: oklch(0.679 0.205 41.18);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.922 0.03 35.945);
  --chart-1: oklch(0.922 0.03 35.945);
  --chart-2: oklch(0.95 0.049 151.786);
  --chart-3: oklch(0.897 0.045 295.398);
  --chart-4: oklch(0.966 0.032 152.08);
  --chart-5: oklch(0.922 0.032 35.944);
}