Savory for shadcn/ui

Savory is a shadcn/ui theme built around a vivid light pink primary color (#feb8ce) with vivid light teal accents (#b8fee8). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the vivid light pink primary (#feb8ce) on a pink-tinted background (#0e0609).

Color palette

TokenLightDark
Background
#fdf7f9snow
#0e0609black
Foreground
#000000black
#ffffffwhite
Card
#fdf7f9snow
#0e0609black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f9snow
#0e0609black
Popover foreground
#000000black
#ffffffwhite
Primary
#feb8cepink
#feb8cepink
Primary foreground
#83012amaroon
#83012amaroon
Secondary
#b8fee8paleturquoise
#b8fee8paleturquoise
Secondary foreground
#001e15black
#001e15black
Muted
#e6eae9lavender
#151918black
Muted foreground
#4f5f5adimgray
#a0b0abdarkgray
Accent
#b8fee8paleturquoise
#b8fee8paleturquoise
Accent foreground
#001e15black
#001e15black
Destructive
#d20804red
#fa130fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#feb8cepink
#feb8cepink

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button6.49:1AA
Secondary button15.39:1AAA
Muted text5.54:1AA
Accent15.39:1AAA
Destructive5.56:1AA
Dark mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button6.49:1AA
Secondary button15.39:1AAA
Muted text7.87:1AAA
Accent15.39:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 355.818);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.004 175.5);
  --muted-foreground: oklch(0.469 0.021 174.257);
  --popover: oklch(0.981 0.007 355.818);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 355.818);
  --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.854 0.085 358.359);
  --primary-foreground: oklch(0.389 0.155 14.031);
  --secondary: oklch(0.945 0.076 173.006);
  --secondary-foreground: oklch(0.21 0.042 168.6);
  --accent: oklch(0.945 0.076 173.006);
  --accent-foreground: oklch(0.21 0.042 168.6);
  --destructive: oklch(0.544 0.221 29.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.085 358.359);
  --chart-1: oklch(0.854 0.085 358.359);
  --chart-2: oklch(0.945 0.076 173.006);
  --chart-3: oklch(0.945 0.076 173.006);
  --chart-4: oklch(0.956 0.06 173.623);
  --chart-5: oklch(0.854 0.088 358.446);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.016 356.606);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.005 174.85);
  --muted-foreground: oklch(0.744 0.019 174.862);
  --popover: oklch(0.138 0.016 356.606);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.016 356.606);
  --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.854 0.085 358.359);
  --primary-foreground: oklch(0.389 0.155 14.031);
  --secondary: oklch(0.945 0.076 173.006);
  --secondary-foreground: oklch(0.21 0.042 168.6);
  --accent: oklch(0.945 0.076 173.006);
  --accent-foreground: oklch(0.21 0.042 168.6);
  --destructive: oklch(0.623 0.25 29.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.085 358.359);
  --chart-1: oklch(0.854 0.085 358.359);
  --chart-2: oklch(0.945 0.076 173.006);
  --chart-3: oklch(0.945 0.076 173.006);
  --chart-4: oklch(0.956 0.06 173.623);
  --chart-5: oklch(0.854 0.088 358.446);
}