Omnivore for shadcn/ui

Omnivore is a shadcn/ui theme built around a muted green primary color (#4c765a) with muted orange accents (#765a4c). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#4c765a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#031108black
#ffffffwhite
Card
#fbfefcwhite
#000000black
Card foreground
#031108black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#031108black
#ffffffwhite
Primary
#4c765adimgray
#4c765adimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5a4c76darkslateblue
#5a4c76darkslateblue
Secondary foreground
#faf9fbghostwhite
#faf9fbghostwhite
Muted
#dad3e8gainsboro
#1e172cblack
Muted foreground
#414045darkslategray
#bcbabfsilver
Accent
#765a4cdimgray
#765a4cdimgray
Accent foreground
#fbfaf9snow
#fbfaf9snow
Destructive
#983a0bsaddlebrown
#f0783dcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4c765adimgray
#4c765adimgray

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button5.18:1AA
Secondary button7.36:1AAA
Muted text7.09:1AAA
Accent6.04:1AA
Destructive7.13:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.18:1AA
Secondary button7.36:1AAA
Muted text9.02:1AAA
Accent6.04:1AA
Destructive7.49:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 157.175);
  --foreground: oklch(0.162 0.031 155.218);
  --muted: oklch(0.88 0.03 300.947);
  --muted-foreground: oklch(0.374 0.009 301.096);
  --popover: oklch(0.994 0.004 157.175);
  --popover-foreground: oklch(0.162 0.031 155.218);
  --card: oklch(0.994 0.004 157.175);
  --card-foreground: oklch(0.162 0.031 155.218);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.527 0.065 154.384);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.447 0.07 298.865);
  --secondary-foreground: oklch(0.983 0.003 301.443);
  --accent: oklch(0.492 0.044 47.814);
  --accent-foreground: oklch(0.985 0.002 48.727);
  --destructive: oklch(0.474 0.136 41.978);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.527 0.065 154.384);
  --chart-1: oklch(0.527 0.065 154.384);
  --chart-2: oklch(0.447 0.07 298.865);
  --chart-3: oklch(0.492 0.044 47.814);
  --chart-4: oklch(0.471 0.075 298.836);
  --chart-5: oklch(0.532 0.074 153.994);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.041 298.325);
  --muted-foreground: oklch(0.792 0.008 301.338);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.527 0.065 154.384);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.447 0.07 298.865);
  --secondary-foreground: oklch(0.983 0.003 301.443);
  --accent: oklch(0.492 0.044 47.814);
  --accent-foreground: oklch(0.985 0.002 48.727);
  --destructive: oklch(0.703 0.165 44.99);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.527 0.065 154.384);
  --chart-1: oklch(0.527 0.065 154.384);
  --chart-2: oklch(0.447 0.07 298.865);
  --chart-3: oklch(0.492 0.044 47.814);
  --chart-4: oklch(0.471 0.075 298.836);
  --chart-5: oklch(0.532 0.074 153.994);
}