Vigorous for shadcn/ui

Vigorous is a shadcn/ui theme built around a green primary color (#4fc47a) with pink accents (#c44f99). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#4fc47a) on a green-tinted background (#041009).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#041009black
Foreground
#000000black
#ffffffwhite
Card
#f8fcf9mintcream
#041009black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcf9mintcream
#041009black
Popover foreground
#000000black
#ffffffwhite
Primary
#4fc47amediumseagreen
#4fc47amediumseagreen
Primary foreground
#12361fdarkgreen
#12361fdarkgreen
Secondary
#c44f99palevioletred
#c44f99palevioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ead6e3gainsboro
#291521black
Muted foreground
#493742darkslategray
#c8b6c2silver
Accent
#c44f99palevioletred
#c44f99palevioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#850b05maroon
#f6190ered
Destructive foreground
#fdc2bflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4fc47amediumseagreen
#4fc47amediumseagreen

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.06:1AA
Secondary button4.25:1AA Large
Muted text8.00:1AAA
Accent4.25:1AA Large
Destructive6.66:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.06:1AA
Secondary button4.25:1AA Large
Muted text8.96:1AAA
Accent4.25:1AA Large
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 158.605);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.897 0.028 339.375);
  --muted-foreground: oklch(0.36 0.031 340.481);
  --popover: oklch(0.987 0.005 158.605);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 158.605);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.736 0.151 152.772);
  --primary-foreground: oklch(0.298 0.058 153.175);
  --secondary: oklch(0.604 0.171 344.491);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.604 0.171 344.491);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.392 0.154 29.587);
  --destructive-foreground: oklch(0.866 0.068 22.022);
  --ring: oklch(0.736 0.151 152.772);
  --chart-1: oklch(0.736 0.151 152.772);
  --chart-2: oklch(0.604 0.171 344.491);
  --chart-3: oklch(0.604 0.171 344.491);
  --chart-4: oklch(0.627 0.161 343.872);
  --chart-5: oklch(0.744 0.158 152.437);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.025 156.978);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.039 342.148);
  --muted-foreground: oklch(0.796 0.025 339.392);
  --popover: oklch(0.158 0.025 156.978);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.025 156.978);
  --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.736 0.151 152.772);
  --primary-foreground: oklch(0.298 0.058 153.175);
  --secondary: oklch(0.604 0.171 344.491);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.604 0.171 344.491);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.618 0.245 29.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.151 152.772);
  --chart-1: oklch(0.736 0.151 152.772);
  --chart-2: oklch(0.604 0.171 344.491);
  --chart-3: oklch(0.604 0.171 344.491);
  --chart-4: oklch(0.627 0.161 343.872);
  --chart-5: oklch(0.744 0.158 152.437);
}