Vibrant for shadcn/ui

Vibrant is a shadcn/ui theme built around a muted green primary color (#bac7b8) with muted green accents (#b8c7bd). The light mode uses a neutral background (#f8fcf7). Dark mode keeps the muted green primary (#bac7b8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf7mintcream
#000000black
Foreground
#030902black
#f6f9f6whitesmoke
Card
#f5fbf4whitesmoke
#030303black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#f8fcf7mintcream
#000000black
Popover foreground
#030902black
#f6f9f6whitesmoke
Primary
#bac7b8silver
#bac7b8silver
Primary foreground
#232b22darkslategray
#232b22darkslategray
Secondary
#c2c7b8silver
#c2c7b8silver
Secondary foreground
#282b22darkslategray
#282b22darkslategray
Muted
#edf3e2beige
#171d0cblack
Muted foreground
#5d654edimgray
#aab19adarkgray
Accent
#b8c7bdsilver
#b8c7bdsilver
Accent foreground
#222b25darkslategray
#222b25darkslategray
Destructive
#811f0emaroon
#e73718orangered
Destructive foreground
#f9cfc8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bac7b8silver
#bac7b8silver

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.60:1AAA
Primary button8.29:1AAA
Secondary button8.31:1AAA
Muted text5.38:1AA
Accent8.27:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.88:1AAA
Primary button8.29:1AAA
Secondary button8.31:1AAA
Muted text7.79:1AAA
Accent8.27:1AAA
Destructive4.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 140.519);
  --foreground: oklch(0.125 0.028 138.371);
  --muted: oklch(0.955 0.022 121.87);
  --muted-foreground: oklch(0.493 0.037 122.729);
  --popover: oklch(0.988 0.008 140.519);
  --popover-foreground: oklch(0.125 0.028 138.371);
  --card: oklch(0.982 0.012 140.513);
  --card-foreground: oklch(0.099 0.022 138.371);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.815 0.025 140.484);
  --primary-foreground: oklch(0.278 0.02 140.425);
  --secondary: oklch(0.821 0.022 121.92);
  --secondary-foreground: oklch(0.282 0.017 122.471);
  --accent: oklch(0.815 0.022 156.708);
  --accent-foreground: oklch(0.277 0.017 155.95);
  --destructive: oklch(0.4 0.136 32.32);
  --destructive-foreground: oklch(0.889 0.049 29.763);
  --ring: oklch(0.815 0.025 140.484);
  --chart-1: oklch(0.815 0.025 140.484);
  --chart-2: oklch(0.821 0.022 121.92);
  --chart-3: oklch(0.815 0.022 156.708);
  --chart-4: oklch(0.843 0.019 121.857);
  --chart-5: oklch(0.818 0.032 140.472);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.005 140.523);
  --muted: oklch(0.218 0.031 123.964);
  --muted-foreground: oklch(0.749 0.034 122.222);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.005 140.523);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.003 140.526);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.815 0.025 140.484);
  --primary-foreground: oklch(0.278 0.02 140.425);
  --secondary: oklch(0.821 0.022 121.92);
  --secondary-foreground: oklch(0.282 0.017 122.471);
  --accent: oklch(0.815 0.022 156.708);
  --accent-foreground: oklch(0.277 0.017 155.95);
  --destructive: oklch(0.608 0.215 32.154);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.025 140.484);
  --chart-1: oklch(0.815 0.025 140.484);
  --chart-2: oklch(0.821 0.022 121.92);
  --chart-3: oklch(0.815 0.022 156.708);
  --chart-4: oklch(0.843 0.019 121.857);
  --chart-5: oklch(0.818 0.032 140.472);
}