Spearmints Ptarmigan for shadcn/ui

Spearmints Ptarmigan is a shadcn/ui theme built around a light green primary color (#b9dfc5) with light purple accents (#dfb9d3). The light mode uses a neutral background (#fbfefc). Dark mode keeps the light green primary (#b9dfc5) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fbfefcwhite
#010402black
Foreground
#020804black
#f8fbf9mintcream
Card
#f7fdf9mintcream
#020804black
Card foreground
#010402black
#fcfdfcwhite
Popover
#f7fdf9mintcream
#020804black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#b9dfc5lightgrey
#b9dfc5lightgrey
Primary foreground
#20462cdarkslategray
#20462cdarkslategray
Secondary
#dfb9d3thistle
#dfb9d3thistle
Secondary foreground
#46203adarkslategray
#46203adarkslategray
Muted
#efebeewhitesmoke
#141013black
Muted foreground
#423d41darkslategray
#c2bdc0silver
Accent
#dfb9d3thistle
#dfb9d3thistle
Accent foreground
#46203adarkslategray
#46203adarkslategray
Destructive
#910f08darkred
#e9170cred
Destructive foreground
#fcd1cfpink
#ffffffwhite
Border
#ebefecwhitesmoke
#202722black
Input
#ebefecwhitesmoke
#202722black
Ring
#b9dfc5lightgrey
#b9dfc5lightgrey

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.96:1AAA
Primary button7.32:1AAA
Secondary button7.85:1AAA
Muted text9.02:1AAA
Accent7.85:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.81:1AAA
Primary button7.32:1AAA
Secondary button7.85:1AAA
Muted text10.18:1AAA
Accent7.85:1AAA
Destructive4.58:1AA

CSS variables

Paste this into your globals.css to use Spearmints Ptarmigan in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 156.476);
  --foreground: oklch(0.123 0.019 156.139);
  --muted: oklch(0.945 0.005 336.663);
  --muted-foreground: oklch(0.367 0.009 337.035);
  --popover: oklch(0.988 0.008 156.391);
  --popover-foreground: oklch(0.098 0.015 156.139);
  --card: oklch(0.988 0.008 156.391);
  --card-foreground: oklch(0.098 0.015 156.139);
  --border: oklch(0.949 0.005 156.456);
  --input: oklch(0.949 0.005 156.456);
  --primary: oklch(0.87 0.055 155.258);
  --primary-foreground: oklch(0.359 0.064 152.228);
  --secondary: oklch(0.826 0.056 337.839);
  --secondary-foreground: oklch(0.307 0.07 340.707);
  --accent: oklch(0.826 0.056 337.839);
  --accent-foreground: oklch(0.307 0.07 340.707);
  --destructive: oklch(0.419 0.163 29.407);
  --destructive-foreground: oklch(0.897 0.049 21.655);
  --ring: oklch(0.87 0.055 155.258);
  --chart-1: oklch(0.87 0.055 155.258);
  --chart-2: oklch(0.826 0.056 337.839);
  --chart-3: oklch(0.826 0.056 337.839);
  --chart-4: oklch(0.852 0.048 337.612);
  --chart-5: oklch(0.872 0.059 155.155);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.015 156.152);
  --foreground: oklch(0.986 0.004 156.481);
  --muted: oklch(0.179 0.008 337.369);
  --muted-foreground: oklch(0.803 0.007 336.74);
  --popover: oklch(0.123 0.018 156.152);
  --popover-foreground: oklch(0.993 0.002 156.521);
  --card: oklch(0.123 0.018 156.152);
  --card-foreground: oklch(0.993 0.002 156.521);
  --border: oklch(0.265 0.014 155.509);
  --input: oklch(0.265 0.014 155.509);
  --primary: oklch(0.87 0.055 155.258);
  --primary-foreground: oklch(0.359 0.064 152.228);
  --secondary: oklch(0.826 0.056 337.839);
  --secondary-foreground: oklch(0.307 0.07 340.707);
  --accent: oklch(0.826 0.056 337.839);
  --accent-foreground: oklch(0.307 0.07 340.707);
  --destructive: oklch(0.592 0.234 29.481);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.87 0.055 155.258);
  --chart-1: oklch(0.87 0.055 155.258);
  --chart-2: oklch(0.826 0.056 337.839);
  --chart-3: oklch(0.826 0.056 337.839);
  --chart-4: oklch(0.852 0.048 337.612);
  --chart-5: oklch(0.872 0.059 155.155);
}