Vegetarianism for shadcn/ui

Vegetarianism is a shadcn/ui theme built around a deep yellow primary color (#41340b) with deep blue accents (#0b1941). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#41340b) on a yellow-tinted background (#100d04).

Color palette

TokenLightDark
Background
#fefdfbsnow
#100d04black
Foreground
#120e02black
#fdfdfbsnow
Card
#fefdfbsnow
#100d04black
Card foreground
#120e02black
#fdfdfbsnow
Popover
#fefdfbsnow
#100d04black
Popover foreground
#120e02black
#fdfdfbsnow
Primary
#41340bdarkolivegreen
#41340bdarkolivegreen
Primary foreground
#deb53bgoldenrod
#deb53bgoldenrod
Secondary
#0b1941midnightblue
#0b1941midnightblue
Secondary foreground
#92a9edskyblue
#92a9edskyblue
Muted
#e9eaeclavender
#131416black
Muted foreground
#3b404edarkslategray
#b1b5c4silver
Accent
#0b1941midnightblue
#0b1941midnightblue
Accent foreground
#92a9edskyblue
#92a9edskyblue
Destructive
#9e0f05darkred
#f93d2ftomato
Destructive foreground
#fedad7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#41340bdarkolivegreen
#41340bdarkolivegreen

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button6.26:1AA
Secondary button7.42:1AAA
Muted text8.59:1AAA
Accent7.42:1AAA
Destructive6.40:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button6.26:1AA
Secondary button7.42:1AAA
Muted text9.03:1AAA
Accent7.42:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 91.439);
  --foreground: oklch(0.165 0.027 94.556);
  --muted: oklch(0.937 0.003 271.38);
  --muted-foreground: oklch(0.373 0.026 270.642);
  --popover: oklch(0.995 0.003 91.439);
  --popover-foreground: oklch(0.165 0.027 94.556);
  --card: oklch(0.995 0.003 91.439);
  --card-foreground: oklch(0.165 0.027 94.556);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.331 0.059 89.787);
  --primary-foreground: oklch(0.789 0.142 89.692);
  --secondary: oklch(0.229 0.08 266.215);
  --secondary-foreground: oklch(0.742 0.102 269.674);
  --accent: oklch(0.229 0.08 266.215);
  --accent-foreground: oklch(0.742 0.102 269.674);
  --destructive: oklch(0.446 0.175 29.873);
  --destructive-foreground: oklch(0.918 0.04 22.753);
  --ring: oklch(0.331 0.059 89.787);
  --chart-1: oklch(0.331 0.059 89.787);
  --chart-2: oklch(0.229 0.08 266.215);
  --chart-3: oklch(0.229 0.08 266.215);
  --chart-4: oklch(0.255 0.093 265.95);
  --chart-5: oklch(0.333 0.061 89.54);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.019 93.789);
  --foreground: oklch(0.994 0.002 91.427);
  --muted: oklch(0.19 0.004 271.177);
  --muted-foreground: oklch(0.775 0.021 271.136);
  --popover: oklch(0.16 0.019 93.789);
  --popover-foreground: oklch(0.994 0.002 91.427);
  --card: oklch(0.16 0.019 93.789);
  --card-foreground: oklch(0.994 0.002 91.427);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.331 0.059 89.787);
  --primary-foreground: oklch(0.789 0.142 89.692);
  --secondary: oklch(0.229 0.08 266.215);
  --secondary-foreground: oklch(0.742 0.102 269.674);
  --accent: oklch(0.229 0.08 266.215);
  --accent-foreground: oklch(0.742 0.102 269.674);
  --destructive: oklch(0.644 0.225 29.069);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.331 0.059 89.787);
  --chart-1: oklch(0.331 0.059 89.787);
  --chart-2: oklch(0.229 0.08 266.215);
  --chart-3: oklch(0.229 0.08 266.215);
  --chart-4: oklch(0.255 0.093 265.95);
  --chart-5: oklch(0.333 0.061 89.54);
}