Edible for shadcn/ui

Edible is a shadcn/ui theme built around a muted pink primary color (#bb8b99) with muted blue accents (#8b99bb). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the muted pink primary (#bb8b99) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f9snow
#000000black
Foreground
#170308black
#f9f5f6whitesmoke
Card
#fdf7f9snow
#000000black
Card foreground
#170308black
#f9f5f6whitesmoke
Popover
#fdf7f9snow
#000000black
Popover foreground
#170308black
#f9f5f6whitesmoke
Primary
#bb8b99rosybrown
#bb8b99rosybrown
Primary foreground
#0d0809black
#0d0809black
Secondary
#99bb8bdarkseagreen
#99bb8bdarkseagreen
Secondary foreground
#090d08black
#090d08black
Muted
#edf5eahoneydew
#0d150ablack
Muted foreground
#424441darkslategray
#bcbebbsilver
Accent
#8b99bbdarkgray
#8b99bbdarkgray
Accent foreground
#08090dblack
#08090dblack
Destructive
#c72400firebrick
#ff370aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bb8b99rosybrown
#bb8b99rosybrown

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button6.90:1AA
Secondary button9.17:1AAA
Muted text8.84:1AAA
Accent6.98:1AA
Destructive5.70:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button6.90:1AA
Secondary button9.17:1AAA
Muted text9.96:1AAA
Accent6.98:1AA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 357.926);
  --foreground: oklch(0.143 0.042 1.516);
  --muted: oklch(0.962 0.016 136.66);
  --muted-foreground: oklch(0.383 0.005 136.649);
  --popover: oklch(0.981 0.007 357.926);
  --popover-foreground: oklch(0.143 0.042 1.516);
  --card: oklch(0.981 0.007 357.926);
  --card-foreground: oklch(0.143 0.042 1.516);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.688 0.061 0.139);
  --primary-foreground: oklch(0.14 0.01 358.407);
  --secondary: oklch(0.754 0.076 136.951);
  --secondary-foreground: oklch(0.152 0.013 136.205);
  --accent: oklch(0.684 0.053 268.079);
  --accent-foreground: oklch(0.14 0.009 266.542);
  --destructive: oklch(0.535 0.2 32.461);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.688 0.061 0.139);
  --chart-1: oklch(0.688 0.061 0.139);
  --chart-2: oklch(0.754 0.076 136.951);
  --chart-3: oklch(0.684 0.053 268.079);
  --chart-4: oklch(0.775 0.07 136.906);
  --chart-5: oklch(0.685 0.068 0.433);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 357.852);
  --muted: oklch(0.182 0.024 137.095);
  --muted-foreground: oklch(0.799 0.004 136.625);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 357.852);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.005 357.852);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.688 0.061 0.139);
  --primary-foreground: oklch(0.14 0.01 358.407);
  --secondary: oklch(0.754 0.076 136.951);
  --secondary-foreground: oklch(0.152 0.013 136.205);
  --accent: oklch(0.684 0.053 268.079);
  --accent-foreground: oklch(0.14 0.009 266.542);
  --destructive: oklch(0.649 0.238 32.602);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.688 0.061 0.139);
  --chart-1: oklch(0.688 0.061 0.139);
  --chart-2: oklch(0.754 0.076 136.951);
  --chart-3: oklch(0.684 0.053 268.079);
  --chart-4: oklch(0.775 0.07 136.906);
  --chart-5: oklch(0.685 0.068 0.433);
}