Angry for shadcn/ui

Angry is a shadcn/ui theme built around a muted deep purple primary color (#1a1418) with muted light purple accents (#e9e2e7). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the muted deep purple primary (#1a1418) on a purple-tinted background (#0b0509).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#0b0509black
Foreground
#090106black
#fdfbfdsnow
Card
#fdf7fbsnow
#0b0509black
Card foreground
#090106black
#fdfbfdsnow
Popover
#fdf7fbsnow
#0b0509black
Popover foreground
#090106black
#fdfbfdsnow
Primary
#1a1418black
#1a1418black
Primary foreground
#b9a6b3darkgray
#b9a6b3darkgray
Secondary
#e9e2e7gainsboro
#181016black
Secondary foreground
#564350darkslategray
#be9db3darkgray
Muted
#ddd5dagainsboro
#2a2228darkslategray
Muted foreground
#685060dimgray
#af97a8darkgray
Accent
#e9e2e7gainsboro
#181016black
Accent foreground
#564350darkslategray
#be9db3darkgray
Destructive
#b03207firebrick
#f66331tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a1418black
#1a1418black

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button7.91:1AAA
Secondary button7.14:1AAA
Muted text5.02:1AA
Accent7.14:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button7.91:1AAA
Secondary button7.68:1AAA
Muted text5.73:1AA
Accent7.68:1AAA
Destructive6.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 336.742);
  --foreground: oklch(0.105 0.029 337.161);
  --muted: oklch(0.88 0.011 336.8);
  --muted-foreground: oklch(0.461 0.04 338.177);
  --popover: oklch(0.981 0.009 336.742);
  --popover-foreground: oklch(0.105 0.029 337.161);
  --card: oklch(0.981 0.009 336.742);
  --card-foreground: oklch(0.105 0.029 337.161);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.2 0.011 337.633);
  --primary-foreground: oklch(0.747 0.028 337.282);
  --secondary: oklch(0.92 0.009 336.742);
  --secondary-foreground: oklch(0.408 0.032 338.016);
  --accent: oklch(0.92 0.009 336.742);
  --accent-foreground: oklch(0.408 0.032 338.016);
  --destructive: oklch(0.506 0.169 35.847);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.011 337.633);
  --chart-1: oklch(0.2 0.011 337.633);
  --chart-2: oklch(0.92 0.009 336.742);
  --chart-3: oklch(0.92 0.009 336.742);
  --chart-4: oklch(0.944 0.006 336.683);
  --chart-5: oklch(0.2 0.014 337.898);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.018 336.955);
  --foreground: oklch(0.991 0.003 336.615);
  --muted: oklch(0.265 0.015 337.615);
  --muted-foreground: oklch(0.704 0.036 337.531);
  --popover: oklch(0.125 0.018 336.955);
  --popover-foreground: oklch(0.991 0.003 336.615);
  --card: oklch(0.125 0.018 336.955);
  --card-foreground: oklch(0.991 0.003 336.615);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.2 0.011 337.633);
  --primary-foreground: oklch(0.747 0.028 337.282);
  --secondary: oklch(0.188 0.017 338.258);
  --secondary-foreground: oklch(0.732 0.049 337.813);
  --accent: oklch(0.188 0.017 338.258);
  --accent-foreground: oklch(0.732 0.049 337.813);
  --destructive: oklch(0.681 0.192 37.998);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.2 0.011 337.633);
  --chart-1: oklch(0.2 0.011 337.633);
  --chart-2: oklch(0.188 0.017 338.258);
  --chart-3: oklch(0.188 0.017 338.258);
  --chart-4: oklch(0.22 0.023 338.466);
  --chart-5: oklch(0.2 0.014 337.898);
}