Vivacious for shadcn/ui

Vivacious is a shadcn/ui theme built around a deep blue primary color (#0b243c) with near-white accents (#e7e8e9). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#0b243c) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fbfcfewhite
#010304black
Foreground
#03080cblack
#fcfcfdwhite
Card
#f7fafdghostwhite
#020508black
Card foreground
#020508black
#ffffffwhite
Popover
#f7fafdghostwhite
#020508black
Popover foreground
#020508black
#ffffffwhite
Primary
#0b243cmidnightblue
#0b243cmidnightblue
Primary foreground
#8fbdeaskyblue
#8fbdeaskyblue
Secondary
#e7e8e9lavender
#12171cblack
Secondary foreground
#4a4f54darkslategray
#a0b0c0darkgray
Muted
#e9edf1lavender
#0e1216black
Muted foreground
#3e454cdarkslategray
#b3bac1silver
Accent
#e7e8e9lavender
#12171cblack
Accent foreground
#4a4f54darkslategray
#a0b0c0darkgray
Destructive
#730b07maroon
#f2413atomato
Destructive foreground
#fab5b2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b243cmidnightblue
#0b243cmidnightblue

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.49:1AAA
Primary button8.00:1AAA
Secondary button6.74:1AA
Muted text8.27:1AAA
Accent6.74:1AA
Destructive6.91:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.41:1AAA
Primary button8.00:1AAA
Secondary button8.12:1AAA
Muted text9.60:1AAA
Accent8.12:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 247.847);
  --foreground: oklch(0.128 0.016 239.847);
  --muted: oklch(0.945 0.007 247.9);
  --muted-foreground: oklch(0.386 0.015 248.211);
  --popover: oklch(0.983 0.005 247.874);
  --popover-foreground: oklch(0.112 0.014 239.035);
  --card: oklch(0.983 0.005 247.874);
  --card-foreground: oklch(0.112 0.014 239.035);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.254 0.056 250.967);
  --primary-foreground: oklch(0.782 0.082 248.913);
  --secondary: oklch(0.93 0.002 247.848);
  --secondary-foreground: oklch(0.425 0.01 248.063);
  --accent: oklch(0.93 0.002 247.848);
  --accent-foreground: oklch(0.425 0.01 248.063);
  --destructive: oklch(0.356 0.137 28.898);
  --destructive-foreground: oklch(0.836 0.081 21.172);
  --ring: oklch(0.254 0.056 250.967);
  --chart-1: oklch(0.254 0.056 250.967);
  --chart-2: oklch(0.93 0.002 247.848);
  --chart-3: oklch(0.93 0.002 247.848);
  --chart-4: oklch(0.954 0.002 247.839);
  --chart-5: oklch(0.254 0.058 251.191);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.01 239.608);
  --foreground: oklch(0.992 0.002 247.838);
  --muted: oklch(0.179 0.011 248.424);
  --muted-foreground: oklch(0.786 0.012 247.986);
  --popover: oklch(0.112 0.013 239.608);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.112 0.013 239.608);
  --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.254 0.056 250.967);
  --primary-foreground: oklch(0.782 0.082 248.913);
  --secondary: oklch(0.202 0.012 248.402);
  --secondary-foreground: oklch(0.75 0.029 248.212);
  --accent: oklch(0.202 0.012 248.402);
  --accent-foreground: oklch(0.75 0.029 248.212);
  --destructive: oklch(0.638 0.215 27.274);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.254 0.056 250.967);
  --chart-1: oklch(0.254 0.056 250.967);
  --chart-2: oklch(0.202 0.012 248.402);
  --chart-3: oklch(0.202 0.012 248.402);
  --chart-4: oklch(0.234 0.015 248.463);
  --chart-5: oklch(0.254 0.058 251.191);
}