Woeful for shadcn/ui

Woeful is a shadcn/ui theme built around a near-black primary color (#231f23) with near-black accents (#1f2323). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#231f23) on a neutral background (#070308).

Color palette

TokenLightDark
Background
#ffffffwhite
#070308black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#070308black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070308black
Popover foreground
#000000black
#ffffffwhite
Primary
#231f23black
#231f23black
Primary foreground
#beb5bfsilver
#beb5bfsilver
Secondary
#23231fblack
#23231fblack
Secondary foreground
#bfbeb5silver
#bfbeb5silver
Muted
#e6e4d1gainsboro
#2e2c19darkslategray
Muted foreground
#6a6753dimgray
#acaa95darkgray
Accent
#1f2323black
#1f2323black
Accent foreground
#b5bfbesilver
#b5bfbesilver
Destructive
#6b2405maroon
#f56d32tomato
Destructive foreground
#fbc0a7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#231f23black
#231f23black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.17:1AAA
Secondary button8.43:1AAA
Muted text4.44:1AA Large
Accent8.40:1AAA
Destructive7.02:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button8.17:1AAA
Secondary button8.43:1AAA
Muted text5.97:1AA
Accent8.40:1AAA
Destructive7.12:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.026 101.72);
  --muted-foreground: oklch(0.511 0.031 102.17);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.245 0.011 322.798);
  --primary-foreground: oklch(0.784 0.017 322.711);
  --secondary: oklch(0.255 0.008 101.748);
  --secondary-foreground: oklch(0.8 0.012 101.523);
  --accent: oklch(0.253 0.007 189.457);
  --accent-foreground: oklch(0.797 0.011 189.768);
  --destructive: oklch(0.364 0.109 40.014);
  --destructive-foreground: oklch(0.855 0.076 44.287);
  --ring: oklch(0.245 0.011 322.798);
  --chart-1: oklch(0.245 0.011 322.798);
  --chart-2: oklch(0.255 0.008 101.748);
  --chart-3: oklch(0.253 0.007 189.457);
  --chart-4: oklch(0.288 0.009 101.773);
  --chart-5: oklch(0.244 0.015 322.871);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.021 324.152);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.291 0.032 102.735);
  --muted-foreground: oklch(0.733 0.029 101.878);
  --popover: oklch(0.109 0.021 324.152);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.021 324.152);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.245 0.011 322.798);
  --primary-foreground: oklch(0.784 0.017 322.711);
  --secondary: oklch(0.255 0.008 101.748);
  --secondary-foreground: oklch(0.8 0.012 101.523);
  --accent: oklch(0.253 0.007 189.457);
  --accent-foreground: oklch(0.797 0.011 189.768);
  --destructive: oklch(0.693 0.182 41.587);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.245 0.011 322.798);
  --chart-1: oklch(0.245 0.011 322.798);
  --chart-2: oklch(0.255 0.008 101.748);
  --chart-3: oklch(0.253 0.007 189.457);
  --chart-4: oklch(0.288 0.009 101.773);
  --chart-5: oklch(0.244 0.015 322.871);
}