green for shadcn/ui

green is a shadcn/ui theme built around a light green primary color (#dfe9c4) with muted light green accents (#e7e8e3). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the light green primary (#dfe9c4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbf8snow
#000000black
Foreground
#070802black
#fbfcf8snow
Card
#f9faf5whitesmoke
#030303black
Card foreground
#030401black
#fdfdfcwhite
Popover
#f9faf5whitesmoke
#030303black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#dfe9c4gainsboro
#dfe9c4gainsboro
Primary foreground
#4b5922darkolivegreen
#4b5922darkolivegreen
Secondary
#e7e8e3gainsboro
#1b1c17black
Secondary foreground
#515544darkolivegreen
#b6baabdarkgray
Muted
#e7ecdabeige
#212513black
Muted foreground
#6c725adimgray
#9fa58ddarkseagreen
Accent
#e7e8e3gainsboro
#1b1c17black
Accent foreground
#515544darkolivegreen
#b6baabdarkgray
Destructive
#9e0300darkred
#f00400red
Destructive foreground
#ffd2d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfe9c4gainsboro
#dfe9c4gainsboro

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.54:1AAA
Primary button6.01:1AA
Secondary button6.24:1AA
Muted text4.15:1AA Large
Accent6.24:1AA
Destructive6.23:1AA
Dark mode
Text on background20.38:1AAA
Text on card20.31:1AAA
Primary button6.01:1AA
Secondary button8.65:1AAA
Muted text6.16:1AA
Accent8.65:1AAA
Destructive4.45: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.988 0.004 117.901);
  --foreground: oklch(0.129 0.019 118.024);
  --muted: oklch(0.935 0.024 118.286);
  --muted-foreground: oklch(0.541 0.037 119.067);
  --popover: oklch(0.982 0.006 117.94);
  --popover-foreground: oklch(0.102 0.015 118.024);
  --card: oklch(0.982 0.006 117.94);
  --card-foreground: oklch(0.102 0.015 118.024);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.916 0.05 118.789);
  --primary-foreground: oklch(0.438 0.081 121.568);
  --secondary: oklch(0.929 0.008 117.97);
  --secondary-foreground: oklch(0.44 0.027 118.929);
  --accent: oklch(0.929 0.008 117.97);
  --accent-foreground: oklch(0.44 0.027 118.929);
  --destructive: oklch(0.44 0.179 29.468);
  --destructive-foreground: oklch(0.902 0.051 19.282);
  --ring: oklch(0.916 0.05 118.789);
  --chart-1: oklch(0.916 0.05 118.789);
  --chart-2: oklch(0.929 0.008 117.97);
  --chart-3: oklch(0.929 0.008 117.97);
  --chart-4: oklch(0.951 0.005 117.924);
  --chart-5: oklch(0.919 0.053 118.849);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.005 117.91);
  --muted: oklch(0.254 0.032 120.172);
  --muted-foreground: oklch(0.711 0.035 118.708);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 117.867);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 117.867);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.916 0.05 118.789);
  --primary-foreground: oklch(0.438 0.081 121.568);
  --secondary: oklch(0.223 0.01 118.607);
  --secondary-foreground: oklch(0.782 0.022 118.316);
  --accent: oklch(0.223 0.01 118.607);
  --accent-foreground: oklch(0.782 0.022 118.316);
  --destructive: oklch(0.6 0.245 29.374);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.916 0.05 118.789);
  --chart-1: oklch(0.916 0.05 118.789);
  --chart-2: oklch(0.223 0.01 118.607);
  --chart-3: oklch(0.223 0.01 118.607);
  --chart-4: oklch(0.258 0.012 118.673);
  --chart-5: oklch(0.919 0.053 118.849);
}