Woeful for shadcn/ui

Woeful is a shadcn/ui theme built around a near-black primary color (#020302) with near-black accents (#030203). The light mode uses a neutral background (#f6fdf7). Dark mode keeps the near-black primary (#020302) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#f6fdf7mintcream
#010401black
Foreground
#030c04black
#f9fbf9mintcream
Card
#f6fdf7mintcream
#010401black
Card foreground
#030c04black
#f9fbf9mintcream
Popover
#f6fdf7mintcream
#010401black
Popover foreground
#030c04black
#f9fbf9mintcream
Primary
#020302black
#020302black
Primary foreground
#81b687darkseagreen
#81b687darkseagreen
Secondary
#030203black
#030203black
Secondary foreground
#b681b0rosybrown
#b681b0rosybrown
Muted
#dcd6dbgainsboro
#292329darkslategray
Muted foreground
#5a585adimgray
#a7a5a6darkgray
Accent
#030203black
#030203black
Accent foreground
#b681b0rosybrown
#b681b0rosybrown
Destructive
#bc4906chocolate
#f97c34coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020302black
#020302black

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button8.82:1AAA
Secondary button6.66:1AA
Muted text4.91:1AA
Accent6.66:1AA
Destructive5.14:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button8.82:1AAA
Secondary button6.66:1AA
Muted text6.26:1AA
Accent6.66:1AA
Destructive7.96:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 149.001);
  --foreground: oklch(0.141 0.027 147.778);
  --muted: oklch(0.882 0.01 329.263);
  --muted-foreground: oklch(0.464 0.003 329.218);
  --popover: oklch(0.988 0.011 149.001);
  --popover-foreground: oklch(0.141 0.027 147.778);
  --card: oklch(0.988 0.011 149.001);
  --card-foreground: oklch(0.141 0.027 147.778);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.094 0.008 148.558);
  --primary-foreground: oklch(0.727 0.088 147.576);
  --secondary: oklch(0.089 0.009 329.71);
  --secondary-foreground: oklch(0.671 0.092 330.632);
  --accent: oklch(0.089 0.009 329.71);
  --accent-foreground: oklch(0.671 0.092 330.632);
  --destructive: oklch(0.553 0.162 42.691);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.094 0.008 148.558);
  --chart-1: oklch(0.094 0.008 148.558);
  --chart-2: oklch(0.089 0.009 329.71);
  --chart-3: oklch(0.089 0.009 329.71);
  --chart-4: oklch(0.142 0.015 330.111);
  --chart-5: oklch(0.095 0.009 148.494);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.018 147.873);
  --foreground: oklch(0.986 0.003 149.099);
  --muted: oklch(0.266 0.013 329.703);
  --muted-foreground: oklch(0.723 0.003 329.182);
  --popover: oklch(0.097 0.018 147.873);
  --popover-foreground: oklch(0.986 0.003 149.099);
  --card: oklch(0.097 0.018 147.873);
  --card-foreground: oklch(0.986 0.003 149.099);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.094 0.008 148.558);
  --primary-foreground: oklch(0.727 0.088 147.576);
  --secondary: oklch(0.089 0.009 329.71);
  --secondary-foreground: oklch(0.671 0.092 330.632);
  --accent: oklch(0.089 0.009 329.71);
  --accent-foreground: oklch(0.671 0.092 330.632);
  --destructive: oklch(0.72 0.173 47.14);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.094 0.008 148.558);
  --chart-1: oklch(0.094 0.008 148.558);
  --chart-2: oklch(0.089 0.009 329.71);
  --chart-3: oklch(0.089 0.009 329.71);
  --chart-4: oklch(0.142 0.015 330.111);
  --chart-5: oklch(0.095 0.009 148.494);
}