MInt Green for shadcn/ui

MInt Green is a shadcn/ui theme built around a vivid deep teal primary color (#05422c) with muted light teal accents (#e6ebe9). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid deep teal primary (#05422c) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040b09black
Foreground
#010403black
#ffffffwhite
Card
#f7fdfbmintcream
#060f0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfbmintcream
#060f0bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#05422cdarkgreen
#05422cdarkgreen
Primary foreground
#25efa5mediumspringgreen
#25efa5mediumspringgreen
Secondary
#e6ebe9lavender
#1a1f1dblack
Secondary foreground
#465851darkslategray
#aebcb7silver
Muted
#dbebe5gainsboro
#14241eblack
Muted foreground
#444645darkslategray
#b9bbbasilver
Accent
#e6ebe9lavender
#1a1f1dblack
Accent foreground
#465851darkslategray
#aebcb7silver
Destructive
#7b330asaddlebrown
#ec6313chocolate
Destructive foreground
#fad3bdpeachpuff
#000000black
Border
#e4e7e6gainsboro
#181b1ablack
Input
#e4e7e6gainsboro
#181b1ablack
Ring
#05422cdarkgreen
#05422cdarkgreen

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.37:1AAA
Primary button7.62:1AAA
Secondary button6.25:1AA
Muted text7.72:1AAA
Accent6.25:1AA
Destructive6.51:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.45:1AAA
Primary button7.62:1AAA
Secondary button8.52:1AAA
Muted text8.33:1AAA
Accent8.52:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 172.475);
  --foreground: oklch(0.1 0.014 172.883);
  --muted: oklch(0.927 0.02 171.948);
  --muted-foreground: oklch(0.391 0.002 172.426);
  --popover: oklch(0.989 0.007 172.373);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.007 172.373);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.926 0.004 172.443);
  --input: oklch(0.926 0.004 172.443);
  --primary: oklch(0.338 0.071 162.089);
  --primary-foreground: oklch(0.843 0.181 161.235);
  --secondary: oklch(0.934 0.006 172.39);
  --secondary-foreground: oklch(0.443 0.024 170.905);
  --accent: oklch(0.934 0.006 172.39);
  --accent-foreground: oklch(0.443 0.024 170.905);
  --destructive: oklch(0.415 0.111 45.193);
  --destructive-foreground: oklch(0.894 0.053 51.83);
  --ring: oklch(0.338 0.071 162.089);
  --chart-1: oklch(0.338 0.071 162.089);
  --chart-2: oklch(0.934 0.006 172.39);
  --chart-3: oklch(0.934 0.006 172.39);
  --chart-4: oklch(0.956 0.004 172.456);
  --chart-5: oklch(0.341 0.073 161.803);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 172.624);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.245 0.026 169.019);
  --muted-foreground: oklch(0.79 0.002 172.513);
  --popover: oklch(0.156 0.017 170.588);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.017 170.588);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.219 0.006 171.765);
  --input: oklch(0.219 0.006 171.765);
  --primary: oklch(0.338 0.071 162.089);
  --primary-foreground: oklch(0.843 0.181 161.235);
  --secondary: oklch(0.232 0.008 171.5);
  --secondary-foreground: oklch(0.783 0.016 171.963);
  --accent: oklch(0.232 0.008 171.5);
  --accent-foreground: oklch(0.783 0.016 171.963);
  --destructive: oklch(0.663 0.187 43.852);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.338 0.071 162.089);
  --chart-1: oklch(0.338 0.071 162.089);
  --chart-2: oklch(0.232 0.008 171.5);
  --chart-3: oklch(0.232 0.008 171.5);
  --chart-4: oklch(0.265 0.01 171.418);
  --chart-5: oklch(0.341 0.073 161.803);
}