Ingredient for shadcn/ui

Ingredient is a shadcn/ui theme built around a deep orange primary color (#5c3e14) with deep green accents (#565c14). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#5c3e14) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#040301black
#fdfdfcwhite
Card
#fcfcfcsnow
#070504black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030302black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#5c3e14saddlebrown
#5c3e14saddlebrown
Primary foreground
#eed6b4wheat
#eed6b4wheat
Secondary
#5c1a14maroon
#5c1a14maroon
Secondary foreground
#eeb9b4lightpink
#eeb9b4lightpink
Muted
#eedad8gainsboro
#271311black
Muted foreground
#6f5a58dimgray
#a79290rosybrown
Accent
#565c14darkolivegreen
#565c14darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d04711chocolate
#ed5e26chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c3e14saddlebrown
#5c3e14saddlebrown

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button6.91:1AA
Secondary button7.57:1AAA
Muted text4.76:1AA
Accent7.14:1AAA
Destructive4.58:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.32:1AAA
Primary button6.91:1AA
Secondary button7.57:1AAA
Muted text6.03:1AA
Accent7.14:1AAA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.01 83.486);
  --muted: oklch(0.903 0.023 23.844);
  --muted-foreground: oklch(0.487 0.029 24.263);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.01 83.486);
  --card: oklch(0.992 0 161.565);
  --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.39 0.07 71.835);
  --primary-foreground: oklch(0.888 0.053 76.204);
  --secondary: oklch(0.325 0.097 28.751);
  --secondary-foreground: oklch(0.832 0.063 24.483);
  --accent: oklch(0.455 0.092 114.257);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.583 0.182 38.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.39 0.07 71.835);
  --chart-1: oklch(0.39 0.07 71.835);
  --chart-2: oklch(0.325 0.097 28.751);
  --chart-3: oklch(0.455 0.092 114.257);
  --chart-4: oklch(0.353 0.108 28.875);
  --chart-5: oklch(0.393 0.072 71.375);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.006 80.54);
  --foreground: oklch(0.993 0.001 76.646);
  --muted: oklch(0.214 0.035 25.87);
  --muted-foreground: oklch(0.678 0.026 24.003);
  --popover: oklch(0.094 0.006 80.54);
  --popover-foreground: oklch(0.993 0.001 76.646);
  --card: oklch(0.119 0.007 80.54);
  --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.39 0.07 71.835);
  --primary-foreground: oklch(0.888 0.053 76.204);
  --secondary: oklch(0.325 0.097 28.751);
  --secondary-foreground: oklch(0.832 0.063 24.483);
  --accent: oklch(0.455 0.092 114.257);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.661 0.189 39.692);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.39 0.07 71.835);
  --chart-1: oklch(0.39 0.07 71.835);
  --chart-2: oklch(0.325 0.097 28.751);
  --chart-3: oklch(0.455 0.092 114.257);
  --chart-4: oklch(0.353 0.108 28.875);
  --chart-5: oklch(0.393 0.072 71.375);
}