Nature for shadcn/ui

Nature is a shadcn/ui theme built around a muted deep green primary color (#253229) with muted deep orange accents (#322925). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#253229) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#051008black
#f6f9f7whitesmoke
Card
#fbfefcwhite
#000000black
Card foreground
#051008black
#f6f9f7whitesmoke
Popover
#fbfefcwhite
#000000black
Popover foreground
#051008black
#f6f9f7whitesmoke
Primary
#253229darkslategray
#253229darkslategray
Primary foreground
#bccdc1silver
#bccdc1silver
Secondary
#292532darkslategray
#292532darkslategray
Secondary foreground
#c1bccdsilver
#c1bccdsilver
Muted
#dfdce5gainsboro
#1d1a23black
Muted foreground
#5a516cdimgray
#9c93aedarkgray
Accent
#322925darkslategray
#322925darkslategray
Accent foreground
#cdc1bcsilver
#cdc1bcsilver
Destructive
#9d2d10brown
#eb603dtomato
Destructive foreground
#fce8e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#253229darkslategray
#253229darkslategray

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button8.08:1AAA
Secondary button8.08:1AAA
Muted text5.47:1AA
Accent8.06:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button8.08:1AAA
Secondary button8.08:1AAA
Muted text5.87:1AA
Accent8.06:1AAA
Destructive6.25:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 157.198);
  --foreground: oklch(0.157 0.023 155.743);
  --muted: oklch(0.899 0.013 301.264);
  --muted-foreground: oklch(0.454 0.044 299.924);
  --popover: oklch(0.994 0.003 157.198);
  --popover-foreground: oklch(0.157 0.023 155.743);
  --card: oklch(0.994 0.003 157.198);
  --card-foreground: oklch(0.157 0.023 155.743);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.302 0.023 155.566);
  --primary-foreground: oklch(0.832 0.025 156.64);
  --secondary: oklch(0.274 0.024 300.044);
  --secondary-foreground: oklch(0.804 0.025 300.987);
  --accent: oklch(0.29 0.015 48.177);
  --accent-foreground: oklch(0.82 0.016 48.525);
  --destructive: oklch(0.466 0.153 34.459);
  --destructive-foreground: oklch(0.946 0.023 34.298);
  --ring: oklch(0.302 0.023 155.566);
  --chart-1: oklch(0.302 0.023 155.566);
  --chart-2: oklch(0.274 0.024 300.044);
  --chart-3: oklch(0.29 0.015 48.177);
  --chart-4: oklch(0.303 0.028 299.984);
  --chart-5: oklch(0.304 0.028 155.225);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.005 157.169);
  --muted: oklch(0.225 0.018 300.189);
  --muted-foreground: oklch(0.681 0.04 300.555);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.005 157.169);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.005 157.169);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.302 0.023 155.566);
  --primary-foreground: oklch(0.832 0.025 156.64);
  --secondary: oklch(0.274 0.024 300.044);
  --secondary-foreground: oklch(0.804 0.025 300.987);
  --accent: oklch(0.29 0.015 48.177);
  --accent-foreground: oklch(0.82 0.016 48.525);
  --destructive: oklch(0.66 0.179 35.173);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.302 0.023 155.566);
  --chart-1: oklch(0.302 0.023 155.566);
  --chart-2: oklch(0.274 0.024 300.044);
  --chart-3: oklch(0.29 0.015 48.177);
  --chart-4: oklch(0.303 0.028 299.984);
  --chart-5: oklch(0.304 0.028 155.225);
}