Nourishment for shadcn/ui

Nourishment is a shadcn/ui theme built around a vivid pink primary color (#921138) with vivid red accents (#922b11). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid pink primary (#921138) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fcf8f9snow
#040102black
Foreground
#160309black
#fbf9fasnow
Card
#faf5f6whitesmoke
#070304black
Card foreground
#120307black
#fdfcfcsnow
Popover
#faf5f6whitesmoke
#070304black
Popover foreground
#120307black
#fdfcfcsnow
Primary
#921138brown
#921138brown
Primary foreground
#fbdae4mistyrose
#fbdae4mistyrose
Secondary
#921178purple
#921178purple
Secondary foreground
#fbdaf4mistyrose
#fbdaf4mistyrose
Muted
#efebeewhitesmoke
#141013black
Muted foreground
#675b64dimgray
#a498a2darkgray
Accent
#922b11saddlebrown
#922b11saddlebrown
Accent foreground
#fbe1damistyrose
#fbe1damistyrose
Destructive
#913d0dsaddlebrown
#e66114chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#921138brown
#921138brown

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card18.64:1AAA
Primary button6.88:1AA
Secondary button6.37:1AA
Muted text5.47:1AA
Accent6.55:1AA
Destructive7.25:1AAA
Dark mode
Text on background19.79:1AAA
Text on card20.02:1AAA
Primary button6.88:1AA
Secondary button6.37:1AA
Muted text6.82:1AA
Accent6.55:1AA
Destructive6.08:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 356.777);
  --foreground: oklch(0.143 0.04 0.406);
  --muted: oklch(0.945 0.005 332.09);
  --muted-foreground: oklch(0.486 0.021 332.625);
  --popover: oklch(0.974 0.006 356.838);
  --popover-foreground: oklch(0.13 0.035 358.47);
  --card: oklch(0.974 0.006 356.838);
  --card-foreground: oklch(0.13 0.035 358.47);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.429 0.16 11.748);
  --primary-foreground: oklch(0.919 0.038 357.812);
  --secondary: oklch(0.454 0.187 338.632);
  --secondary-foreground: oklch(0.924 0.049 332.77);
  --accent: oklch(0.445 0.143 34.618);
  --accent-foreground: oklch(0.929 0.03 34.303);
  --destructive: oklch(0.468 0.127 44.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.429 0.16 11.748);
  --chart-1: oklch(0.429 0.16 11.748);
  --chart-2: oklch(0.454 0.187 338.632);
  --chart-3: oklch(0.445 0.143 34.618);
  --chart-4: oklch(0.484 0.201 338.7);
  --chart-5: oklch(0.432 0.164 12.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.011 356.46);
  --foreground: oklch(0.984 0.002 356.702);
  --muted: oklch(0.179 0.008 332.667);
  --muted-foreground: oklch(0.693 0.019 332.406);
  --popover: oklch(0.108 0.014 356.46);
  --popover-foreground: oklch(0.992 0.001 356.68);
  --card: oklch(0.108 0.014 356.46);
  --card-foreground: oklch(0.992 0.001 356.68);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.429 0.16 11.748);
  --primary-foreground: oklch(0.919 0.038 357.812);
  --secondary: oklch(0.454 0.187 338.632);
  --secondary-foreground: oklch(0.924 0.049 332.77);
  --accent: oklch(0.445 0.143 34.618);
  --accent-foreground: oklch(0.929 0.03 34.303);
  --destructive: oklch(0.652 0.182 44.078);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.429 0.16 11.748);
  --chart-1: oklch(0.429 0.16 11.748);
  --chart-2: oklch(0.454 0.187 338.632);
  --chart-3: oklch(0.445 0.143 34.618);
  --chart-4: oklch(0.484 0.201 338.7);
  --chart-5: oklch(0.432 0.164 12.45);
}