Natural for shadcn/ui

Natural is a shadcn/ui theme built around a muted purple primary color (#bd9bc5) with muted teal accents (#9bc5bd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#bd9bc5) on a purple-tinted background (#0a050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050bblack
Foreground
#0b030dblack
#ffffffwhite
Card
#fcfcfcsnow
#0d060eblack
Card foreground
#070208black
#ffffffwhite
Popover
#ffffffwhite
#0a050bblack
Popover foreground
#0b030dblack
#ffffffwhite
Primary
#bd9bc5darkgray
#bd9bc5darkgray
Primary foreground
#1b111dblack
#1b111dblack
Secondary
#c5bd9btan
#c5bd9btan
Secondary foreground
#1d1b11black
#1d1b11black
Muted
#e2ded0gainsboro
#2f2c1ddarkslategray
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#9bc5bddarkgray
#9bc5bddarkgray
Accent foreground
#111d1bblack
#111d1bblack
Destructive
#ae4609saddlebrown
#f5813dcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bd9bc5darkgray
#bd9bc5darkgray

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.12:1AAA
Primary button7.58:1AAA
Secondary button9.13:1AAA
Muted text7.47:1AAA
Accent9.11:1AAA
Destructive5.70:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.00:1AAA
Primary button7.58:1AAA
Secondary button9.13:1AAA
Muted text7.46:1AAA
Accent9.11:1AAA
Destructive8.05:1AAA

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.12 0.033 321.767);
  --muted: oklch(0.9 0.02 96.429);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.033 321.767);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.029 322.217);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.734 0.069 320.07);
  --primary-foreground: oklch(0.196 0.028 320.093);
  --secondary: oklch(0.796 0.046 96.791);
  --secondary-foreground: oklch(0.22 0.018 96.962);
  --accent: oklch(0.79 0.045 182.704);
  --accent-foreground: oklch(0.218 0.017 181.957);
  --destructive: oklch(0.527 0.15 43.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.734 0.069 320.07);
  --chart-1: oklch(0.734 0.069 320.07);
  --chart-2: oklch(0.796 0.046 96.791);
  --chart-3: oklch(0.79 0.045 182.704);
  --chart-4: oklch(0.816 0.042 96.73);
  --chart-5: oklch(0.732 0.077 320.077);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.02 321.277);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.291 0.025 96.978);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.125 0.02 321.277);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.023 320.569);
  --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.734 0.069 320.07);
  --primary-foreground: oklch(0.196 0.028 320.093);
  --secondary: oklch(0.796 0.046 96.791);
  --secondary-foreground: oklch(0.22 0.018 96.962);
  --accent: oklch(0.79 0.045 182.704);
  --accent-foreground: oklch(0.218 0.017 181.957);
  --destructive: oklch(0.722 0.163 47.919);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.734 0.069 320.07);
  --chart-1: oklch(0.734 0.069 320.07);
  --chart-2: oklch(0.796 0.046 96.791);
  --chart-3: oklch(0.79 0.045 182.704);
  --chart-4: oklch(0.816 0.042 96.73);
  --chart-5: oklch(0.732 0.077 320.077);
}