Forest grass for shadcn/ui

Forest grass is a shadcn/ui theme built around a teal primary color (#39ac73) with near-white accents (#eeeeee). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid deep green primary (#074623) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#222222black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#222222black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#222222black
#ffffffwhite
Primary
#39ac73mediumseagreen
#074623darkgreen
Primary foreground
#ffffffwhite
#2eea83springgreen
Secondary
#eeeeeewhitesmoke
#171717black
Secondary foreground
#222222black
#afb1b0darkgray
Muted
#eeeeeewhitesmoke
#1a1e1cblack
Muted foreground
#737373dimgray
#9bb5a7darkgray
Accent
#eeeeeewhitesmoke
#171717black
Accent foreground
#222222black
#afb1b0darkgray
Destructive
#bf4040brown
#eb4d47tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeeeeewhitesmoke
#1d2621black
Input
#eeeeeewhitesmoke
#1d2621black
Ring
#39ac73mediumseagreen
#074623darkgreen

Contrast

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

Light mode
Text on background15.90:1AAA
Text on card15.90:1AAA
Primary button2.86:1Fail
Secondary button13.71:1AAA
Muted text4.08:1AA Large
Accent13.71:1AAA
Destructive5.22:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.95:1AA
Secondary button8.30:1AAA
Muted text7.66:1AAA
Accent8.30:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.252 0 180);
  --muted: oklch(0.949 0 180);
  --muted-foreground: oklch(0.556 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.252 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.252 0 180);
  --border: oklch(0.949 0 180);
  --input: oklch(0.949 0 180);
  --primary: oklch(0.666 0.134 157.459);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.949 0 180);
  --secondary-foreground: oklch(0.252 0 180);
  --accent: oklch(0.949 0 180);
  --accent-foreground: oklch(0.252 0 180);
  --destructive: oklch(0.552 0.164 24.213);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.134 157.637);
  --chart-1: oklch(0.666 0.134 157.459);
  --chart-2: oklch(0.949 0 180);
  --chart-3: oklch(0.949 0 180);
  --chart-4: oklch(0.972 0 188.13);
  --chart-5: oklch(0.674 0.14 157.026);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.007 161.829);
  --muted-foreground: oklch(0.75 0.035 161.41);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.257 0.016 160.951);
  --input: oklch(0.257 0.016 160.951);
  --primary: oklch(0.346 0.084 152.943);
  --primary-foreground: oklch(0.827 0.203 152.758);
  --secondary: oklch(0.205 0.001 162.513);
  --secondary-foreground: oklch(0.758 0.002 162.548);
  --accent: oklch(0.205 0.001 162.513);
  --accent-foreground: oklch(0.758 0.002 162.548);
  --destructive: oklch(0.639 0.195 26.253);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.346 0.084 152.943);
  --chart-1: oklch(0.346 0.084 152.943);
  --chart-2: oklch(0.205 0.001 162.513);
  --chart-3: oklch(0.205 0.001 162.513);
  --chart-4: oklch(0.238 0.001 162.502);
  --chart-5: oklch(0.35 0.087 152.673);
}