Vigorous for shadcn/ui

Vigorous is a shadcn/ui theme built around a muted cyan primary color (#5c757f) with muted blue accents (#5c647f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#5c757f) on a cyan-tinted background (#070c0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070c0dblack
Foreground
#010304black
#f5f8fawhitesmoke
Card
#ffffffwhite
#070c0dblack
Card foreground
#010304black
#f5f8fawhitesmoke
Popover
#ffffffwhite
#070c0dblack
Popover foreground
#010304black
#f5f8fawhitesmoke
Primary
#5c757fdimgray
#5c757fdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5c7f78dimgray
#5c7f78dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#c9e8e1gainsboro
#17362fdarkslategray
Muted foreground
#575c5bdimgray
#a3a8a7darkgray
Accent
#5c647fdimgray
#5c647fdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#951e04darkred
#f43206orangered
Destructive foreground
#fed6cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c757fdimgray
#5c757fdimgray

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 button4.86:1AA
Secondary button4.40:1AA Large
Muted text5.22:1AA
Accent5.87:1AA
Destructive6.35:1AA
Dark mode
Text on background18.47:1AAA
Text on card18.47:1AAA
Primary button4.86:1AA
Secondary button4.40:1AA Large
Muted text5.45:1AA
Accent5.87:1AA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.094 0.01 217.563);
  --muted: oklch(0.907 0.033 181.011);
  --muted-foreground: oklch(0.469 0.007 181.649);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.094 0.01 217.563);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.094 0.01 217.563);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.547 0.033 223.977);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.568 0.041 179.855);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.045 272.672);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.437 0.158 33.087);
  --destructive-foreground: oklch(0.908 0.046 32.763);
  --ring: oklch(0.547 0.033 223.977);
  --chart-1: oklch(0.547 0.033 223.977);
  --chart-2: oklch(0.568 0.041 179.855);
  --chart-3: oklch(0.506 0.045 272.672);
  --chart-4: oklch(0.596 0.044 179.839);
  --chart-5: oklch(0.549 0.039 224.191);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.008 222.482);
  --foreground: oklch(0.978 0.004 223.171);
  --muted: oklch(0.305 0.039 177.644);
  --muted-foreground: oklch(0.728 0.006 181.826);
  --popover: oklch(0.148 0.008 222.482);
  --popover-foreground: oklch(0.978 0.004 223.171);
  --card: oklch(0.148 0.008 222.482);
  --card-foreground: oklch(0.978 0.004 223.171);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.547 0.033 223.977);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.568 0.041 179.855);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.506 0.045 272.672);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.232 32.441);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.547 0.033 223.977);
  --chart-1: oklch(0.547 0.033 223.977);
  --chart-2: oklch(0.568 0.041 179.855);
  --chart-3: oklch(0.506 0.045 272.672);
  --chart-4: oklch(0.596 0.044 179.839);
  --chart-5: oklch(0.549 0.039 224.191);
}