Woeful for shadcn/ui

Woeful is a shadcn/ui theme built around a muted deep blue primary color (#2b363b) with muted deep blue accents (#2b2e3b). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted deep blue primary (#2b363b) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020608black
Foreground
#030608black
#f6f8f9whitesmoke
Card
#f8fafcghostwhite
#03090cblack
Card foreground
#010304black
#f9fafbghostwhite
Popover
#f8fafcghostwhite
#03090cblack
Popover foreground
#010304black
#f9fafbghostwhite
Primary
#2b363bdarkslategray
#2b363bdarkslategray
Primary foreground
#c4cfd4lightgrey
#c4cfd4lightgrey
Secondary
#2b3b38darkslategray
#2b3b38darkslategray
Secondary foreground
#c4d4d1lightgrey
#c4d4d1lightgrey
Muted
#dbe6e4gainsboro
#192422black
Muted foreground
#454a49darkslategray
#b5bab9silver
Accent
#2b2e3bdarkslategray
#2b2e3bdarkslategray
Accent foreground
#c4c7d4lightgrey
#c4c7d4lightgrey
Destructive
#a23c11saddlebrown
#eb713dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b363bdarkslategray
#2b363bdarkslategray

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.81:1AAA
Primary button7.84:1AAA
Secondary button7.68:1AAA
Muted text7.07:1AAA
Accent8.01:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.15:1AAA
Primary button7.84:1AAA
Secondary button7.68:1AAA
Muted text8.08:1AAA
Accent8.01:1AAA
Destructive6.95:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.001 228.769);
  --foreground: oklch(0.117 0.011 223.243);
  --muted: oklch(0.916 0.013 185.085);
  --muted-foreground: oklch(0.403 0.006 185.075);
  --popover: oklch(0.985 0.003 228.788);
  --popover-foreground: oklch(0.093 0.008 223.243);
  --card: oklch(0.985 0.003 228.788);
  --card-foreground: oklch(0.093 0.008 223.243);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.324 0.016 229.539);
  --primary-foreground: oklch(0.847 0.013 228.96);
  --secondary: oklch(0.337 0.021 183.765);
  --secondary-foreground: oklch(0.857 0.017 184.928);
  --accent: oklch(0.304 0.023 276.074);
  --accent-foreground: oklch(0.831 0.018 276.954);
  --destructive: oklch(0.493 0.144 40.214);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.324 0.016 229.539);
  --chart-1: oklch(0.324 0.016 229.539);
  --chart-2: oklch(0.337 0.021 183.765);
  --chart-3: oklch(0.304 0.023 276.074);
  --chart-4: oklch(0.368 0.023 183.719);
  --chart-5: oklch(0.325 0.02 229.73);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.013 222.283);
  --foreground: oklch(0.978 0.003 228.792);
  --muted: oklch(0.25 0.017 183.593);
  --muted-foreground: oklch(0.784 0.005 185.286);
  --popover: oklch(0.134 0.015 223.251);
  --popover-foreground: oklch(0.985 0.002 228.778);
  --card: oklch(0.134 0.015 223.251);
  --card-foreground: oklch(0.985 0.002 228.778);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.324 0.016 229.539);
  --primary-foreground: oklch(0.847 0.013 228.96);
  --secondary: oklch(0.337 0.021 183.765);
  --secondary-foreground: oklch(0.857 0.017 184.928);
  --accent: oklch(0.304 0.023 276.074);
  --accent-foreground: oklch(0.831 0.018 276.954);
  --destructive: oklch(0.684 0.164 42.334);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.324 0.016 229.539);
  --chart-1: oklch(0.324 0.016 229.539);
  --chart-2: oklch(0.337 0.021 183.765);
  --chart-3: oklch(0.304 0.023 276.074);
  --chart-4: oklch(0.368 0.023 183.719);
  --chart-5: oklch(0.325 0.02 229.73);
}