Unnatural for shadcn/ui

Unnatural is a shadcn/ui theme built around a deep green primary color (#10240f) with muted light green accents (#d0decf). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#10240f) on a green-tinted background (#051005).

Color palette

TokenLightDark
Background
#fbfefbwhite
#051005black
Foreground
#061406black
#f8fbf8mintcream
Card
#fbfefbwhite
#051005black
Card foreground
#061406black
#f8fbf8mintcream
Popover
#fbfefbwhite
#051005black
Popover foreground
#061406black
#f8fbf8mintcream
Primary
#10240fblack
#10240fblack
Primary foreground
#52b34dmediumseagreen
#52b34dmediumseagreen
Secondary
#d0decflightgrey
#1b1d1bblack
Secondary foreground
#334832darkslategray
#b3b7b3darkgray
Muted
#e7f4e7honeydew
#0c180bblack
Muted foreground
#445643darkslategray
#aabca9darkgray
Accent
#d0decflightgrey
#1b1d1bblack
Accent foreground
#334832darkslategray
#b3b7b3darkgray
Destructive
#961e03darkred
#e62e05orangered
Destructive foreground
#fed6cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#10240fblack
#10240fblack

Contrast

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

Light mode
Text on background18.59:1AAA
Text on card18.59:1AAA
Primary button6.19:1AA
Secondary button7.08:1AAA
Muted text6.94:1AA
Accent7.08:1AAA
Destructive6.32:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button6.19:1AA
Secondary button8.35:1AAA
Muted text9.07:1AAA
Accent8.35:1AAA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 144.105);
  --foreground: oklch(0.173 0.036 142.554);
  --muted: oklch(0.953 0.021 143.998);
  --muted-foreground: oklch(0.433 0.04 143.574);
  --popover: oklch(0.994 0.004 144.105);
  --popover-foreground: oklch(0.173 0.036 142.554);
  --card: oklch(0.994 0.004 144.105);
  --card-foreground: oklch(0.173 0.036 142.554);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.236 0.046 142.932);
  --primary-foreground: oklch(0.684 0.168 142.614);
  --secondary: oklch(0.885 0.025 143.964);
  --secondary-foreground: oklch(0.378 0.045 143.399);
  --accent: oklch(0.885 0.025 143.964);
  --accent-foreground: oklch(0.378 0.045 143.399);
  --destructive: oklch(0.438 0.159 33.059);
  --destructive-foreground: oklch(0.908 0.047 32.765);
  --ring: oklch(0.236 0.046 142.932);
  --chart-1: oklch(0.236 0.046 142.932);
  --chart-2: oklch(0.885 0.025 143.964);
  --chart-3: oklch(0.885 0.025 143.964);
  --chart-4: oklch(0.906 0.02 144);
  --chart-5: oklch(0.238 0.049 142.863);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.031 142.527);
  --foreground: oklch(0.986 0.005 144.099);
  --muted: oklch(0.194 0.031 143.154);
  --muted-foreground: oklch(0.776 0.035 143.865);
  --popover: oklch(0.157 0.031 142.527);
  --popover-foreground: oklch(0.986 0.005 144.099);
  --card: oklch(0.157 0.031 142.527);
  --card-foreground: oklch(0.986 0.005 144.099);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.236 0.046 142.932);
  --primary-foreground: oklch(0.684 0.168 142.614);
  --secondary: oklch(0.228 0.004 144.027);
  --secondary-foreground: oklch(0.776 0.008 144.071);
  --accent: oklch(0.228 0.004 144.027);
  --accent-foreground: oklch(0.776 0.008 144.071);
  --destructive: oklch(0.598 0.222 32.439);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.236 0.046 142.932);
  --chart-1: oklch(0.236 0.046 142.932);
  --chart-2: oklch(0.228 0.004 144.027);
  --chart-3: oklch(0.228 0.004 144.027);
  --chart-4: oklch(0.261 0.005 144.019);
  --chart-5: oklch(0.238 0.049 142.863);
}