Spring Frost Pig for shadcn/ui

Spring Frost Pig is a shadcn/ui theme built around a vivid green primary color (#89ff4d) with near-white accents (#f1f1f1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#89ff4d) on a blue-tinted background (#181c1f).

Color palette

TokenLightDark
Background
#ffffffwhite
#181c1fblack
Foreground
#0d0d0dblack
#fafafasnow
Card
#ffffffwhite
#181c1fblack
Card foreground
#0d0d0dblack
#fafafasnow
Popover
#ffffffwhite
#181c1fblack
Popover foreground
#0d0d0dblack
#fafafasnow
Primary
#89ff4dgreenyellow
#89ff4dgreenyellow
Primary foreground
#282828darkslategray
#282828darkslategray
Secondary
#282828darkslategray
#ffffffwhite
Secondary foreground
#ffffffwhite
#0f0f0fblack
Muted
#e4e4e4gainsboro
#2f2f2fdarkslategray
Muted foreground
#737373dimgray
#7b7783gray
Accent
#f1f1f1whitesmoke
#2f2f2fdarkslategray
Accent foreground
#0d0d0dblack
#fafafasnow
Destructive
#ec3532crimson
#ec3532crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#dededegainsboro
#3d3d3ddarkslategray
Input
#d9d9d9gainsboro
#2d2c30darkslategray
Ring
#89ff4dgreenyellow
#89ff4dgreenyellow

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button11.56:1AAA
Secondary button14.66:1AAA
Muted text3.71:1AA Large
Accent17.25:1AAA
Destructive4.10:1AA Large
Dark mode
Text on background16.42:1AAA
Text on card16.42:1AAA
Primary button11.56:1AAA
Secondary button19.16:1AAA
Muted text3.06:1AA Large
Accent12.81:1AAA
Destructive4.09:1AA Large

CSS variables

Paste this into your globals.css to use Spring Frost Pig in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0 169.695);
  --muted: oklch(0.917 0 172.875);
  --muted-foreground: oklch(0.555 0 173.991);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0 169.695);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.158 0 169.695);
  --border: oklch(0.9 0 180);
  --input: oklch(0.885 0 180);
  --primary: oklch(0.897 0.236 137.148);
  --primary-foreground: oklch(0.277 0 172.875);
  --secondary: oklch(0.279 0 206.565);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.959 0 187.595);
  --accent-foreground: oklch(0.158 0 169.695);
  --destructive: oklch(0.617 0.219 27.199);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.897 0.236 137.148);
  --chart-1: oklch(0.897 0.236 137.148);
  --chart-2: oklch(0.279 0 206.565);
  --chart-3: oklch(0.959 0 187.595);
  --chart-4: oklch(0.309 0 192.529);
  --chart-5: oklch(0.903 0.241 137.24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.224 0.008 240.266);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.305 0 171.87);
  --muted-foreground: oklch(0.576 0.02 300.948);
  --popover: oklch(0.224 0.008 240.266);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.224 0.008 240.266);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.359 0 213.69);
  --input: oklch(0.296 0.007 297.423);
  --primary: oklch(0.897 0.236 137.148);
  --primary-foreground: oklch(0.277 0 172.875);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.168 0 180);
  --accent: oklch(0.305 0 171.87);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.617 0.219 27.163);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.897 0.236 137.148);
  --chart-1: oklch(0.897 0.236 137.148);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(0.305 0 171.87);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(0.903 0.241 137.24);
}