Nutritious for shadcn/ui

Nutritious is a shadcn/ui theme built around a near-black primary color (#121212) with muted light red accents (#d9c9c9). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-black primary (#121212) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040101black
Foreground
#130606black
#fdfcfcsnow
Card
#fcf8f8snow
#070303black
Card foreground
#0f0505black
#ffffffwhite
Popover
#fdfcfcsnow
#040101black
Popover foreground
#130606black
#fdfcfcsnow
Primary
#121212black
#121212black
Primary foreground
#abababdarkgray
#abababdarkgray
Secondary
#d9c9c9lightgrey
#363030darkslategray
Secondary foreground
#422e2edarkslategray
#cfc9c9lightgrey
Muted
#ecd5d5gainsboro
#2a1313black
Muted foreground
#6a5c5cdimgray
#a39595rosybrown
Accent
#d9c9c9lightgrey
#363030darkslategray
Accent foreground
#422e2edarkslategray
#cfc9c9lightgrey
Destructive
#bb1a11firebrick
#ea291fcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#121212black
#121212black

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.08:1AAA
Primary button8.16:1AAA
Secondary button7.90:1AAA
Muted text4.55:1AA
Accent7.90:1AAA
Destructive6.44:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.53:1AAA
Primary button8.16:1AAA
Secondary button7.92:1AAA
Muted text6.06:1AA
Accent7.92:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.19);
  --foreground: oklch(0.146 0.025 20.543);
  --muted: oklch(0.891 0.026 17.648);
  --muted-foreground: oklch(0.49 0.018 17.786);
  --popover: oklch(0.991 0.002 17.19);
  --popover-foreground: oklch(0.146 0.025 20.543);
  --card: oklch(0.982 0.004 17.222);
  --card-foreground: oklch(0.133 0.021 20.305);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.182 0 164.055);
  --primary-foreground: oklch(0.741 0 171.254);
  --secondary: oklch(0.849 0.019 17.524);
  --secondary-foreground: oklch(0.325 0.03 18.817);
  --accent: oklch(0.849 0.019 17.524);
  --accent-foreground: oklch(0.325 0.03 18.817);
  --destructive: oklch(0.507 0.194 29.262);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0 164.055);
  --chart-1: oklch(0.182 0 164.055);
  --chart-2: oklch(0.849 0.019 17.524);
  --chart-3: oklch(0.849 0.019 17.524);
  --chart-4: oklch(0.874 0.015 17.45);
  --chart-5: oklch(0.18 0.002 17.319);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 19.708);
  --foreground: oklch(0.991 0.001 17.182);
  --muted: oklch(0.221 0.038 20.638);
  --muted-foreground: oklch(0.681 0.017 17.566);
  --popover: oklch(0.084 0.011 19.708);
  --popover-foreground: oklch(0.991 0.001 17.182);
  --card: oklch(0.106 0.014 19.708);
  --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.182 0 164.055);
  --primary-foreground: oklch(0.741 0 171.254);
  --secondary: oklch(0.315 0.009 17.63);
  --secondary-foreground: oklch(0.841 0.007 17.292);
  --accent: oklch(0.315 0.009 17.63);
  --accent-foreground: oklch(0.841 0.007 17.292);
  --destructive: oklch(0.604 0.227 29.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0 164.055);
  --chart-1: oklch(0.182 0 164.055);
  --chart-2: oklch(0.315 0.009 17.63);
  --chart-3: oklch(0.315 0.009 17.63);
  --chart-4: oklch(0.345 0.01 17.644);
  --chart-5: oklch(0.18 0.002 17.319);
}