Means for shadcn/ui

Means is a shadcn/ui theme built around a green primary color (#7c8a1e) with muted light green accents (#d4d5c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#7c8a1e) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#ffffffwhite
#070703black
Foreground
#0f1103black
#fbfbf9snow
Card
#fcfcfcsnow
#0a0b05black
Card foreground
#0b0d02black
#fdfdfcwhite
Popover
#ffffffwhite
#070703black
Popover foreground
#0f1103black
#fbfbf9snow
Primary
#7c8a1eolivedrab
#7c8a1eolivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d4d5c8lightgrey
#2e3022darkslategray
Secondary foreground
#3b3d2edarkslategray
#c9ccb7silver
Muted
#e4e8cfgainsboro
#2d3017darkslategray
Muted foreground
#4c4e3bdarkolivegreen
#c1c4b1silver
Accent
#d4d5c8lightgrey
#2e3022darkslategray
Accent foreground
#3b3d2edarkslategray
#c9ccb7silver
Destructive
#78190dmaroon
#e9412bchocolate
Destructive foreground
#f8c5bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7c8a1eolivedrab
#7c8a1eolivedrab

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.15:1AAA
Primary button3.81:1AA Large
Secondary button7.48:1AAA
Muted text6.80:1AA
Accent7.48:1AAA
Destructive7.05:1AAA
Dark mode
Text on background19.47:1AAA
Text on card19.44:1AAA
Primary button3.81:1AA Large
Secondary button8.22:1AAA
Muted text7.61:1AAA
Accent8.22:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.171 0.029 114.989);
  --muted: oklch(0.921 0.033 113.218);
  --muted-foreground: oklch(0.418 0.031 113.917);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.171 0.029 114.989);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.153 0.025 114.291);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.128 117.192);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.869 0.018 112.94);
  --secondary-foreground: oklch(0.354 0.025 113.861);
  --accent: oklch(0.869 0.018 112.94);
  --accent-foreground: oklch(0.354 0.025 113.861);
  --destructive: oklch(0.377 0.131 31.026);
  --destructive-foreground: oklch(0.867 0.059 27.049);
  --ring: oklch(0.602 0.128 117.192);
  --chart-1: oklch(0.602 0.128 117.192);
  --chart-2: oklch(0.869 0.018 112.94);
  --chart-3: oklch(0.869 0.018 112.94);
  --chart-4: oklch(0.89 0.015 112.869);
  --chart-5: oklch(0.609 0.131 117.342);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.013 113.343);
  --foreground: oklch(0.988 0.003 112.608);
  --muted: oklch(0.3 0.041 115.164);
  --muted-foreground: oklch(0.812 0.027 113.154);
  --popover: oklch(0.126 0.013 113.343);
  --popover-foreground: oklch(0.988 0.003 112.608);
  --card: oklch(0.144 0.015 113.392);
  --card-foreground: oklch(0.994 0.002 112.575);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.128 117.192);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.302 0.024 114.022);
  --secondary-foreground: oklch(0.838 0.028 113.176);
  --accent: oklch(0.302 0.024 114.022);
  --accent-foreground: oklch(0.838 0.028 113.176);
  --destructive: oklch(0.621 0.208 30.943);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.128 117.192);
  --chart-1: oklch(0.602 0.128 117.192);
  --chart-2: oklch(0.302 0.024 114.022);
  --chart-3: oklch(0.302 0.024 114.022);
  --chart-4: oklch(0.336 0.028 114.077);
  --chart-5: oklch(0.609 0.131 117.342);
}