Atomic Marsh Fern for shadcn/ui

Atomic Marsh Fern is a shadcn/ui theme built around a green primary color (#b2cb90) with green accents (#95cb90). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#b2cb90) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080c04black
#fdfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#060802black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#060802black
#ffffffwhite
Primary
#b2cb90darkseagreen
#b2cb90darkseagreen
Primary foreground
#161c0dblack
#161c0dblack
Secondary
#cbc690tan
#cbc690tan
Secondary foreground
#1c1b0dblack
#1c1b0dblack
Muted
#e4e3d8gainsboro
#27261bblack
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#95cb90darkseagreen
#95cb90darkseagreen
Accent foreground
#0e1c0dblack
#0e1c0dblack
Destructive
#7a0e00maroon
#ff462etomato
Destructive foreground
#ffb7adlightpink
#ffffffwhite
Border
#ebede9linen
#1d1f19black
Input
#ebede9linen
#1d1f19black
Ring
#b2cb90darkseagreen
#b2cb90darkseagreen

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.69:1AAA
Primary button9.80:1AAA
Secondary button9.90:1AAA
Muted text4.79:1AA
Accent9.40:1AAA
Destructive6.65:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button9.80:1AAA
Secondary button9.90:1AAA
Muted text5.67:1AA
Accent9.40:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.021 124.517);
  --muted: oklch(0.913 0.015 102.472);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.018 124.29);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.018 124.29);
  --border: oklch(0.943 0.006 125.129);
  --input: oklch(0.943 0.006 125.129);
  --primary: oklch(0.808 0.083 126.561);
  --primary-foreground: oklch(0.214 0.029 127.079);
  --secondary: oklch(0.817 0.071 103.477);
  --secondary-foreground: oklch(0.217 0.024 103.752);
  --accent: oklch(0.789 0.099 142.534);
  --accent-foreground: oklch(0.208 0.034 142.353);
  --destructive: oklch(0.372 0.143 31.564);
  --destructive-foreground: oklch(0.844 0.086 27.442);
  --ring: oklch(0.808 0.083 126.561);
  --chart-1: oklch(0.808 0.083 126.561);
  --chart-2: oklch(0.817 0.071 103.477);
  --chart-3: oklch(0.789 0.099 142.534);
  --chart-4: oklch(0.834 0.065 103.357);
  --chart-5: oklch(0.814 0.09 126.681);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 125.078);
  --muted: oklch(0.267 0.019 103.294);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.234 0.011 125.711);
  --input: oklch(0.234 0.011 125.711);
  --primary: oklch(0.808 0.083 126.561);
  --primary-foreground: oklch(0.214 0.029 127.079);
  --secondary: oklch(0.817 0.071 103.477);
  --secondary-foreground: oklch(0.217 0.024 103.752);
  --accent: oklch(0.789 0.099 142.534);
  --accent-foreground: oklch(0.208 0.034 142.353);
  --destructive: oklch(0.663 0.224 30.968);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.083 126.561);
  --chart-1: oklch(0.808 0.083 126.561);
  --chart-2: oklch(0.817 0.071 103.477);
  --chart-3: oklch(0.789 0.099 142.534);
  --chart-4: oklch(0.834 0.065 103.357);
  --chart-5: oklch(0.814 0.09 126.681);
}