Menacing for shadcn/ui

Menacing is a shadcn/ui theme built around a green primary color (#64c431) with violet accents (#9031c4). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#64c431) on a green-tinted background (#070a05).

Color palette

TokenLightDark
Background
#fcfefbwhite
#070a05black
Foreground
#081103black
#ffffffwhite
Card
#f9fdf7mintcream
#090d07black
Card foreground
#060d02black
#ffffffwhite
Popover
#fcfefbwhite
#070a05black
Popover foreground
#081103black
#ffffffwhite
Primary
#64c431limegreen
#64c431limegreen
Primary foreground
#112108black
#112108black
Secondary
#9031c4darkorchid
#9031c4darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae2eelavender
#19111dblack
Muted foreground
#5d4e65dimgray
#a99ab1darkgray
Accent
#9031c4darkorchid
#9031c4darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d92a02orangered
#fd3d12orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#64c431limegreen
#64c431limegreen

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card19.14:1AAA
Primary button7.60:1AAA
Secondary button6.12:1AA
Muted text6.06:1AA
Accent6.12:1AA
Destructive4.90:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.55:1AAA
Primary button7.60:1AAA
Secondary button6.12:1AA
Muted text6.97:1AA
Accent6.12:1AA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 134.245);
  --foreground: oklch(0.165 0.035 133.449);
  --muted: oklch(0.923 0.017 314.116);
  --muted-foreground: oklch(0.447 0.042 313.705);
  --popover: oklch(0.995 0.004 134.245);
  --popover-foreground: oklch(0.165 0.035 133.449);
  --card: oklch(0.989 0.009 134.27);
  --card-foreground: oklch(0.147 0.03 132.566);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.733 0.2 137.099);
  --primary-foreground: oklch(0.225 0.049 135.892);
  --secondary: oklch(0.523 0.218 310.526);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.523 0.218 310.526);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.572 0.213 32.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.2 137.099);
  --chart-1: oklch(0.733 0.2 137.099);
  --chart-2: oklch(0.523 0.218 310.526);
  --chart-3: oklch(0.523 0.218 310.526);
  --chart-4: oklch(0.546 0.223 310.718);
  --chart-5: oklch(0.742 0.207 137.278);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.013 133.358);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.194 0.025 313.491);
  --muted-foreground: oklch(0.707 0.037 313.93);
  --popover: oklch(0.139 0.013 133.358);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.015 133.925);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.733 0.2 137.099);
  --primary-foreground: oklch(0.225 0.049 135.892);
  --secondary: oklch(0.523 0.218 310.526);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.523 0.218 310.526);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.65 0.232 33.029);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.2 137.099);
  --chart-1: oklch(0.733 0.2 137.099);
  --chart-2: oklch(0.523 0.218 310.526);
  --chart-3: oklch(0.523 0.218 310.526);
  --chart-4: oklch(0.546 0.223 310.718);
  --chart-5: oklch(0.742 0.207 137.278);
}