Similar Green Emulsion for shadcn/ui

Similar Green Emulsion is a shadcn/ui theme built around a muted light green primary color (#dbebe2) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#dbebe2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f5faf7whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#f8fcfamintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f5faf7whitesmoke
Primary
#dbebe2gainsboro
#dbebe2gainsboro
Primary foreground
#101e17black
#101e17black
Secondary
#d9d9d9gainsboro
#121714black
Secondary foreground
#404040darkslategray
#a4b7addarkgray
Muted
#ebe0e0gainsboro
#141f19black
Muted foreground
#624b4bdimgray
#9db4a8darkgray
Accent
#d9d9d9gainsboro
#121714black
Accent foreground
#404040darkslategray
#a4b7addarkgray
Destructive
#ba4308firebrick
#f6661echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e3e8e5gainsboro
#202823darkslategray
Input
#e3e8e5gainsboro
#202823darkslategray
Ring
#dbebe2gainsboro
#dbebe2gainsboro

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button13.93:1AAA
Secondary button7.32:1AAA
Muted text6.18:1AA
Accent7.32:1AAA
Destructive5.38:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.98:1AAA
Primary button13.93:1AAA
Secondary button8.60:1AAA
Muted text7.67:1AAA
Accent8.60:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.012 17.381);
  --muted-foreground: oklch(0.438 0.031 18.391);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.927 0.007 163.247);
  --input: oklch(0.927 0.007 163.247);
  --primary: oklch(0.926 0.021 162.866);
  --primary-foreground: oklch(0.218 0.023 160.352);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.543 0.164 40.64);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.021 162.866);
  --chart-1: oklch(0.926 0.021 162.866);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.927 0.023 162.806);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.007 163.269);
  --muted: oklch(0.227 0.02 161.007);
  --muted-foreground: oklch(0.748 0.03 162.385);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.007 163.269);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.005 163.329);
  --border: oklch(0.266 0.014 162.09);
  --input: oklch(0.266 0.014 162.09);
  --primary: oklch(0.926 0.021 162.866);
  --primary-foreground: oklch(0.218 0.023 160.352);
  --secondary: oklch(0.198 0.009 162.225);
  --secondary-foreground: oklch(0.762 0.026 162.549);
  --accent: oklch(0.198 0.009 162.225);
  --accent-foreground: oklch(0.762 0.026 162.549);
  --destructive: oklch(0.682 0.192 42.395);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.926 0.021 162.866);
  --chart-1: oklch(0.926 0.021 162.866);
  --chart-2: oklch(0.198 0.009 162.225);
  --chart-3: oklch(0.198 0.009 162.225);
  --chart-4: oklch(0.233 0.012 162.072);
  --chart-5: oklch(0.927 0.023 162.806);
}