Vegetarianism for shadcn/ui

Vegetarianism is a shadcn/ui theme built around a vivid deep indigo primary color (#0f005c) with vivid deep green accents (#005c0f). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the vivid deep indigo primary (#0f005c) on a neutral background (#030308).

Color palette

TokenLightDark
Background
#fcfbfdsnow
#030308black
Foreground
#060317black
#fcfcfdwhite
Card
#f9f8fcghostwhite
#05040bblack
Card foreground
#050212black
#ffffffwhite
Popover
#fcfbfdsnow
#030308black
Popover foreground
#060317black
#fcfcfdwhite
Primary
#0f005cmidnightblue
#0f005cmidnightblue
Primary foreground
#a18fffmediumpurple
#a18fffmediumpurple
Secondary
#5c0f00maroon
#5c0f00maroon
Secondary foreground
#ffa28flightsalmon
#ffa28flightsalmon
Muted
#dcd6d5gainsboro
#2a2423darkslategray
Muted foreground
#5d5b5bdimgray
#a4a3a2darkgray
Accent
#005c0fdarkgreen
#005c0fdarkgreen
Accent foreground
#29ff4climegreen
#29ff4climegreen
Destructive
#682b08saddlebrown
#da5a10chocolate
Destructive foreground
#f9c7aanavajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f005cmidnightblue
#0f005cmidnightblue

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.37:1AAA
Primary button6.71:1AA
Secondary button7.10:1AAA
Muted text4.71:1AA
Accent6.12:1AA
Destructive7.08:1AAA
Dark mode
Text on background20.09:1AAA
Text on card20.41:1AAA
Primary button6.71:1AA
Secondary button7.10:1AAA
Muted text6.07:1AA
Accent6.12:1AA
Destructive3.83: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.99 0.003 294.017);
  --foreground: oklch(0.123 0.047 288.537);
  --muted: oklch(0.882 0.007 31.057);
  --muted-foreground: oklch(0.473 0.002 31.051);
  --popover: oklch(0.99 0.003 294.017);
  --popover-foreground: oklch(0.123 0.047 288.537);
  --card: oklch(0.981 0.005 293.968);
  --card-foreground: oklch(0.112 0.041 289.884);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.224 0.143 272.953);
  --primary-foreground: oklch(0.714 0.16 289.356);
  --secondary: oklch(0.31 0.111 33.962);
  --secondary-foreground: oklch(0.8 0.115 31.977);
  --accent: oklch(0.412 0.133 144.203);
  --accent-foreground: oklch(0.872 0.268 144.572);
  --destructive: oklch(0.371 0.098 45.512);
  --destructive-foreground: oklch(0.865 0.069 51.561);
  --ring: oklch(0.224 0.143 272.953);
  --chart-1: oklch(0.224 0.143 272.953);
  --chart-2: oklch(0.31 0.111 33.962);
  --chart-3: oklch(0.412 0.133 144.203);
  --chart-4: oklch(0.343 0.125 33.398);
  --chart-5: oklch(0.223 0.146 272.22);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.018 292.815);
  --foreground: oklch(0.991 0.002 294.031);
  --muted: oklch(0.266 0.009 31.142);
  --muted-foreground: oklch(0.715 0.002 31.048);
  --popover: oklch(0.1 0.018 292.815);
  --popover-foreground: oklch(0.991 0.002 294.031);
  --card: oklch(0.114 0.021 292.739);
  --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.224 0.143 272.953);
  --primary-foreground: oklch(0.714 0.16 289.356);
  --secondary: oklch(0.31 0.111 33.962);
  --secondary-foreground: oklch(0.8 0.115 31.977);
  --accent: oklch(0.412 0.133 144.203);
  --accent-foreground: oklch(0.872 0.268 144.572);
  --destructive: oklch(0.625 0.177 43.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.224 0.143 272.953);
  --chart-1: oklch(0.224 0.143 272.953);
  --chart-2: oklch(0.31 0.111 33.962);
  --chart-3: oklch(0.412 0.133 144.203);
  --chart-4: oklch(0.343 0.125 33.398);
  --chart-5: oklch(0.223 0.146 272.22);
}