Marsh for shadcn/ui

Marsh is a shadcn/ui theme built around a green primary color (#739b3b) with muted green accents (#bac4ab). The light mode uses a neutral background (#fafcf7). Dark mode keeps the green primary (#739b3b) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fafcf7snow
#030302black
Foreground
#030401black
#ffffffwhite
Card
#f8fbf4whitesmoke
#050703black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fbf4whitesmoke
#050703black
Popover foreground
#000000black
#ffffffwhite
Primary
#739b3bolivedrab
#739b3bolivedrab
Primary foreground
#050703black
#050703black
Secondary
#cfd3calightgrey
#2f3527darkslategray
Secondary foreground
#363b30darkslategray
#c8d0besilver
Muted
#e6eae1gainsboro
#1a1e15black
Muted foreground
#444a3adarkslategray
#bec5b5silver
Accent
#bac4absilver
#3d492cdarkslategray
Accent foreground
#1f2419black
#d5dec9lightgrey
Destructive
#c60906firebrick
#ed0b07red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#739b3bolivedrab
#739b3bolivedrab

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card20.10:1AAA
Primary button6.26:1AA
Secondary button7.59:1AAA
Muted text7.51:1AAA
Accent8.71:1AAA
Destructive6.10:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.23:1AAA
Primary button6.26:1AA
Secondary button7.94:1AAA
Muted text9.57:1AAA
Accent6.88:1AA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 125.142);
  --foreground: oklch(0.103 0.019 124.104);
  --muted: oklch(0.931 0.011 125.216);
  --muted-foreground: oklch(0.399 0.027 126.021);
  --popover: oklch(0.984 0.01 125.192);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.01 125.192);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.64 0.133 128.744);
  --primary-foreground: oklch(0.125 0.015 124.401);
  --secondary: oklch(0.862 0.014 125.269);
  --secondary-foreground: oklch(0.344 0.019 125.832);
  --accent: oklch(0.805 0.035 125.66);
  --accent-foreground: oklch(0.251 0.02 126.187);
  --destructive: oklch(0.521 0.21 29.141);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.64 0.133 128.744);
  --chart-1: oklch(0.64 0.133 128.744);
  --chart-2: oklch(0.862 0.014 125.269);
  --chart-3: oklch(0.805 0.035 125.66);
  --chart-4: oklch(0.884 0.012 125.227);
  --chart-5: oklch(0.648 0.14 128.984);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 124.557);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.016 126.061);
  --muted-foreground: oklch(0.813 0.023 125.442);
  --popover: oklch(0.123 0.011 124.557);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.011 124.557);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.64 0.133 128.744);
  --primary-foreground: oklch(0.125 0.015 124.401);
  --secondary: oklch(0.319 0.027 126.243);
  --secondary-foreground: oklch(0.846 0.026 125.47);
  --accent: oklch(0.387 0.049 126.973);
  --accent-foreground: oklch(0.889 0.031 125.528);
  --destructive: oklch(0.597 0.242 29.16);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.64 0.133 128.744);
  --chart-1: oklch(0.64 0.133 128.744);
  --chart-2: oklch(0.319 0.027 126.243);
  --chart-3: oklch(0.387 0.049 126.973);
  --chart-4: oklch(0.352 0.03 126.283);
  --chart-5: oklch(0.648 0.14 128.984);
}