Spiritual Clear Green for shadcn/ui

Spiritual Clear Green is a shadcn/ui theme built around a vivid deep green primary color (#0d7228) with muted green accents (#b4cbba). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#0d7228) on a neutral background (#020402).

Color palette

TokenLightDark
Background
#ffffffwhite
#020402black
Foreground
#010903black
#f9fbf9mintcream
Card
#ffffffwhite
#020402black
Card foreground
#010903black
#f9fbf9mintcream
Popover
#ffffffwhite
#020402black
Popover foreground
#010903black
#f9fbf9mintcream
Primary
#0d7228forestgreen
#0d7228forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c9d4cclightgrey
#141514black
Secondary foreground
#303b33darkslategray
#aab1acdarkgray
Muted
#f1f3f2whitesmoke
#0c0e0cblack
Muted foreground
#3b4f40darkslategray
#b0c4b5silver
Accent
#b4cbbasilver
#273029darkslategray
Accent foreground
#1f2d23darkslategray
#becac2silver
Destructive
#ce2812firebrick
#e62c14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8ede9linen
#1a231dblack
Input
#e8ede9linen
#1a231dblack
Ring
#0d7228forestgreen
#0d7228forestgreen

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button6.06:1AA
Secondary button7.65:1AAA
Muted text7.94:1AAA
Accent8.34:1AAA
Destructive5.31:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button6.06:1AA
Secondary button8.35:1AAA
Muted text10.53:1AAA
Accent8.08:1AAA
Destructive4.43:1AA Large

CSS variables

Paste this into your globals.css to use Spiritual Clear Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.025 153.738);
  --muted: oklch(0.963 0.003 154.467);
  --muted-foreground: oklch(0.406 0.036 152.837);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.025 153.738);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.025 153.738);
  --border: oklch(0.942 0.008 154.373);
  --input: oklch(0.942 0.008 154.373);
  --primary: oklch(0.483 0.139 146.624);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.859 0.016 154.201);
  --secondary-foreground: oklch(0.34 0.022 153.346);
  --accent: oklch(0.819 0.034 153.771);
  --accent-foreground: oklch(0.282 0.026 152.741);
  --destructive: oklch(0.552 0.204 30.994);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.139 146.624);
  --chart-1: oklch(0.483 0.139 146.624);
  --chart-2: oklch(0.859 0.016 154.201);
  --chart-3: oklch(0.819 0.034 153.771);
  --chart-4: oklch(0.882 0.013 154.262);
  --chart-5: oklch(0.488 0.143 146.398);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.011 154.085);
  --foreground: oklch(0.986 0.004 154.457);
  --muted: oklch(0.16 0.005 153.948);
  --muted-foreground: oklch(0.802 0.031 153.829);
  --popover: oklch(0.096 0.011 154.085);
  --popover-foreground: oklch(0.986 0.004 154.457);
  --card: oklch(0.096 0.011 154.085);
  --card-foreground: oklch(0.986 0.004 154.457);
  --border: oklch(0.245 0.017 153.226);
  --input: oklch(0.245 0.017 153.226);
  --primary: oklch(0.483 0.139 146.624);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.194 0.003 154.207);
  --secondary-foreground: oklch(0.753 0.01 154.292);
  --accent: oklch(0.297 0.017 153.504);
  --accent-foreground: oklch(0.828 0.017 154.151);
  --destructive: oklch(0.598 0.222 30.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.139 146.624);
  --chart-1: oklch(0.483 0.139 146.624);
  --chart-2: oklch(0.194 0.003 154.207);
  --chart-3: oklch(0.297 0.017 153.504);
  --chart-4: oklch(0.228 0.005 154.167);
  --chart-5: oklch(0.488 0.143 146.398);
}