Menacing for shadcn/ui

Menacing is a shadcn/ui theme built around a green primary color (#91b25c) with muted light green accents (#ebede8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#91b25c) on a green-tinted background (#0b0e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0e07black
Foreground
#0c1103black
#ffffffwhite
Card
#fcfcfcsnow
#0e1108black
Card foreground
#090d03black
#ffffffwhite
Popover
#ffffffwhite
#0b0e07black
Popover foreground
#0c1103black
#ffffffwhite
Primary
#91b25cdarkkhaki
#91b25cdarkkhaki
Primary foreground
#000000black
#000000black
Secondary
#ebede8linen
#32362bdarkslategray
Secondary foreground
#20231bblack
#cbd0c3lightgrey
Muted
#eaf1dfbeige
#19200eblack
Muted foreground
#5c5e5adimgray
#a4a5a1darkgray
Accent
#ebede8linen
#32362bdarkslategray
Accent foreground
#20231bblack
#cbd0c3lightgrey
Destructive
#b03407firebrick
#dc4109orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#91b25cdarkkhaki
#91b25cdarkkhaki

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.19:1AAA
Primary button8.75:1AAA
Secondary button13.54:1AAA
Muted text5.67:1AA
Accent13.54:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.04:1AAA
Primary button8.75:1AAA
Secondary button7.84:1AAA
Muted text6.74:1AA
Accent7.84:1AAA
Destructive4.35: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.167 0.03 124.857);
  --muted: oklch(0.949 0.025 124.039);
  --muted-foreground: oklch(0.478 0.006 123.827);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.03 124.857);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.149 0.026 123.388);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.72 0.12 126.474);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.944 0.007 123.755);
  --secondary-foreground: oklch(0.248 0.015 124.571);
  --accent: oklch(0.944 0.007 123.755);
  --accent-foreground: oklch(0.248 0.015 124.571);
  --destructive: oklch(0.509 0.167 36.708);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.72 0.12 126.474);
  --chart-1: oklch(0.72 0.12 126.474);
  --chart-2: oklch(0.944 0.007 123.755);
  --chart-3: oklch(0.944 0.007 123.755);
  --chart-4: oklch(0.965 0.005 123.71);
  --chart-5: oklch(0.729 0.128 126.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.015 124.377);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.034 126.095);
  --muted-foreground: oklch(0.72 0.005 123.752);
  --popover: oklch(0.156 0.015 124.377);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.171 0.018 125.159);
  --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.72 0.12 126.474);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.326 0.021 124.61);
  --secondary-foreground: oklch(0.85 0.018 123.96);
  --accent: oklch(0.326 0.021 124.61);
  --accent-foreground: oklch(0.85 0.018 123.96);
  --destructive: oklch(0.598 0.199 36.352);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.72 0.12 126.474);
  --chart-1: oklch(0.72 0.12 126.474);
  --chart-2: oklch(0.326 0.021 124.61);
  --chart-3: oklch(0.326 0.021 124.61);
  --chart-4: oklch(0.358 0.024 124.639);
  --chart-5: oklch(0.729 0.128 126.696);
}