Nourishment for shadcn/ui

Nourishment is a shadcn/ui theme built around an orange primary color (#995233) with neutral gray accents (#d4d0ce). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the orange primary (#995233) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fdf8f6snow
#040201black
Foreground
#000000black
#fafaf9snow
Card
#fdf5f2seashell
#080402black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf5f2seashell
#080402black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#995233sienna
#995233sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d4d0celightgrey
#1a1614black
Secondary foreground
#3b3735darkslategray
#bcaba4darkgray
Muted
#f1e8e4linen
#1b120eblack
Muted foreground
#5c5857dimgray
#a8a5a3darkgray
Accent
#d4d0celightgrey
#1a1614black
Accent foreground
#3b3735darkslategray
#bcaba4darkgray
Destructive
#6f130bmaroon
#ec4f41tomato
Destructive foreground
#f8bab5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#995233sienna
#995233sienna

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card19.53:1AAA
Primary button5.83:1AA
Secondary button7.68:1AAA
Muted text5.82:1AA
Accent7.68:1AAA
Destructive7.11:1AAA
Dark mode
Text on background19.82:1AAA
Text on card19.93:1AAA
Primary button5.83:1AA
Secondary button8.14:1AAA
Muted text7.53:1AAA
Accent8.14:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.006 44.918);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.012 44.857);
  --muted-foreground: oklch(0.464 0.006 44.862);
  --popover: oklch(0.976 0.009 44.886);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.976 0.009 44.886);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.517 0.105 43.159);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.86 0.005 44.924);
  --secondary-foreground: oklch(0.34 0.008 44.767);
  --accent: oklch(0.86 0.005 44.924);
  --accent-foreground: oklch(0.34 0.008 44.767);
  --destructive: oklch(0.354 0.127 29.882);
  --destructive-foreground: oklch(0.844 0.072 24.616);
  --ring: oklch(0.517 0.105 43.159);
  --chart-1: oklch(0.517 0.105 43.159);
  --chart-2: oklch(0.86 0.005 44.924);
  --chart-3: oklch(0.86 0.005 44.924);
  --chart-4: oklch(0.884 0.004 44.935);
  --chart-5: oklch(0.518 0.111 42.962);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.009 52.091);
  --foreground: oklch(0.985 0.001 44.973);
  --muted: oklch(0.192 0.018 44.261);
  --muted-foreground: oklch(0.724 0.005 44.912);
  --popover: oklch(0.114 0.012 52.091);
  --popover-foreground: oklch(0.992 0 44.978);
  --card: oklch(0.114 0.012 52.091);
  --card-foreground: oklch(0.992 0 44.978);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.517 0.105 43.159);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.203 0.009 44.594);
  --secondary-foreground: oklch(0.754 0.022 44.709);
  --accent: oklch(0.203 0.009 44.594);
  --accent-foreground: oklch(0.754 0.022 44.709);
  --destructive: oklch(0.643 0.196 28.842);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.517 0.105 43.159);
  --chart-1: oklch(0.517 0.105 43.159);
  --chart-2: oklch(0.203 0.009 44.594);
  --chart-3: oklch(0.203 0.009 44.594);
  --chart-4: oklch(0.236 0.011 44.56);
  --chart-5: oklch(0.518 0.111 42.962);
}