modern tea snow for shadcn/ui

modern tea snow is a shadcn/ui theme built around a light green primary color (#c2f1b9) with light green accents (#d8f7d2). The light mode uses a neutral background (#fefefe). Dark mode switches to a vivid green primary (#00eb6a) on a blue-tinted background (#242c38).

Color palette

TokenLightDark
Background
#fefefewhite
#242c38darkslategray
Foreground
#0c150ablack
#d7d9ddgainsboro
Card
#ffffffwhite
#1e2531darkslategray
Card foreground
#222222black
#c4c6ccsilver
Popover
#fefefewhite
#1e2531darkslategray
Popover foreground
#222222black
#c3c3c3silver
Primary
#c2f1b9lightgrey
#00eb6aspringgreen
Primary foreground
#222222black
#000000black
Secondary
#f1f1f1whitesmoke
#2f3742darkslategray
Secondary foreground
#222222black
#afafafdarkgray
Muted
#f6f6f6whitesmoke
#1e2531darkslategray
Muted foreground
#797979gray
#808181gray
Accent
#d8f7d2gainsboro
#29323fdarkslategray
Accent foreground
#393b39darkslategray
#20c057mediumseagreen
Destructive
#ffc3c3pink
#c60000firebrick
Destructive foreground
#1f1f1fblack
#ffffffwhite
Border
#eeeeeewhitesmoke
#1e252fdarkslategray
Input
#e8e8e8lavender
#1e2531darkslategray
Ring
#39ac73mediumseagreen
#074623darkgreen

Contrast

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

Light mode
Text on background18.47:1AAA
Text on card15.90:1AAA
Primary button12.57:1AAA
Secondary button14.08:1AAA
Muted text4.01:1AA Large
Accent9.74:1AAA
Destructive10.89:1AAA
Dark mode
Text on background9.95:1AAA
Text on card9.01:1AAA
Primary button13.13:1AAA
Secondary button5.49:1AA
Muted text3.94:1AA Large
Accent5.39:1AA
Destructive6.16:1AA

CSS variables

Paste this into your globals.css to use modern tea snow in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.997 0 180);
  --foreground: oklch(0.183 0.026 139.954);
  --muted: oklch(0.972 0 180);
  --muted-foreground: oklch(0.575 0 174.806);
  --popover: oklch(0.997 0 180);
  --popover-foreground: oklch(0.252 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.252 0 180);
  --border: oklch(0.949 0 180);
  --input: oklch(0.931 0 195.945);
  --primary: oklch(0.911 0.09 140.638);
  --primary-foreground: oklch(0.252 0 180);
  --secondary: oklch(0.958 0 180);
  --secondary-foreground: oklch(0.252 0 180);
  --accent: oklch(0.943 0.059 140.615);
  --accent-foreground: oklch(0.35 0.003 141.269);
  --destructive: oklch(0.872 0.069 18.556);
  --destructive-foreground: oklch(0.241 0 158.199);
  --ring: oklch(0.665 0.134 157.637);
  --chart-1: oklch(0.911 0.09 140.638);
  --chart-2: oklch(0.958 0 180);
  --chart-3: oklch(0.943 0.059 140.615);
  --chart-4: oklch(0.981 0 168.69);
  --chart-5: oklch(0.913 0.094 140.631);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.291 0.025 258.352);
  --foreground: oklch(0.884 0.006 264.529);
  --muted: oklch(0.263 0.025 261.091);
  --muted-foreground: oklch(0.602 0.001 259.407);
  --popover: oklch(0.263 0.025 261.091);
  --popover-foreground: oklch(0.817 0 164.055);
  --card: oklch(0.263 0.025 261.091);
  --card-foreground: oklch(0.827 0.008 264.474);
  --border: oklch(0.261 0.023 261.124);
  --input: oklch(0.263 0.025 261.091);
  --primary: oklch(0.822 0.23 149.302);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.333 0.023 258.365);
  --secondary-foreground: oklch(0.753 0 180);
  --accent: oklch(0.314 0.027 258.351);
  --accent-foreground: oklch(0.708 0.192 148.773);
  --destructive: oklch(0.519 0.213 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.085 152.724);
  --chart-1: oklch(0.822 0.23 149.302);
  --chart-2: oklch(0.333 0.023 258.365);
  --chart-3: oklch(0.314 0.027 258.351);
  --chart-4: oklch(0.362 0.026 258.364);
  --chart-5: oklch(0.831 0.235 149.048);
}