Menacing for shadcn/ui

Menacing is a shadcn/ui theme built around a vivid purple primary color (#d22fe4) with vivid pink accents (#e42f9c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d22fe4) on a purple-tinted background (#0e0510).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0510black
Foreground
#130515black
#f8f6f9whitesmoke
Card
#fcfcfcsnow
#120613black
Card foreground
#0f0411black
#fbf9fbsnow
Popover
#ffffffwhite
#0e0510black
Popover foreground
#130515black
#f8f6f9whitesmoke
Primary
#d22fe4mediumorchid
#d22fe4mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#782fe4blueviolet
#782fe4blueviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6dff1lavender
#150e20black
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#e42f9cdeeppink
#e42f9cdeeppink
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#65140bmaroon
#e6321eorangered
Destructive foreground
#f6b4aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d22fe4mediumorchid
#d22fe4mediumorchid

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.64:1AAA
Primary button3.98:1AA Large
Secondary button6.31:1AA
Muted text7.16:1AAA
Accent4.04:1AA Large
Destructive7.25:1AAA
Dark mode
Text on background18.64:1AAA
Text on card18.87:1AAA
Primary button3.98:1AA Large
Secondary button6.31:1AA
Muted text9.49:1AAA
Accent4.04:1AA Large
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.043 323.816);
  --muted: oklch(0.914 0.026 303.94);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.043 323.816);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.136 0.038 324.013);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.634 0.269 323.442);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.519 0.247 293.956);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.625 0.232 349.626);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.334 0.115 30.344);
  --destructive-foreground: oklch(0.829 0.078 26.038);
  --ring: oklch(0.634 0.269 323.442);
  --chart-1: oklch(0.634 0.269 323.442);
  --chart-2: oklch(0.519 0.247 293.956);
  --chart-3: oklch(0.625 0.232 349.626);
  --chart-4: oklch(0.543 0.236 295.617);
  --chart-5: oklch(0.638 0.275 323.402);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.03 323.731);
  --foreground: oklch(0.976 0.004 322.645);
  --muted: oklch(0.183 0.038 301.193);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.137 0.03 323.731);
  --popover-foreground: oklch(0.976 0.004 322.645);
  --card: oklch(0.15 0.035 323.565);
  --card-foreground: oklch(0.984 0.003 322.639);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.634 0.269 323.442);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.519 0.247 293.956);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.625 0.232 349.626);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.603 0.218 30.489);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.634 0.269 323.442);
  --chart-1: oklch(0.634 0.269 323.442);
  --chart-2: oklch(0.519 0.247 293.956);
  --chart-3: oklch(0.625 0.232 349.626);
  --chart-4: oklch(0.543 0.236 295.617);
  --chart-5: oklch(0.638 0.275 323.402);
}