Menacing for shadcn/ui

Menacing is a shadcn/ui theme built around a yellow primary color (#c0c468) with purple accents (#c468c0). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#c0c468) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0b04black
Foreground
#0f1005black
#fcfcf8snow
Card
#fcfcfcsnow
#0f0f05black
Card foreground
#0b0c04black
#fdfdfcwhite
Popover
#ffffffwhite
#0b0b04black
Popover foreground
#0f1005black
#fcfcf8snow
Primary
#c0c468darkkhaki
#c0c468darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#68c0c4mediumaquamarine
#68c0c4mediumaquamarine
Secondary foreground
#000000black
#000000black
Muted
#dce9e9gainsboro
#162223black
Muted foreground
#4b6162dimgray
#9db2b4darkgray
Accent
#c468c0mediumorchid
#c468c0mediumorchid
Accent foreground
#000000black
#000000black
Destructive
#da0101red
#fe1b1bred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c0c468darkkhaki
#c0c468darkkhaki

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.22:1AAA
Primary button11.37:1AAA
Secondary button9.92:1AAA
Muted text5.29:1AA
Accent6.11:1AA
Destructive5.25:1AA
Dark mode
Text on background19.16:1AAA
Text on card18.90:1AAA
Primary button11.37:1AAA
Secondary button9.92:1AAA
Muted text7.36:1AAA
Accent6.11:1AA
Destructive3.90: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.166 0.022 110.842);
  --muted: oklch(0.924 0.013 200.719);
  --muted-foreground: oklch(0.475 0.026 200.306);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.166 0.022 110.842);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.149 0.019 110.533);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.798 0.116 111.284);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.755 0.085 199.981);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.655 0.16 329.071);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.559 0.229 29.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.116 111.284);
  --chart-1: oklch(0.798 0.116 111.284);
  --chart-2: oklch(0.755 0.085 199.981);
  --chart-3: oklch(0.655 0.16 329.071);
  --chart-4: oklch(0.772 0.08 200);
  --chart-5: oklch(0.807 0.122 111.399);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.018 110.436);
  --foreground: oklch(0.989 0.005 108.802);
  --muted: oklch(0.24 0.017 200.17);
  --muted-foreground: oklch(0.749 0.024 200.526);
  --popover: oklch(0.148 0.018 110.436);
  --popover-foreground: oklch(0.989 0.005 108.802);
  --card: oklch(0.165 0.021 110.745);
  --card-foreground: oklch(0.995 0.002 108.756);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.798 0.116 111.284);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.755 0.085 199.981);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.655 0.16 329.071);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.633 0.25 28.397);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.116 111.284);
  --chart-1: oklch(0.798 0.116 111.284);
  --chart-2: oklch(0.755 0.085 199.981);
  --chart-3: oklch(0.655 0.16 329.071);
  --chart-4: oklch(0.772 0.08 200);
  --chart-5: oklch(0.807 0.122 111.399);
}