Anguish for shadcn/ui

Anguish is a shadcn/ui theme built around a vivid pink primary color (#ff0fa7) with muted light pink accents (#d7b7cb). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid pink primary (#ff0fa7) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#fefbfdsnow
#070306black
Foreground
#14050fblack
#fdfbfdsnow
Card
#fefbfdsnow
#070306black
Card foreground
#14050fblack
#fdfbfdsnow
Popover
#fefbfdsnow
#070306black
Popover foreground
#14050fblack
#fdfbfdsnow
Primary
#ff0fa7deeppink
#ff0fa7deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e0d1dbgainsboro
#2e242adarkslategray
Secondary foreground
#4c3443darkslategray
#c9bac4silver
Muted
#f6eaf1lavenderblush
#150911black
Muted foreground
#594652darkslategray
#b9a6b2darkgray
Accent
#d7b7cbthistle
#482e3edarkslategray
Accent foreground
#3b2131darkslategray
#ddcad6thistle
Destructive
#7c1804maroon
#f8401borangered
Destructive foreground
#fdc1b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ff0fa7deeppink
#ff0fa7deeppink

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button3.57:1AA Large
Secondary button7.63:1AAA
Muted text7.39:1AAA
Accent7.96:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button3.57:1AA Large
Secondary button8.07:1AAA
Muted text8.47:1AAA
Accent7.80:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 338.817);
  --foreground: oklch(0.148 0.035 342.253);
  --muted: oklch(0.948 0.017 339.093);
  --muted-foreground: oklch(0.417 0.032 340.286);
  --popover: oklch(0.991 0.005 338.817);
  --popover-foreground: oklch(0.148 0.035 342.253);
  --card: oklch(0.991 0.005 338.817);
  --card-foreground: oklch(0.148 0.035 342.253);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.661 0.271 350.731);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.877 0.02 339.207);
  --secondary-foreground: oklch(0.357 0.042 341.099);
  --accent: oklch(0.813 0.045 339.857);
  --accent-foreground: oklch(0.288 0.047 341.974);
  --destructive: oklch(0.382 0.137 32.827);
  --destructive-foreground: oklch(0.861 0.071 31.44);
  --ring: oklch(0.661 0.271 350.731);
  --chart-1: oklch(0.661 0.271 350.731);
  --chart-2: oklch(0.877 0.02 339.207);
  --chart-3: oklch(0.813 0.045 339.857);
  --chart-4: oklch(0.902 0.016 339.097);
  --chart-5: oklch(0.667 0.274 351.103);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.015 338.902);
  --foreground: oklch(0.991 0.003 338.776);
  --muted: oklch(0.163 0.026 341.866);
  --muted-foreground: oklch(0.747 0.027 339.491);
  --popover: oklch(0.11 0.015 338.902);
  --popover-foreground: oklch(0.991 0.003 338.776);
  --card: oklch(0.11 0.015 338.902);
  --card-foreground: oklch(0.991 0.003 338.776);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.661 0.271 350.731);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.274 0.018 340.094);
  --secondary-foreground: oklch(0.805 0.021 339.266);
  --accent: oklch(0.337 0.046 341.425);
  --accent-foreground: oklch(0.859 0.027 339.373);
  --destructive: oklch(0.645 0.224 32.806);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.661 0.271 350.731);
  --chart-1: oklch(0.661 0.271 350.731);
  --chart-2: oklch(0.274 0.018 340.094);
  --chart-3: oklch(0.337 0.046 341.425);
  --chart-4: oklch(0.304 0.021 340.151);
  --chart-5: oklch(0.667 0.274 351.103);
}