Vivo for shadcn/ui

Vivo is a shadcn/ui theme built around a neutral gray primary color (#575459) with neutral gray accents (#565954). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#575459) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#060109black
#ffffffwhite
Card
#ffffffwhite
#030104black
Card foreground
#060109black
#ffffffwhite
Popover
#ffffffwhite
#030104black
Popover foreground
#060109black
#ffffffwhite
Primary
#575459dimgray
#575459dimgray
Primary foreground
#f0eff0whitesmoke
#f0eff0whitesmoke
Secondary
#565954dimgray
#565954dimgray
Secondary foreground
#f0f0efwhitesmoke
#f0f0efwhitesmoke
Muted
#d6e7cagainsboro
#243518darkslategray
Muted foreground
#4a4b49darkslategray
#b5b6b4silver
Accent
#565954dimgray
#565954dimgray
Accent foreground
#f0f0efwhitesmoke
#f0f0efwhitesmoke
Destructive
#bc170bfirebrick
#f33d30tomato
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#575459dimgray
#575459dimgray

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button6.48:1AA
Secondary button6.20:1AA
Muted text6.76:1AA
Accent6.20:1AA
Destructive6.22:1AA
Dark mode
Text on background20.78:1AAA
Text on card20.78:1AAA
Primary button6.48:1AA
Secondary button6.20:1AA
Muted text6.47:1AA
Accent6.20:1AA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.032 314.416);
  --muted: oklch(0.908 0.043 132.118);
  --muted-foreground: oklch(0.41 0.003 131.778);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.032 314.416);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.032 314.416);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.451 0.009 311.56);
  --primary-foreground: oklch(0.954 0.001 311.713);
  --secondary: oklch(0.461 0.009 131.887);
  --secondary-foreground: oklch(0.955 0.001 131.736);
  --accent: oklch(0.461 0.009 131.887);
  --accent-foreground: oklch(0.955 0.001 131.736);
  --destructive: oklch(0.507 0.197 29.742);
  --destructive-foreground: oklch(0.99 0.005 22.266);
  --ring: oklch(0.451 0.009 311.56);
  --chart-1: oklch(0.451 0.009 311.56);
  --chart-2: oklch(0.461 0.009 131.887);
  --chart-3: oklch(0.461 0.009 131.887);
  --chart-4: oklch(0.488 0.01 131.889);
  --chart-5: oklch(0.446 0.018 311.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.018 313.581);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.305 0.054 133.49);
  --muted-foreground: oklch(0.774 0.002 131.748);
  --popover: oklch(0.082 0.018 313.581);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.082 0.018 313.581);
  --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.451 0.009 311.56);
  --primary-foreground: oklch(0.954 0.001 311.713);
  --secondary: oklch(0.461 0.009 131.887);
  --secondary-foreground: oklch(0.955 0.001 131.736);
  --accent: oklch(0.461 0.009 131.887);
  --accent-foreground: oklch(0.955 0.001 131.736);
  --destructive: oklch(0.635 0.22 28.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.451 0.009 311.56);
  --chart-1: oklch(0.451 0.009 311.56);
  --chart-2: oklch(0.461 0.009 131.887);
  --chart-3: oklch(0.461 0.009 131.887);
  --chart-4: oklch(0.488 0.01 131.889);
  --chart-5: oklch(0.446 0.018 311.393);
}