Unnatural for shadcn/ui

Unnatural is a shadcn/ui theme built around a deep green primary color (#293715) with muted light green accents (#cacec5). The light mode uses a neutral background (#fafcf8). Dark mode keeps the deep green primary (#293715) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#fafcf8snow
#050703black
Foreground
#0b1203black
#ffffffwhite
Card
#f8fbf4whitesmoke
#080b04black
Card foreground
#090d02black
#ffffffwhite
Popover
#fafcf8snow
#050703black
Popover foreground
#0b1203black
#ffffffwhite
Primary
#293715darkslategray
#293715darkslategray
Primary foreground
#95c059yellowgreen
#95c059yellowgreen
Secondary
#d9d9d8gainsboro
#1a1d16black
Secondary foreground
#40403fdarkslategray
#b4bca9darkgray
Muted
#ecf2e3beige
#161c0dblack
Muted foreground
#545d46darkolivegreen
#afb9a2darkgray
Accent
#cacec5lightgrey
#323a27darkslategray
Accent foreground
#31342ddarkslategray
#cbd4bflightgrey
Destructive
#991f0afirebrick
#eb300forangered
Destructive foreground
#fdded9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#293715darkslategray
#293715darkslategray

Contrast

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

Light mode
Text on background18.48:1AAA
Text on card18.75:1AAA
Primary button5.99:1AA
Secondary button7.35:1AAA
Muted text6.07:1AA
Accent7.90:1AAA
Destructive6.47:1AA
Dark mode
Text on background20.19:1AAA
Text on card19.81:1AAA
Primary button5.99:1AA
Secondary button8.70:1AAA
Muted text8.52:1AAA
Accent7.73:1AAA
Destructive4.23: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.989 0.006 125.134);
  --foreground: oklch(0.169 0.034 126.121);
  --muted: oklch(0.953 0.022 125.361);
  --muted-foreground: oklch(0.463 0.038 126.214);
  --popover: oklch(0.989 0.006 125.134);
  --popover-foreground: oklch(0.169 0.034 126.121);
  --card: oklch(0.983 0.01 125.18);
  --card-foreground: oklch(0.151 0.029 124.621);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.316 0.058 128.125);
  --primary-foreground: oklch(0.754 0.141 128.174);
  --secondary: oklch(0.885 0.001 125.062);
  --secondary-foreground: oklch(0.372 0.002 125.129);
  --accent: oklch(0.845 0.012 125.248);
  --accent-foreground: oklch(0.32 0.014 125.666);
  --destructive: oklch(0.447 0.161 32.06);
  --destructive-foreground: oklch(0.924 0.035 29.644);
  --ring: oklch(0.316 0.058 128.125);
  --chart-1: oklch(0.316 0.058 128.125);
  --chart-2: oklch(0.885 0.001 125.062);
  --chart-3: oklch(0.845 0.012 125.248);
  --chart-4: oklch(0.908 0.001 125.058);
  --chart-5: oklch(0.32 0.062 128.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 124.439);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.03 127.186);
  --muted-foreground: oklch(0.771 0.033 125.655);
  --popover: oklch(0.125 0.014 124.439);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.017 124.501);
  --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.316 0.058 128.125);
  --primary-foreground: oklch(0.754 0.141 128.174);
  --secondary: oklch(0.225 0.013 125.877);
  --secondary-foreground: oklch(0.785 0.029 125.564);
  --accent: oklch(0.335 0.034 126.546);
  --accent-foreground: oklch(0.858 0.031 125.545);
  --destructive: oklch(0.609 0.225 31.844);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.058 128.125);
  --chart-1: oklch(0.316 0.058 128.125);
  --chart-2: oklch(0.225 0.013 125.877);
  --chart-3: oklch(0.335 0.034 126.546);
  --chart-4: oklch(0.26 0.016 125.948);
  --chart-5: oklch(0.32 0.062 128.323);
}