Woeful for shadcn/ui

Woeful is a shadcn/ui theme built around a neutral gray primary color (#929b9a) with neutral gray accents (#9b9a92). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#929b9a) on a teal-tinted background (#070e0d).

Color palette

TokenLightDark
Background
#fbfefdwhite
#070e0dblack
Foreground
#04100fblack
#fcfdfdwhite
Card
#fbfefdwhite
#070e0dblack
Card foreground
#04100fblack
#fcfdfdwhite
Popover
#fbfefdwhite
#070e0dblack
Popover foreground
#04100fblack
#fcfdfdwhite
Primary
#929b9adarkgray
#929b9adarkgray
Primary foreground
#000000black
#000000black
Secondary
#9a929bdarkgray
#9a929bdarkgray
Secondary foreground
#000000black
#000000black
Muted
#e7d9e8gainsboro
#251726black
Muted foreground
#483c48darkslategray
#c2b7c3silver
Accent
#9b9a92darkgray
#9b9a92darkgray
Accent foreground
#000000black
#000000black
Destructive
#b91e13firebrick
#de2417crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#929b9adarkgray
#929b9adarkgray

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button7.35:1AAA
Secondary button6.97:1AA
Muted text7.68:1AAA
Accent7.43:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button7.35:1AAA
Secondary button6.97:1AA
Muted text8.81:1AAA
Accent7.43:1AAA
Destructive4.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 193.561);
  --foreground: oklch(0.161 0.018 191.707);
  --muted: oklch(0.901 0.025 324.288);
  --muted-foreground: oklch(0.374 0.025 324.508);
  --popover: oklch(0.994 0.002 193.561);
  --popover-foreground: oklch(0.161 0.018 191.707);
  --card: oklch(0.994 0.002 193.561);
  --card-foreground: oklch(0.161 0.018 191.707);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.01 193.328);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.67 0.015 324.261);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.011 104.254);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.506 0.19 29.583);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.01 193.328);
  --chart-1: oklch(0.681 0.01 193.328);
  --chart-2: oklch(0.67 0.015 324.261);
  --chart-3: oklch(0.685 0.011 104.254);
  --chart-4: oklch(0.696 0.014 324.246);
  --chart-5: oklch(0.687 0.017 193.128);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.011 192.374);
  --foreground: oklch(0.993 0.002 193.576);
  --muted: oklch(0.23 0.034 324.934);
  --muted-foreground: oklch(0.792 0.021 324.281);
  --popover: oklch(0.154 0.011 192.374);
  --popover-foreground: oklch(0.993 0.002 193.576);
  --card: oklch(0.154 0.011 192.374);
  --card-foreground: oklch(0.993 0.002 193.576);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.681 0.01 193.328);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.67 0.015 324.261);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.011 104.254);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.578 0.219 29.633);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.01 193.328);
  --chart-1: oklch(0.681 0.01 193.328);
  --chart-2: oklch(0.67 0.015 324.261);
  --chart-3: oklch(0.685 0.011 104.254);
  --chart-4: oklch(0.696 0.014 324.246);
  --chart-5: oklch(0.687 0.017 193.128);
}