Nutritious for shadcn/ui

Nutritious is a shadcn/ui theme built around a muted blue primary color (#8395a5) with muted green accents (#95a583). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#8395a5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#8395a5lightslategray
#8395a5lightslategray
Primary foreground
#000000black
#000000black
Secondary
#a58395rosybrown
#a58395rosybrown
Secondary foreground
#000000black
#000000black
Muted
#e9e7e8lavender
#181617black
Muted foreground
#444042darkslategray
#bfbbbdsilver
Accent
#95a583darkseagreen
#95a583darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#631a08maroon
#e23c12orangered
Destructive foreground
#f8b6a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8395a5lightslategray
#8395a5lightslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.80:1AA
Secondary button6.26:1AA
Muted text8.28:1AAA
Accent7.98:1AAA
Destructive7.25:1AAA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button6.80:1AA
Secondary button6.26:1AA
Muted text9.49:1AAA
Accent7.98:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.003 343.524);
  --muted-foreground: oklch(0.377 0.006 343.867);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.661 0.032 244.69);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.049 345.246);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.7 0.052 128.054);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.337 0.108 34.667);
  --destructive-foreground: oklch(0.833 0.081 34.509);
  --ring: oklch(0.661 0.032 244.69);
  --chart-1: oklch(0.661 0.032 244.69);
  --chart-2: oklch(0.647 0.049 345.246);
  --chart-3: oklch(0.7 0.052 128.054);
  --chart-4: oklch(0.674 0.045 345.043);
  --chart-5: oklch(0.66 0.038 244.808);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 244.096);
  --muted: oklch(0.203 0.004 343.974);
  --muted-foreground: oklch(0.795 0.005 343.612);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 244.096);
  --card: oklch(0.092 0 180);
  --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.661 0.032 244.69);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.049 345.246);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.7 0.052 128.054);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.604 0.209 33.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.661 0.032 244.69);
  --chart-1: oklch(0.661 0.032 244.69);
  --chart-2: oklch(0.647 0.049 345.246);
  --chart-3: oklch(0.7 0.052 128.054);
  --chart-4: oklch(0.674 0.045 345.043);
  --chart-5: oklch(0.66 0.038 244.808);
}