Natural for shadcn/ui

Natural is a shadcn/ui theme built around a deep yellow primary color (#554b2a) with muted yellow accents (#c5c0af). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#554b2a) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#0d0b02black
#fdfdfcwhite
Card
#ffffffwhite
#040301black
Card foreground
#0d0b02black
#fdfdfcwhite
Popover
#ffffffwhite
#040301black
Popover foreground
#0d0b02black
#fdfdfcwhite
Primary
#554b2adarkolivegreen
#554b2adarkolivegreen
Primary foreground
#e6e0ccgainsboro
#e6e0ccgainsboro
Secondary
#d4d3celightgrey
#34332ddarkslategray
Secondary foreground
#3c3a34darkslategray
#ceccc5lightgrey
Muted
#f0ece0beige
#1f1b0fblack
Muted foreground
#5e5845darkolivegreen
#bab4a1darkgray
Accent
#c5c0afsilver
#4a4536darkslategray
Accent foreground
#26241cblack
#dfdcd3gainsboro
Destructive
#7c240esaddlebrown
#e95935tomato
Destructive foreground
#f8cec3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#554b2adarkolivegreen
#554b2adarkolivegreen

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button6.51:1AA
Secondary button7.57:1AAA
Muted text6.01:1AA
Accent8.53:1AAA
Destructive6.91:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.51:1AA
Secondary button7.91:1AAA
Muted text8.30:1AAA
Accent6.96:1AA
Destructive5.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.023 97.471);
  --muted: oklch(0.943 0.016 92.816);
  --muted-foreground: oklch(0.461 0.03 93.127);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.023 97.471);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.148 0.023 97.471);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.416 0.051 93.017);
  --primary-foreground: oklch(0.905 0.027 92.926);
  --secondary: oklch(0.866 0.007 92.735);
  --secondary-foreground: oklch(0.349 0.011 92.925);
  --accent: oklch(0.807 0.024 92.921);
  --accent-foreground: oklch(0.26 0.015 93.097);
  --destructive: oklch(0.396 0.126 34.678);
  --destructive-foreground: oklch(0.885 0.05 34.352);
  --ring: oklch(0.416 0.051 93.017);
  --chart-1: oklch(0.416 0.051 93.017);
  --chart-2: oklch(0.866 0.007 92.735);
  --chart-3: oklch(0.807 0.024 92.921);
  --chart-4: oklch(0.889 0.006 92.72);
  --chart-5: oklch(0.42 0.055 92.932);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 96.84);
  --foreground: oklch(0.994 0.002 92.676);
  --muted: oklch(0.222 0.022 93.161);
  --muted-foreground: oklch(0.769 0.027 92.96);
  --popover: oklch(0.099 0.011 96.84);
  --popover-foreground: oklch(0.994 0.002 92.676);
  --card: oklch(0.099 0.011 96.84);
  --card-foreground: oklch(0.994 0.002 92.676);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.416 0.051 93.017);
  --primary-foreground: oklch(0.905 0.027 92.926);
  --secondary: oklch(0.319 0.011 92.948);
  --secondary-foreground: oklch(0.844 0.009 92.763);
  --accent: oklch(0.391 0.026 93.132);
  --accent-foreground: oklch(0.894 0.013 92.796);
  --destructive: oklch(0.647 0.185 35.092);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.416 0.051 93.017);
  --chart-1: oklch(0.416 0.051 93.017);
  --chart-2: oklch(0.319 0.011 92.948);
  --chart-3: oklch(0.391 0.026 93.132);
  --chart-4: oklch(0.35 0.012 92.955);
  --chart-5: oklch(0.42 0.055 92.932);
}