Anguished for shadcn/ui

Anguished is a shadcn/ui theme built around a neutral gray primary color (#626a63) with neutral gray accents (#6a6362). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#626a63) on a neutral background (#020402).

Color palette

TokenLightDark
Background
#ffffffwhite
#020402black
Foreground
#020803black
#fbfdfcwhite
Card
#fcfcfcsnow
#030704black
Card foreground
#010402black
#ffffffwhite
Popover
#fcfcfcsnow
#030704black
Popover foreground
#010402black
#ffffffwhite
Primary
#626a63dimgray
#626a63dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#63626adimgray
#63626adimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efeef1whitesmoke
#0e0e11black
Muted foreground
#605c70dimgray
#938fa3lightslategray
Accent
#6a6362dimgray
#6a6362dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#911d08darkred
#f23c1corangered
Destructive foreground
#fcd6cfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#626a63dimgray
#626a63dimgray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.15:1AAA
Primary button5.57:1AA
Secondary button6.02:1AA
Muted text5.57:1AA
Accent5.84:1AA
Destructive6.59:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.25:1AAA
Primary button5.57:1AA
Secondary button6.02:1AA
Muted text6.14:1AA
Accent5.84:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.019 150.528);
  --muted: oklch(0.951 0.004 294.751);
  --muted-foreground: oklch(0.485 0.033 293.552);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.097 0.015 150.528);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.097 0.015 150.528);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.515 0.014 151.001);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.013 294.342);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.507 0.009 32.67);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.428 0.154 32.068);
  --destructive-foreground: oklch(0.906 0.044 29.72);
  --ring: oklch(0.515 0.014 151.001);
  --chart-1: oklch(0.515 0.014 151.001);
  --chart-2: oklch(0.5 0.013 294.342);
  --chart-3: oklch(0.507 0.009 32.67);
  --chart-4: oklch(0.526 0.014 294.338);
  --chart-5: oklch(0.52 0.025 150.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.012 150.741);
  --foreground: oklch(0.993 0.003 151.364);
  --muted: oklch(0.165 0.006 294.173);
  --muted-foreground: oklch(0.659 0.03 293.965);
  --popover: oklch(0.121 0.015 150.741);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.015 150.741);
  --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.515 0.014 151.001);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.013 294.342);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.507 0.009 32.67);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.221 32.21);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.515 0.014 151.001);
  --chart-1: oklch(0.515 0.014 151.001);
  --chart-2: oklch(0.5 0.013 294.342);
  --chart-3: oklch(0.507 0.009 32.67);
  --chart-4: oklch(0.526 0.014 294.338);
  --chart-5: oklch(0.52 0.025 150.696);
}