light theme green for shadcn/ui

light theme green is a shadcn/ui theme built around a teal primary color (#30a46c) with muted light teal accents (#eef1f0). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the teal primary (#30a46c) on a neutral background (#101211).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#101211black
Foreground
#1a211eblack
#eceeedwhitesmoke
Card
#fbfdfcwhite
#171918black
Card foreground
#1a211eblack
#eceeedwhitesmoke
Popover
#fbfdfcwhite
#171918black
Popover foreground
#1a211eblack
#eceeedwhitesmoke
Primary
#30a46cmediumseagreen
#30a46cmediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ffc53dsandybrown
#ffc53dsandybrown
Secondary foreground
#4f3422darkolivegreen
#16120cblack
Muted
#f7f9f8whitesmoke
#171918black
Muted foreground
#5f6563dimgray
#adb5b2darkgray
Accent
#eef1f0whitesmoke
#202221black
Accent foreground
#1a211eblack
#eceeedwhitesmoke
Destructive
#e5484dindianred
#e5484dindianred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#d7dad9gainsboro
#373b39darkslategray
Input
#d7dad9gainsboro
#373b39darkslategray
Ring
#30a46cmediumseagreen
#30a46cmediumseagreen

Contrast

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

Light mode
Text on background16.05:1AAA
Text on card16.05:1AAA
Primary button3.15:1AA Large
Secondary button7.20:1AAA
Muted text5.62:1AA
Accent14.43:1AAA
Destructive3.91:1AA Large
Dark mode
Text on background16.13:1AAA
Text on card15.15:1AAA
Primary button3.15:1AA Large
Secondary button11.81:1AAA
Muted text8.43:1AAA
Accent13.73:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 165.078);
  --foreground: oklch(0.24 0.012 167.561);
  --muted: oklch(0.98 0.002 165.077);
  --muted-foreground: oklch(0.501 0.008 174.111);
  --popover: oklch(0.992 0.002 165.078);
  --popover-foreground: oklch(0.24 0.012 167.561);
  --card: oklch(0.992 0.002 165.078);
  --card-foreground: oklch(0.24 0.012 167.561);
  --border: oklch(0.886 0.004 174.471);
  --input: oklch(0.886 0.004 174.471);
  --primary: oklch(0.641 0.133 157.675);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.157 84.126);
  --secondary-foreground: oklch(0.352 0.049 54.169);
  --accent: oklch(0.956 0.003 174.482);
  --accent-foreground: oklch(0.24 0.012 167.561);
  --destructive: oklch(0.626 0.193 23.027);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.133 157.675);
  --chart-1: oklch(0.641 0.133 157.675);
  --chart-2: oklch(0.854 0.157 84.126);
  --chart-3: oklch(0.956 0.003 174.482);
  --chart-4: oklch(0.864 0.15 85.072);
  --chart-5: oklch(0.648 0.138 157.248);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.18 0.004 164.58);
  --foreground: oklch(0.947 0.003 165.074);
  --muted: oklch(0.211 0.004 164.684);
  --muted-foreground: oklch(0.766 0.01 171.704);
  --popover: oklch(0.211 0.004 164.684);
  --popover-foreground: oklch(0.947 0.003 165.074);
  --card: oklch(0.211 0.004 164.684);
  --card-foreground: oklch(0.947 0.003 165.074);
  --border: oklch(0.348 0.006 164.651);
  --input: oklch(0.348 0.006 164.651);
  --primary: oklch(0.641 0.133 157.675);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.157 84.126);
  --secondary-foreground: oklch(0.185 0.013 77.796);
  --accent: oklch(0.249 0.003 164.772);
  --accent-foreground: oklch(0.947 0.003 165.074);
  --destructive: oklch(0.626 0.193 23.027);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.133 157.675);
  --chart-1: oklch(0.641 0.133 157.675);
  --chart-2: oklch(0.854 0.157 84.126);
  --chart-3: oklch(0.249 0.003 164.772);
  --chart-4: oklch(0.864 0.15 85.072);
  --chart-5: oklch(0.648 0.138 157.248);
}