Edible for shadcn/ui

Edible is a shadcn/ui theme built around a vivid orange primary color (#ed9f5e) with neutral gray accents (#d0cece). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#ed9f5e) on an orange-tinted background (#0c0704).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0704black
Foreground
#080502black
#fbfaf9snow
Card
#ffffffwhite
#0c0704black
Card foreground
#080502black
#fbfaf9snow
Popover
#ffffffwhite
#0c0704black
Popover foreground
#080502black
#fbfaf9snow
Primary
#ed9f5esandybrown
#ed9f5esandybrown
Primary foreground
#170c03black
#170c03black
Secondary
#d0cecelightgrey
#212121black
Secondary foreground
#373534darkslategray
#bbbab9silver
Muted
#f0eae5linen
#1a140fblack
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#d0cecelightgrey
#212121black
Accent foreground
#373534darkslategray
#bbbab9silver
Destructive
#641402maroon
#fb3104orangered
Destructive foreground
#fdad9blightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ed9f5esandybrown
#ed9f5esandybrown

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.33:1AAA
Primary button8.89:1AAA
Secondary button7.80:1AAA
Muted text7.79:1AAA
Accent7.80:1AAA
Destructive7.06:1AAA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button8.89:1AAA
Secondary button8.29:1AAA
Muted text9.20:1AAA
Accent8.29:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.013 70.943);
  --muted: oklch(0.941 0.01 62.057);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.013 70.943);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.013 70.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.766 0.124 58.733);
  --primary-foreground: oklch(0.166 0.029 65.541);
  --secondary: oklch(0.853 0.002 62.168);
  --secondary-foreground: oklch(0.332 0.002 62.099);
  --accent: oklch(0.853 0.002 62.168);
  --accent-foreground: oklch(0.332 0.002 62.099);
  --destructive: oklch(0.332 0.117 34.073);
  --destructive-foreground: oklch(0.82 0.099 33.179);
  --ring: oklch(0.766 0.124 58.733);
  --chart-1: oklch(0.766 0.124 58.733);
  --chart-2: oklch(0.853 0.002 62.168);
  --chart-3: oklch(0.853 0.002 62.168);
  --chart-4: oklch(0.877 0.001 62.172);
  --chart-5: oklch(0.769 0.128 58.522);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.014 69.426);
  --foreground: oklch(0.985 0.001 62.178);
  --muted: oklch(0.196 0.014 61.121);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.135 0.014 69.426);
  --popover-foreground: oklch(0.985 0.001 62.178);
  --card: oklch(0.135 0.014 69.426);
  --card-foreground: oklch(0.985 0.001 62.178);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.766 0.124 58.733);
  --primary-foreground: oklch(0.166 0.029 65.541);
  --secondary: oklch(0.249 0.001 62.152);
  --secondary-foreground: oklch(0.79 0.001 62.173);
  --accent: oklch(0.249 0.001 62.152);
  --accent-foreground: oklch(0.79 0.001 62.173);
  --destructive: oklch(0.638 0.238 32.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.124 58.733);
  --chart-1: oklch(0.766 0.124 58.733);
  --chart-2: oklch(0.249 0.001 62.152);
  --chart-3: oklch(0.249 0.001 62.152);
  --chart-4: oklch(0.28 0.001 62.149);
  --chart-5: oklch(0.769 0.128 58.522);
}