Nettle Green Bird for shadcn/ui

Nettle Green Bird is a shadcn/ui theme built around a muted deep green primary color (#3b4d2e) with muted deep violet accents (#3f2e4d). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted deep green primary (#3b4d2e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#000000black
Foreground
#070c04black
#fcfdfcwhite
Card
#fafdf7mintcream
#000000black
Card foreground
#070c04black
#fcfdfcwhite
Popover
#fafdf7mintcream
#000000black
Popover foreground
#070c04black
#fcfdfcwhite
Primary
#3b4d2edarkslategray
#3b4d2edarkslategray
Primary foreground
#d5e0cclightgrey
#d5e0cclightgrey
Secondary
#3f2e4ddarkslategray
#3f2e4ddarkslategray
Secondary foreground
#d8cce0thistle
#d8cce0thistle
Muted
#f1eaf6whitesmoke
#100915black
Muted foreground
#48414edarkslategray
#b8b1besilver
Accent
#3f2e4ddarkslategray
#3f2e4ddarkslategray
Accent foreground
#d8cce0thistle
#d8cce0thistle
Destructive
#ae220ffirebrick
#ec3a22orangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e8eae6linen
#1c1f19black
Input
#e8eae6linen
#1c1f19black
Ring
#3b4d2edarkslategray
#3b4d2edarkslategray

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button6.75:1AA
Secondary button7.98:1AAA
Muted text8.29:1AAA
Accent7.98:1AAA
Destructive6.34:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.75:1AA
Secondary button7.98:1AAA
Muted text9.38:1AAA
Accent7.98:1AAA
Destructive4.04:1AA Large

CSS variables

Paste this into your globals.css to use Nettle Green Bird in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 131.152);
  --foreground: oklch(0.144 0.021 129.956);
  --muted: oklch(0.945 0.018 310.92);
  --muted-foreground: oklch(0.387 0.023 310.561);
  --popover: oklch(0.989 0.008 131.152);
  --popover-foreground: oklch(0.144 0.021 129.956);
  --card: oklch(0.989 0.008 131.152);
  --card-foreground: oklch(0.144 0.021 129.956);
  --border: oklch(0.935 0.007 131.147);
  --input: oklch(0.935 0.007 131.147);
  --primary: oklch(0.395 0.054 132.439);
  --primary-foreground: oklch(0.894 0.03 131.384);
  --secondary: oklch(0.334 0.057 309.563);
  --secondary-foreground: oklch(0.861 0.03 310.777);
  --accent: oklch(0.334 0.057 309.563);
  --accent-foreground: oklch(0.861 0.03 310.777);
  --destructive: oklch(0.487 0.178 31.018);
  --destructive-foreground: oklch(0.971 0.012 26.528);
  --ring: oklch(0.395 0.054 132.439);
  --chart-1: oklch(0.395 0.054 132.439);
  --chart-2: oklch(0.334 0.057 309.563);
  --chart-3: oklch(0.334 0.057 309.563);
  --chart-4: oklch(0.361 0.063 309.526);
  --chart-5: oklch(0.399 0.06 132.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 131.103);
  --muted: oklch(0.157 0.027 309.544);
  --muted-foreground: oklch(0.771 0.02 310.862);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 131.103);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.002 131.103);
  --border: oklch(0.233 0.012 131.53);
  --input: oklch(0.233 0.012 131.53);
  --primary: oklch(0.395 0.054 132.439);
  --primary-foreground: oklch(0.894 0.03 131.384);
  --secondary: oklch(0.334 0.057 309.563);
  --secondary-foreground: oklch(0.861 0.03 310.777);
  --accent: oklch(0.334 0.057 309.563);
  --accent-foreground: oklch(0.861 0.03 310.777);
  --destructive: oklch(0.619 0.217 31.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.395 0.054 132.439);
  --chart-1: oklch(0.395 0.054 132.439);
  --chart-2: oklch(0.334 0.057 309.563);
  --chart-3: oklch(0.334 0.057 309.563);
  --chart-4: oklch(0.361 0.063 309.526);
  --chart-5: oklch(0.399 0.06 132.606);
}