Edible for shadcn/ui

Edible is a shadcn/ui theme built around a light purple primary color (#eb9cec) with muted light purple accents (#e7e3e8). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#eb9cec) on a neutral background (#080308).

Color palette

TokenLightDark
Background
#fefbfewhite
#080308black
Foreground
#080208black
#fdfbfdsnow
Card
#fdf6fdsnow
#0b040bblack
Card foreground
#040104black
#ffffffwhite
Popover
#fefbfewhite
#080308black
Popover foreground
#080208black
#fdfbfdsnow
Primary
#eb9cecplum
#eb9cecplum
Primary foreground
#480e49indigo
#480e49indigo
Secondary
#e7e3e8gainsboro
#1a131bblack
Secondary foreground
#524653darkslategray
#bca3bddarkgray
Muted
#f3ecf3whitesmoke
#120c13black
Muted foreground
#4f404fdarkslategray
#bfb0bfsilver
Accent
#e7e3e8gainsboro
#1a131bblack
Accent foreground
#524653darkslategray
#bca3bddarkgray
Destructive
#cb3001firebrick
#fe4810orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eb9cecplum
#eb9cecplum

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.61:1AAA
Primary button7.34:1AAA
Secondary button7.03:1AAA
Muted text8.33:1AAA
Accent7.03:1AAA
Destructive5.29:1AA
Dark mode
Text on background19.90:1AAA
Text on card20.25:1AAA
Primary button7.34:1AAA
Secondary button7.88:1AAA
Muted text9.34:1AAA
Accent7.88:1AAA
Destructive3.42: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.991 0.006 325.142);
  --foreground: oklch(0.108 0.026 326.753);
  --muted: oklch(0.951 0.011 325.18);
  --muted-foreground: oklch(0.392 0.033 325.664);
  --popover: oklch(0.991 0.006 325.142);
  --popover-foreground: oklch(0.108 0.026 326.753);
  --card: oklch(0.982 0.012 325.185);
  --card-foreground: oklch(0.086 0.021 326.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.798 0.138 326.207);
  --primary-foreground: oklch(0.294 0.115 327.297);
  --secondary: oklch(0.922 0.007 325.153);
  --secondary-foreground: oklch(0.412 0.025 325.518);
  --accent: oklch(0.922 0.007 325.153);
  --accent-foreground: oklch(0.412 0.025 325.518);
  --destructive: oklch(0.552 0.196 34.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.138 326.207);
  --chart-1: oklch(0.798 0.138 326.207);
  --chart-2: oklch(0.922 0.007 325.153);
  --chart-3: oklch(0.922 0.007 325.153);
  --chart-4: oklch(0.945 0.005 325.136);
  --chart-5: oklch(0.797 0.144 326.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.022 326.497);
  --foreground: oklch(0.991 0.003 325.124);
  --muted: oklch(0.166 0.017 325.767);
  --muted-foreground: oklch(0.774 0.028 325.348);
  --popover: oklch(0.109 0.022 326.497);
  --popover-foreground: oklch(0.991 0.003 325.124);
  --card: oklch(0.125 0.025 326.471);
  --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.798 0.138 326.207);
  --primary-foreground: oklch(0.294 0.115 327.297);
  --secondary: oklch(0.2 0.018 325.707);
  --secondary-foreground: oklch(0.746 0.045 325.512);
  --accent: oklch(0.2 0.018 325.707);
  --accent-foreground: oklch(0.746 0.045 325.512);
  --destructive: oklch(0.661 0.225 35.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.138 326.207);
  --chart-1: oklch(0.798 0.138 326.207);
  --chart-2: oklch(0.2 0.018 325.707);
  --chart-3: oklch(0.2 0.018 325.707);
  --chart-4: oklch(0.233 0.023 325.768);
  --chart-5: oklch(0.797 0.144 326.25);
}