Woeful for shadcn/ui

Woeful is a shadcn/ui theme built around a near-black primary color (#0c0309) with muted light purple accents (#ceb6c6). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-black primary (#0c0309) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#040103black
Foreground
#000000black
#fbf8fasnow
Card
#faf4f8whitesmoke
#080206black
Card foreground
#000000black
#fdfcfdwhite
Popover
#faf4f8whitesmoke
#080206black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#0c0309black
#0c0309black
Primary foreground
#d869b5orchid
#d869b5orchid
Secondary
#dcd0d8lightgrey
#1a1418black
Secondary foreground
#463540darkslategray
#b9a6b3darkgray
Muted
#f3ecf1whitesmoke
#130c10black
Muted foreground
#666666dimgray
#999999darkgray
Accent
#ceb6c6silver
#382431darkslategray
Accent foreground
#31212cdarkslategray
#d3bbcbthistle
Destructive
#6e2602maroon
#fa5a0aorangered
Destructive foreground
#fdc2a5navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0309black
#0c0309black

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.42:1AAA
Primary button6.39:1AA
Secondary button7.65:1AAA
Muted text4.95:1AA
Accent8.01:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.68:1AAA
Text on card20.06:1AAA
Primary button6.39:1AA
Secondary button7.91:1AAA
Muted text6.77:1AA
Accent8.00:1AAA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 336.669);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.009 336.743);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.974 0.008 336.725);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.008 336.725);
  --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.122 0.027 337.43);
  --primary-foreground: oklch(0.676 0.165 340.98);
  --secondary: oklch(0.871 0.016 336.923);
  --secondary-foreground: oklch(0.351 0.031 338.193);
  --accent: oklch(0.801 0.036 337.41);
  --accent-foreground: oklch(0.271 0.031 338.682);
  --destructive: oklch(0.373 0.111 41.884);
  --destructive-foreground: oklch(0.861 0.078 47.788);
  --ring: oklch(0.122 0.027 337.43);
  --chart-1: oklch(0.122 0.027 337.43);
  --chart-2: oklch(0.871 0.016 336.923);
  --chart-3: oklch(0.801 0.036 337.41);
  --chart-4: oklch(0.895 0.013 336.845);
  --chart-5: oklch(0.122 0.029 337.519);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.017 337.015);
  --foreground: oklch(0.983 0.004 336.641);
  --muted: oklch(0.165 0.014 338.131);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.107 0.022 337.015);
  --popover-foreground: oklch(0.992 0.002 336.6);
  --card: oklch(0.107 0.022 337.015);
  --card-foreground: oklch(0.992 0.002 336.6);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.122 0.027 337.43);
  --primary-foreground: oklch(0.676 0.165 340.98);
  --secondary: oklch(0.2 0.011 337.633);
  --secondary-foreground: oklch(0.747 0.028 337.282);
  --accent: oklch(0.29 0.036 338.849);
  --accent-foreground: oklch(0.817 0.034 337.359);
  --destructive: oklch(0.674 0.208 40.044);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.122 0.027 337.43);
  --chart-1: oklch(0.122 0.027 337.43);
  --chart-2: oklch(0.2 0.011 337.633);
  --chart-3: oklch(0.29 0.036 338.849);
  --chart-4: oklch(0.233 0.015 337.745);
  --chart-5: oklch(0.122 0.029 337.519);
}