Anguished for shadcn/ui

Anguished is a shadcn/ui theme built around a vivid yellow primary color (#f1e046) with vivid green accents (#adf146). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f1e046) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#0c0b04black
#fdfdfcwhite
Card
#ffffffwhite
#030302black
Card foreground
#0c0b04black
#fdfdfcwhite
Popover
#ffffffwhite
#030302black
Popover foreground
#0c0b04black
#fdfdfcwhite
Primary
#f1e046sandybrown
#f1e046sandybrown
Primary foreground
#050400black
#050400black
Secondary
#f18a46coral
#f18a46coral
Secondary foreground
#050200black
#050200black
Muted
#e8d9cfgainsboro
#302117black
Muted foreground
#57504cdarkolivegreen
#b3aca8darkgray
Accent
#adf146greenyellow
#adf146greenyellow
Accent foreground
#030500black
#030500black
Destructive
#7e1801maroon
#fd390dorangered
Destructive foreground
#fec1b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1e046sandybrown
#f1e046sandybrown

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button15.13:1AAA
Secondary button8.36:1AAA
Muted text5.73:1AA
Accent15.06:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button15.13:1AAA
Secondary button8.36:1AAA
Muted text6.90:1AA
Accent15.06:1AAA
Destructive3.65: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.147 0.018 103.985);
  --muted: oklch(0.894 0.021 56.103);
  --muted-foreground: oklch(0.438 0.012 56.065);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.018 103.985);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.018 103.985);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.895 0.166 102.84);
  --primary-foreground: oklch(0.107 0.02 105.667);
  --secondary: oklch(0.733 0.15 51.837);
  --secondary-foreground: oklch(0.093 0.016 70.233);
  --accent: oklch(0.882 0.207 129.086);
  --accent-foreground: oklch(0.106 0.023 123.348);
  --destructive: oklch(0.387 0.14 33.436);
  --destructive-foreground: oklch(0.863 0.073 32.937);
  --ring: oklch(0.895 0.166 102.84);
  --chart-1: oklch(0.895 0.166 102.84);
  --chart-2: oklch(0.733 0.15 51.837);
  --chart-3: oklch(0.882 0.207 129.086);
  --chart-4: oklch(0.751 0.139 52.704);
  --chart-5: oklch(0.902 0.17 102.799);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 103.379);
  --foreground: oklch(0.994 0.002 101.314);
  --muted: oklch(0.264 0.029 54.767);
  --muted-foreground: oklch(0.75 0.01 56.245);
  --popover: oklch(0.098 0.008 103.379);
  --popover-foreground: oklch(0.994 0.002 101.314);
  --card: oklch(0.098 0.008 103.379);
  --card-foreground: oklch(0.994 0.002 101.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.895 0.166 102.84);
  --primary-foreground: oklch(0.107 0.02 105.667);
  --secondary: oklch(0.733 0.15 51.837);
  --secondary-foreground: oklch(0.093 0.016 70.233);
  --accent: oklch(0.882 0.207 129.086);
  --accent-foreground: oklch(0.106 0.023 123.348);
  --destructive: oklch(0.646 0.235 32.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.166 102.84);
  --chart-1: oklch(0.895 0.166 102.84);
  --chart-2: oklch(0.733 0.15 51.837);
  --chart-3: oklch(0.882 0.207 129.086);
  --chart-4: oklch(0.751 0.139 52.704);
  --chart-5: oklch(0.902 0.17 102.799);
}