Anguished for shadcn/ui

Anguished is a shadcn/ui theme built around a near-white primary color (#fafbf9) with near-white accents (#fbf9fa). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fafbf9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#070802black
#f8f9f6whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#030401black
#fafbf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#070802black
#f8f9f6whitesmoke
Primary
#fafbf9snow
#fafbf9snow
Primary foreground
#333824darkslategray
#333824darkslategray
Secondary
#f9fafbghostwhite
#f9fafbghostwhite
Secondary foreground
#243338darkslategray
#243338darkslategray
Muted
#d8dddfgainsboro
#202527darkslategray
Muted foreground
#414748darkslategray
#b7bcbesilver
Accent
#fbf9fasnow
#fbf9fasnow
Accent foreground
#754d6bdimgray
#754d6bdimgray
Destructive
#a52b12firebrick
#dc3918orangered
Destructive foreground
#fdefedseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fafbf9snow
#fafbf9snow

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.11:1AAA
Primary button11.68:1AAA
Secondary button12.54:1AAA
Muted text6.90:1AA
Accent6.60:1AA
Destructive6.33:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.92:1AAA
Primary button11.68:1AAA
Secondary button12.54:1AAA
Muted text8.03:1AAA
Accent6.60:1AA
Destructive4.51:1AA

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.13 0.02 118.035);
  --muted: oklch(0.894 0.006 219.559);
  --muted-foreground: oklch(0.392 0.007 219.66);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.02 118.035);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.016 118.035);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.987 0.003 117.876);
  --primary-foreground: oklch(0.328 0.033 119.65);
  --secondary: oklch(0.985 0.002 219.521);
  --secondary-foreground: oklch(0.309 0.021 220.34);
  --accent: oklch(0.984 0.003 333.93);
  --accent-foreground: oklch(0.475 0.07 336.201);
  --destructive: oklch(0.479 0.163 32.964);
  --destructive-foreground: oklch(0.963 0.015 31.077);
  --ring: oklch(0.987 0.003 117.876);
  --chart-1: oklch(0.987 0.003 117.876);
  --chart-2: oklch(0.985 0.002 219.521);
  --chart-3: oklch(0.984 0.003 333.93);
  --chart-4: oklch(1.007 0.001 39.502);
  --chart-5: oklch(0.987 0.003 117.884);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.003 117.884);
  --muted: oklch(0.262 0.008 219.798);
  --muted-foreground: oklch(0.791 0.006 219.566);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.003 117.884);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 117.864);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.987 0.003 117.876);
  --primary-foreground: oklch(0.328 0.033 119.65);
  --secondary: oklch(0.985 0.002 219.521);
  --secondary-foreground: oklch(0.309 0.021 220.34);
  --accent: oklch(0.984 0.003 333.93);
  --accent-foreground: oklch(0.475 0.07 336.201);
  --destructive: oklch(0.591 0.204 32.853);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.987 0.003 117.876);
  --chart-1: oklch(0.987 0.003 117.876);
  --chart-2: oklch(0.985 0.002 219.521);
  --chart-3: oklch(0.984 0.003 333.93);
  --chart-4: oklch(1.007 0.001 39.502);
  --chart-5: oklch(0.987 0.003 117.884);
}