Southern Diminishing Green for shadcn/ui

Southern Diminishing Green is a shadcn/ui theme built around a vivid deep green primary color (#023105) with vivid deep red accents (#310502). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the vivid deep green primary (#023105) on a neutral background (#020802).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#020802black
Foreground
#031604black
#f6f9f6whitesmoke
Card
#f2fcf3honeydew
#030c04black
Card foreground
#031203black
#f9fbf9mintcream
Popover
#f7fdf7mintcream
#020802black
Popover foreground
#031604black
#f6f9f6whitesmoke
Primary
#023105black
#023105black
Primary foreground
#0bf417lime
#0bf417lime
Secondary
#050231black
#050231black
Secondary foreground
#d1cefdlavender
#d1cefdlavender
Muted
#d1d0e7gainsboro
#19182fblack
Muted foreground
#585865dimgray
#9b9aa7darkgray
Accent
#310502black
#310502black
Accent foreground
#f8746dsalmon
#f8746dsalmon
Destructive
#c92c0dfirebrick
#f35d3ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#dce4ddgainsboro
#1d251dblack
Input
#dce4ddgainsboro
#1d251dblack
Ring
#023105black
#023105black

Contrast

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

Light mode
Text on background18.17:1AAA
Text on card18.36:1AAA
Primary button9.70:1AAA
Secondary button13.17:1AAA
Muted text4.62:1AA
Accent6.70:1AA
Destructive5.43:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.06:1AAA
Primary button9.70:1AAA
Secondary button13.17:1AAA
Muted text6.22:1AA
Accent6.70:1AA
Destructive6.44:1AA

CSS variables

Paste this into your globals.css to use Southern Diminishing Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 146.935);
  --foreground: oklch(0.179 0.047 144.606);
  --muted: oklch(0.865 0.031 288.021);
  --muted-foreground: oklch(0.465 0.021 287.838);
  --popover: oklch(0.988 0.011 146.935);
  --popover-foreground: oklch(0.179 0.047 144.606);
  --card: oklch(0.982 0.016 146.881);
  --card-foreground: oklch(0.161 0.041 144.814);
  --border: oklch(0.912 0.013 146.903);
  --input: oklch(0.912 0.013 146.903);
  --primary: oklch(0.272 0.086 143.511);
  --primary-foreground: oklch(0.838 0.281 142.73);
  --secondary: oklch(0.154 0.089 272.281);
  --secondary-foreground: oklch(0.869 0.064 287.281);
  --accent: oklch(0.204 0.072 30.004);
  --accent-foreground: oklch(0.714 0.164 25.096);
  --destructive: oklch(0.546 0.197 32.488);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.086 143.511);
  --chart-1: oklch(0.272 0.086 143.511);
  --chart-2: oklch(0.154 0.089 272.281);
  --chart-3: oklch(0.204 0.072 30.004);
  --chart-4: oklch(0.179 0.108 270.822);
  --chart-5: oklch(0.274 0.088 143.458);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.025 145.474);
  --foreground: oklch(0.978 0.004 146.998);
  --muted: oklch(0.224 0.044 284.555);
  --muted-foreground: oklch(0.691 0.019 288.186);
  --popover: oklch(0.122 0.025 145.474);
  --popover-foreground: oklch(0.978 0.004 146.998);
  --card: oklch(0.141 0.028 145.438);
  --card-foreground: oklch(0.986 0.003 147.012);
  --border: oklch(0.255 0.02 146.296);
  --input: oklch(0.255 0.02 146.296);
  --primary: oklch(0.272 0.086 143.511);
  --primary-foreground: oklch(0.838 0.281 142.73);
  --secondary: oklch(0.154 0.089 272.281);
  --secondary-foreground: oklch(0.869 0.064 287.281);
  --accent: oklch(0.204 0.072 30.004);
  --accent-foreground: oklch(0.714 0.164 25.096);
  --destructive: oklch(0.669 0.19 33.182);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.272 0.086 143.511);
  --chart-1: oklch(0.272 0.086 143.511);
  --chart-2: oklch(0.154 0.089 272.281);
  --chart-3: oklch(0.204 0.072 30.004);
  --chart-4: oklch(0.179 0.108 270.822);
  --chart-5: oklch(0.274 0.088 143.458);
}