Vigorous for shadcn/ui

Vigorous is a shadcn/ui theme built around a blue primary color (#77aedf) with indigo accents (#777adf). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#77aedf) on a blue-tinted background (#070a0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070a0dblack
Foreground
#010304black
#f6f7f9whitesmoke
Card
#ffffffwhite
#070a0dblack
Card foreground
#010304black
#f6f7f9whitesmoke
Popover
#ffffffwhite
#070a0dblack
Popover foreground
#010304black
#f6f7f9whitesmoke
Primary
#77aedfcornflowerblue
#77aedfcornflowerblue
Primary foreground
#07131dblack
#07131dblack
Secondary
#77dfdcskyblue
#77dfdcskyblue
Secondary foreground
#071d1cblack
#071d1cblack
Muted
#e7eeeelavender
#111818black
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#777adfmediumslateblue
#777adfmediumslateblue
Accent foreground
#000000black
#000000black
Destructive
#be2709firebrick
#f65b3ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#77aedfcornflowerblue
#77aedfcornflowerblue

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 button7.96:1AAA
Secondary button11.12:1AAA
Muted text5.53:1AA
Accent5.63:1AA
Destructive6.02:1AA
Dark mode
Text on background18.47:1AAA
Text on card18.47:1AAA
Primary button7.96:1AAA
Secondary button11.12:1AAA
Muted text6.95:1AA
Accent5.63:1AA
Destructive6.47:1AA

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.09 0.01 235.863);
  --muted: oklch(0.945 0.008 194.627);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.09 0.01 235.863);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.09 0.01 235.863);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.732 0.092 245.89);
  --primary-foreground: oklch(0.179 0.028 245.764);
  --secondary: oklch(0.84 0.098 192.613);
  --secondary-foreground: oklch(0.212 0.028 192.293);
  --accent: oklch(0.624 0.15 279.631);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.521 0.19 32.352);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.092 245.89);
  --chart-1: oklch(0.732 0.092 245.89);
  --chart-2: oklch(0.84 0.098 192.613);
  --chart-3: oklch(0.624 0.15 279.631);
  --chart-4: oklch(0.853 0.091 192.816);
  --chart-5: oklch(0.732 0.096 246.002);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.009 242.428);
  --foreground: oklch(0.977 0.003 244.127);
  --muted: oklch(0.202 0.012 193.741);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.144 0.009 242.428);
  --popover-foreground: oklch(0.977 0.003 244.127);
  --card: oklch(0.144 0.009 242.428);
  --card-foreground: oklch(0.977 0.003 244.127);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.732 0.092 245.89);
  --primary-foreground: oklch(0.179 0.028 245.764);
  --secondary: oklch(0.84 0.098 192.613);
  --secondary-foreground: oklch(0.212 0.028 192.293);
  --accent: oklch(0.624 0.15 279.631);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.671 0.195 33.203);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.732 0.092 245.89);
  --chart-1: oklch(0.732 0.092 245.89);
  --chart-2: oklch(0.84 0.098 192.613);
  --chart-3: oklch(0.624 0.15 279.631);
  --chart-4: oklch(0.853 0.091 192.816);
  --chart-5: oklch(0.732 0.096 246.002);
}