Constitutional Emerald City for shadcn/ui

Constitutional Emerald City is a shadcn/ui theme built around a muted green primary color (#6c815f) with muted green accents (#5f8164). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the muted green primary (#6c815f) on a green-tinted background (#090e07).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#090e07black
Foreground
#070c04black
#ffffffwhite
Card
#f9fdf7mintcream
#090e07black
Card foreground
#070c04black
#ffffffwhite
Popover
#f9fdf7mintcream
#090e07black
Popover foreground
#070c04black
#ffffffwhite
Primary
#6c815fdimgray
#6c815fdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7d815fdimgray
#7d815fdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f3ecwhitesmoke
#12130cblack
Muted foreground
#6a6c5adimgray
#a2a593darkgray
Accent
#5f8164dimgray
#5f8164dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#742907saddlebrown
#f26726chocolate
Destructive foreground
#fbc9b2peachpuff
#000000black
Border
#e8e9e7linen
#232523black
Input
#e8e9e7linen
#232523black
Ring
#6c815fdimgray
#6c815fdimgray

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button4.24:1AA Large
Secondary button4.05:1AA Large
Muted text4.82:1AA
Accent4.36:1AA Large
Destructive6.83:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button4.24:1AA Large
Secondary button4.05:1AA Large
Muted text7.42:1AAA
Accent4.36:1AA Large
Destructive6.74:1AA

CSS variables

Paste this into your globals.css to use Constitutional Emerald City in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 133.657);
  --foreground: oklch(0.143 0.022 132.315);
  --muted: oklch(0.962 0.009 112.726);
  --muted-foreground: oklch(0.525 0.027 113.511);
  --popover: oklch(0.989 0.008 133.657);
  --popover-foreground: oklch(0.143 0.022 132.315);
  --card: oklch(0.989 0.008 133.657);
  --card-foreground: oklch(0.143 0.022 132.315);
  --border: oklch(0.932 0.002 133.62);
  --input: oklch(0.932 0.002 133.62);
  --primary: oklch(0.577 0.056 134.262);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.59 0.049 114.092);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.059 148.311);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.388 0.113 41.057);
  --destructive-foreground: oklch(0.873 0.065 46.156);
  --ring: oklch(0.577 0.056 134.262);
  --chart-1: oklch(0.577 0.056 134.262);
  --chart-2: oklch(0.59 0.049 114.092);
  --chart-3: oklch(0.569 0.059 148.311);
  --chart-4: oklch(0.619 0.052 114.101);
  --chart-5: oklch(0.584 0.067 134.398);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.017 133.309);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.014 113.955);
  --muted-foreground: oklch(0.713 0.025 113.209);
  --popover: oklch(0.155 0.017 133.309);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.017 133.309);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.261 0.004 133.711);
  --input: oklch(0.261 0.004 133.711);
  --primary: oklch(0.577 0.056 134.262);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.59 0.049 114.092);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.059 148.311);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.679 0.187 41.991);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.577 0.056 134.262);
  --chart-1: oklch(0.577 0.056 134.262);
  --chart-2: oklch(0.59 0.049 114.092);
  --chart-3: oklch(0.569 0.059 148.311);
  --chart-4: oklch(0.619 0.052 114.101);
  --chart-5: oklch(0.584 0.067 134.398);
}