Vivacious for shadcn/ui

Vivacious is a shadcn/ui theme built around a muted light violet primary color (#d4c2db) with muted light green accents (#cadbc2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light violet primary (#d4c2db) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#060208black
#f8f6f9whitesmoke
Card
#fbf6fdghostwhite
#030303black
Card foreground
#030104black
#faf9fbghostwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#060208black
#f8f6f9whitesmoke
Primary
#d4c2dbthistle
#d4c2dbthistle
Primary foreground
#3b2843darkslategray
#3b2843darkslategray
Secondary
#cadbc2lightgrey
#cadbc2lightgrey
Secondary foreground
#304328darkslategray
#304328darkslategray
Muted
#f1f6efwhitesmoke
#0b1009black
Muted foreground
#50564ddarkslategray
#abb2a9darkgray
Accent
#cadbc2lightgrey
#cadbc2lightgrey
Accent foreground
#304328darkslategray
#304328darkslategray
Destructive
#900804darkred
#e50d06red
Destructive foreground
#fecac8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d4c2dbthistle
#d4c2dbthistle

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.57:1AAA
Primary button7.97:1AAA
Secondary button7.36:1AAA
Muted text6.88:1AA
Accent7.36:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.70:1AAA
Primary button7.97:1AAA
Secondary button7.36:1AAA
Muted text8.83:1AAA
Accent7.36:1AAA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 316.002);
  --foreground: oklch(0.105 0.023 317.914);
  --muted: oklch(0.967 0.011 136.062);
  --muted-foreground: oklch(0.446 0.018 136.172);
  --popover: oklch(0.99 0.005 316.002);
  --popover-foreground: oklch(0.105 0.023 317.914);
  --card: oklch(0.98 0.011 315.983);
  --card-foreground: oklch(0.083 0.018 317.914);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.04 315.853);
  --primary-foreground: oklch(0.311 0.055 315.35);
  --secondary: oklch(0.872 0.039 136.19);
  --secondary-foreground: oklch(0.36 0.052 136.676);
  --accent: oklch(0.872 0.039 136.19);
  --accent-foreground: oklch(0.36 0.052 136.676);
  --destructive: oklch(0.414 0.165 29.425);
  --destructive-foreground: oklch(0.884 0.059 20.629);
  --ring: oklch(0.836 0.04 315.853);
  --chart-1: oklch(0.836 0.04 315.853);
  --chart-2: oklch(0.872 0.039 136.19);
  --chart-3: oklch(0.872 0.039 136.19);
  --chart-4: oklch(0.892 0.033 136.158);
  --chart-5: oklch(0.834 0.044 315.833);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 316.004);
  --muted: oklch(0.166 0.017 136.369);
  --muted-foreground: oklch(0.756 0.016 136.098);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 316.004);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.003 316.01);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.836 0.04 315.853);
  --primary-foreground: oklch(0.311 0.055 315.35);
  --secondary: oklch(0.872 0.039 136.19);
  --secondary-foreground: oklch(0.36 0.052 136.676);
  --accent: oklch(0.872 0.039 136.19);
  --accent-foreground: oklch(0.36 0.052 136.676);
  --destructive: oklch(0.581 0.234 29.351);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.836 0.04 315.853);
  --chart-1: oklch(0.836 0.04 315.853);
  --chart-2: oklch(0.872 0.039 136.19);
  --chart-3: oklch(0.872 0.039 136.19);
  --chart-4: oklch(0.892 0.033 136.158);
  --chart-5: oklch(0.834 0.044 315.833);
}