Material Theme Deepforest for shadcn/ui

Material Theme Deepforest is a shadcn/ui theme built around a light green primary color (#c4edd5) with muted deep teal accents (#324e49). The light mode uses a teal-tinted background (#141f1d). Dark mode keeps the light green primary (#c4edd5) on a teal-tinted background (#141f1d).

Color palette

TokenLightDark
Background
#141f1dblack
#141f1dblack
Foreground
#c4edd5powderblue
#c4edd5powderblue
Card
#101917black
#101917black
Card foreground
#d8f3e3gainsboro
#d8f3e3gainsboro
Popover
#0e1614black
#0e1614black
Popover foreground
#ebf9f1honeydew
#ebf9f1honeydew
Primary
#c4edd5powderblue
#c4edd5powderblue
Primary foreground
#06140bblack
#06140bblack
Secondary
#2d533cdarkslategray
#2d533cdarkslategray
Secondary foreground
#cde4d6gainsboro
#cde4d6gainsboro
Muted
#222b29darkslategray
#222b29darkslategray
Muted foreground
#9bb0addarkgray
#9bb0addarkgray
Accent
#324e49darkslategray
#324e49darkslategray
Accent foreground
#d0e1degainsboro
#d0e1degainsboro
Destructive
#ed2607orangered
#ed2607orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#222b29darkslategray
#222b29darkslategray
Input
#283331darkslategray
#283331darkslategray
Ring
#c4edd5powderblue
#c4edd5powderblue

Contrast

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

Light mode
Text on background13.19:1AAA
Text on card15.22:1AAA
Primary button14.80:1AAA
Secondary button6.50:1AA
Muted text6.38:1AA
Accent6.70:1AA
Destructive4.28:1AA Large
Dark mode
Text on background13.19:1AAA
Text on card15.22:1AAA
Primary button14.80:1AAA
Secondary button6.50:1AA
Muted text6.38:1AA
Accent6.70:1AA
Destructive4.28:1AA Large

CSS variables

Paste this into your globals.css to use Material Theme Deepforest in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.228 0.016 182.227);
  --foreground: oklch(0.911 0.054 158.783);
  --muted: oklch(0.279 0.013 182.997);
  --muted-foreground: oklch(0.741 0.024 183.41);
  --popover: oklch(0.191 0.012 182.491);
  --popover-foreground: oklch(0.97 0.018 159.799);
  --card: oklch(0.203 0.014 182.39);
  --card-foreground: oklch(0.94 0.036 159.318);
  --border: oklch(0.279 0.013 182.997);
  --input: oklch(0.312 0.015 182.938);
  --primary: oklch(0.911 0.054 158.783);
  --primary-foreground: oklch(0.173 0.027 156.982);
  --secondary: oklch(0.406 0.059 156.25);
  --secondary-foreground: oklch(0.899 0.031 159.429);
  --accent: oklch(0.399 0.035 181.696);
  --accent-foreground: oklch(0.897 0.018 183.755);
  --destructive: oklch(0.607 0.233 31.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.054 158.783);
  --chart-1: oklch(0.911 0.054 158.783);
  --chart-2: oklch(0.406 0.059 156.25);
  --chart-3: oklch(0.399 0.035 181.696);
  --chart-4: oklch(0.439 0.065 156.172);
  --chart-5: oklch(0.913 0.057 158.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.228 0.016 182.227);
  --foreground: oklch(0.911 0.054 158.783);
  --muted: oklch(0.279 0.013 182.997);
  --muted-foreground: oklch(0.741 0.024 183.41);
  --popover: oklch(0.191 0.012 182.491);
  --popover-foreground: oklch(0.97 0.018 159.799);
  --card: oklch(0.203 0.014 182.39);
  --card-foreground: oklch(0.94 0.036 159.318);
  --border: oklch(0.279 0.013 182.997);
  --input: oklch(0.312 0.015 182.938);
  --primary: oklch(0.911 0.054 158.783);
  --primary-foreground: oklch(0.173 0.027 156.982);
  --secondary: oklch(0.406 0.059 156.25);
  --secondary-foreground: oklch(0.899 0.031 159.429);
  --accent: oklch(0.399 0.035 181.696);
  --accent-foreground: oklch(0.897 0.018 183.755);
  --destructive: oklch(0.607 0.233 31.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.054 158.783);
  --chart-1: oklch(0.911 0.054 158.783);
  --chart-2: oklch(0.406 0.059 156.25);
  --chart-3: oklch(0.399 0.035 181.696);
  --chart-4: oklch(0.439 0.065 156.172);
  --chart-5: oklch(0.913 0.057 158.702);
}