green for shadcn/ui

green is a shadcn/ui theme built around a green primary color (#a7d129) with muted deep green accents (#293d2d). The light mode uses a green-tinted background (#0a0f0b). Dark mode keeps the green primary (#a7d129) on a green-tinted background (#0a0f0b).

Color palette

TokenLightDark
Background
#0a0f0bblack
#0a0f0bblack
Foreground
#f0ffffazure
#f0ffffazure
Card
#060907black
#060907black
Card foreground
#ffffffwhite
#ffffffwhite
Popover
#040604black
#040604black
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#a7d129yellowgreen
#a7d129yellowgreen
Primary foreground
#1f2608black
#1f2608black
Secondary
#49532ddarkolivegreen
#49532ddarkolivegreen
Secondary foreground
#dee4cdgainsboro
#dee4cdgainsboro
Muted
#222b23darkslategray
#222b23darkslategray
Muted foreground
#9bb09fdarkgray
#9bb09fdarkgray
Accent
#293d2ddarkslategray
#293d2ddarkslategray
Accent foreground
#c2d6c6lightgrey
#c2d6c6lightgrey
Destructive
#f13413orangered
#f13413orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#171c18black
#171c18black
Input
#1e241fblack
#1e241fblack
Ring
#a7d129yellowgreen
#a7d129yellowgreen

Contrast

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

Light mode
Text on background18.79:1AAA
Text on card19.98:1AAA
Primary button8.78:1AAA
Secondary button6.29:1AA
Muted text6.34:1AA
Accent7.61:1AAA
Destructive3.99:1AA Large
Dark mode
Text on background18.79:1AAA
Text on card19.98:1AAA
Primary button8.78:1AAA
Secondary button6.29:1AA
Muted text6.34:1AA
Accent7.61:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.163 0.012 150.856);
  --foreground: oklch(0.989 0.016 196.897);
  --muted: oklch(0.277 0.019 150.953);
  --muted-foreground: oklch(0.737 0.034 151.293);
  --popover: oklch(0.118 0.008 151.694);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.009 151.694);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.22 0.011 151.233);
  --input: oklch(0.254 0.014 151.164);
  --primary: oklch(0.801 0.186 123.545);
  --primary-foreground: oklch(0.254 0.051 121.957);
  --secondary: oklch(0.423 0.059 120.482);
  --secondary-foreground: oklch(0.909 0.031 118.434);
  --accent: oklch(0.338 0.039 150.128);
  --accent-foreground: oklch(0.857 0.031 151.446);
  --destructive: oklch(0.623 0.227 31.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.186 123.545);
  --chart-1: oklch(0.801 0.186 123.545);
  --chart-2: oklch(0.423 0.059 120.482);
  --chart-3: oklch(0.338 0.039 150.128);
  --chart-4: oklch(0.457 0.065 120.528);
  --chart-5: oklch(0.811 0.191 123.762);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.012 150.856);
  --foreground: oklch(0.989 0.016 196.897);
  --muted: oklch(0.277 0.019 150.953);
  --muted-foreground: oklch(0.737 0.034 151.293);
  --popover: oklch(0.118 0.008 151.694);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.009 151.694);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.22 0.011 151.233);
  --input: oklch(0.254 0.014 151.164);
  --primary: oklch(0.801 0.186 123.545);
  --primary-foreground: oklch(0.254 0.051 121.957);
  --secondary: oklch(0.423 0.059 120.482);
  --secondary-foreground: oklch(0.909 0.031 118.434);
  --accent: oklch(0.338 0.039 150.128);
  --accent-foreground: oklch(0.857 0.031 151.446);
  --destructive: oklch(0.623 0.227 31.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.186 123.545);
  --chart-1: oklch(0.801 0.186 123.545);
  --chart-2: oklch(0.423 0.059 120.482);
  --chart-3: oklch(0.338 0.039 150.128);
  --chart-4: oklch(0.457 0.065 120.528);
  --chart-5: oklch(0.811 0.191 123.762);
}