Colors Green for shadcn/ui

Colors Green is a shadcn/ui theme built around a teal primary color (#369179) with muted light teal accents (#b9d4cd). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the teal primary (#369179) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#010403black
Foreground
#010403black
#f4faf9mintcream
Card
#f2fcfamintcream
#020806black
Card foreground
#000000black
#f8fcfbmintcream
Popover
#f7fdfbmintcream
#010403black
Popover foreground
#010403black
#f4faf9mintcream
Primary
#369179mediumseagreen
#369179mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5e2degainsboro
#141a18black
Secondary foreground
#364f48darkslategray
#a5bbb5darkgray
Muted
#dee7e5gainsboro
#18211eblack
Muted foreground
#394643darkslategray
#b9c6c2silver
Accent
#b9d4cdsilver
#213530darkslategray
Accent foreground
#233933darkslategray
#b7d2cbsilver
Destructive
#640402maroon
#fa130fred
Destructive foreground
#fd9d9blightsalmon
#ffffffwhite
Border
#eaebeblavender
#191a1ablack
Input
#eaebeblavender
#191a1ablack
Ring
#369179mediumseagreen
#369179mediumseagreen

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.12:1AAA
Primary button3.82:1AA Large
Secondary button6.65:1AA
Muted text7.85:1AAA
Accent7.86:1AAA
Destructive6.72:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.52:1AAA
Primary button3.82:1AA Large
Secondary button8.70:1AAA
Muted text9.39:1AAA
Accent8.06:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 178.572);
  --foreground: oklch(0.101 0.015 178.907);
  --muted: oklch(0.922 0.01 178.466);
  --muted-foreground: oklch(0.382 0.017 177.403);
  --popover: oklch(0.989 0.007 178.572);
  --popover-foreground: oklch(0.101 0.015 178.907);
  --card: oklch(0.984 0.011 178.464);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.939 0.001 178.755);
  --input: oklch(0.939 0.001 178.755);
  --primary: oklch(0.596 0.094 172.269);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.902 0.015 178.288);
  --secondary-foreground: oklch(0.404 0.033 176.175);
  --accent: oklch(0.849 0.03 177.714);
  --accent-foreground: oklch(0.324 0.03 175.738);
  --destructive: oklch(0.319 0.127 29.238);
  --destructive-foreground: oklch(0.792 0.116 21.03);
  --ring: oklch(0.596 0.094 172.269);
  --chart-1: oklch(0.596 0.094 172.269);
  --chart-2: oklch(0.902 0.015 178.288);
  --chart-3: oklch(0.849 0.03 177.714);
  --chart-4: oklch(0.923 0.012 178.406);
  --chart-5: oklch(0.603 0.099 171.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 178.88);
  --foreground: oklch(0.981 0.007 178.583);
  --muted: oklch(0.236 0.014 176.995);
  --muted-foreground: oklch(0.815 0.015 178.255);
  --popover: oklch(0.099 0.011 178.88);
  --popover-foreground: oklch(0.981 0.007 178.583);
  --card: oklch(0.124 0.014 178.88);
  --card-foreground: oklch(0.988 0.005 178.651);
  --border: oklch(0.217 0.002 178.563);
  --input: oklch(0.217 0.002 178.563);
  --primary: oklch(0.596 0.094 172.269);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.211 0.01 177.321);
  --secondary-foreground: oklch(0.774 0.026 177.797);
  --accent: oklch(0.311 0.027 175.9);
  --accent-foreground: oklch(0.841 0.031 177.699);
  --destructive: oklch(0.623 0.25 29.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.094 172.269);
  --chart-1: oklch(0.596 0.094 172.269);
  --chart-2: oklch(0.211 0.01 177.321);
  --chart-3: oklch(0.311 0.027 175.9);
  --chart-4: oklch(0.246 0.013 177.17);
  --chart-5: oklch(0.603 0.099 171.862);
}