Leadership for shadcn/ui

Leadership is a shadcn/ui theme built around a muted deep green primary color (#395643) with muted deep teal accents (#395651). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted deep green primary (#395643) on a green-tinted background (#030c06).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#030c06black
Foreground
#000000black
#fcfdfcwhite
Card
#f8fcf9mintcream
#041008black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfdfcwhite
#030c06black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#395643darkslategray
#395643darkslategray
Primary foreground
#dae7degainsboro
#dae7degainsboro
Secondary
#3e5639darkslategray
#3e5639darkslategray
Secondary foreground
#dce7dagainsboro
#dce7dagainsboro
Muted
#e0e8degainsboro
#192117black
Muted foreground
#4b554adarkslategray
#acb5aadarkgray
Accent
#395651darkslategray
#395651darkslategray
Accent foreground
#dae7e4gainsboro
#dae7e4gainsboro
Destructive
#702c05saddlebrown
#db570achocolate
Destructive foreground
#fbc9acnavajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#395643darkslategray
#395643darkslategray

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.25:1AAA
Primary button6.39:1AA
Secondary button6.37:1AA
Muted text6.20:1AA
Accent6.32:1AA
Destructive6.82:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.35:1AAA
Primary button6.39:1AA
Secondary button6.37:1AA
Muted text7.83:1AAA
Accent6.32:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 157.215);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.921 0.015 140.506);
  --muted-foreground: oklch(0.436 0.021 140.457);
  --popover: oklch(0.993 0.002 157.215);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 157.164);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.423 0.047 154.758);
  --primary-foreground: oklch(0.915 0.017 156.882);
  --secondary: oklch(0.424 0.054 140.359);
  --secondary-foreground: oklch(0.915 0.02 140.498);
  --accent: oklch(0.428 0.035 183.101);
  --accent-foreground: oklch(0.917 0.013 185.066);
  --destructive: oklch(0.386 0.106 44.715);
  --destructive-foreground: oklch(0.873 0.069 51.573);
  --ring: oklch(0.423 0.047 154.758);
  --chart-1: oklch(0.423 0.047 154.758);
  --chart-2: oklch(0.424 0.054 140.359);
  --chart-3: oklch(0.428 0.035 183.101);
  --chart-4: oklch(0.455 0.059 140.357);
  --chart-5: oklch(0.427 0.053 154.383);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.023 156.656);
  --foreground: oklch(0.993 0.002 157.219);
  --muted: oklch(0.236 0.021 140.4);
  --muted-foreground: oklch(0.764 0.019 140.494);
  --popover: oklch(0.142 0.023 156.656);
  --popover-foreground: oklch(0.993 0.002 157.219);
  --card: oklch(0.159 0.026 155.521);
  --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.423 0.047 154.758);
  --primary-foreground: oklch(0.915 0.017 156.882);
  --secondary: oklch(0.424 0.054 140.359);
  --secondary-foreground: oklch(0.915 0.02 140.498);
  --accent: oklch(0.428 0.035 183.101);
  --accent-foreground: oklch(0.917 0.013 185.066);
  --destructive: oklch(0.621 0.181 42.867);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.423 0.047 154.758);
  --chart-1: oklch(0.423 0.047 154.758);
  --chart-2: oklch(0.424 0.054 140.359);
  --chart-3: oklch(0.428 0.035 183.101);
  --chart-4: oklch(0.455 0.059 140.357);
  --chart-5: oklch(0.427 0.053 154.383);
}