Vivid for shadcn/ui

Vivid is a shadcn/ui theme built around a purple primary color (#dc50da) with pink accents (#dc5094). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#dc50da) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fefbfewhite
#070307black
Foreground
#0f050fblack
#fcf8fcsnow
Card
#fcf8fcsnow
#0b040bblack
Card foreground
#0b040bblack
#fdfcfdwhite
Popover
#fefbfewhite
#070307black
Popover foreground
#0f050fblack
#fcf8fcsnow
Primary
#dc50daorchid
#dc50daorchid
Primary foreground
#000000black
#000000black
Secondary
#9950dcmediumpurple
#9950dcmediumpurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e0f0lavender
#170f1fblack
Muted foreground
#59585adimgray
#a6a5a7darkgray
Accent
#dc5094palevioletred
#dc5094palevioletred
Accent foreground
#000000black
#000000black
Destructive
#d24c04chocolate
#e15205orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dc50daorchid
#dc50daorchid

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.23:1AAA
Primary button6.23:1AA
Secondary button4.61:1AA
Muted text5.51:1AA
Accent5.64:1AA
Destructive4.39:1AA Large
Dark mode
Text on background19.48:1AAA
Text on card19.77:1AAA
Primary button6.23:1AA
Secondary button4.61:1AA
Muted text7.61:1AAA
Accent5.64:1AA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 326.083);
  --foreground: oklch(0.139 0.03 327.555);
  --muted: oklch(0.918 0.023 308.859);
  --muted-foreground: oklch(0.463 0.003 309.056);
  --popover: oklch(0.991 0.004 326.083);
  --popover-foreground: oklch(0.139 0.03 327.555);
  --card: oklch(0.983 0.007 326.114);
  --card-foreground: oklch(0.125 0.026 327.445);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.67 0.232 328.465);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.586 0.207 304.513);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.639 0.186 353.739);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.593 0.181 40.909);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.67 0.232 328.465);
  --chart-1: oklch(0.67 0.232 328.465);
  --chart-2: oklch(0.586 0.207 304.513);
  --chart-3: oklch(0.639 0.186 353.739);
  --chart-4: oklch(0.613 0.194 305.216);
  --chart-5: oklch(0.672 0.24 328.53);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.02 327.273);
  --foreground: oklch(0.983 0.006 326.105);
  --muted: oklch(0.187 0.034 307.153);
  --muted-foreground: oklch(0.723 0.003 309.086);
  --popover: oklch(0.11 0.02 327.273);
  --popover-foreground: oklch(0.983 0.006 326.105);
  --card: oklch(0.126 0.023 327.3);
  --card-foreground: oklch(0.992 0.003 326.079);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.67 0.232 328.465);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.586 0.207 304.513);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.639 0.186 353.739);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.624 0.191 40.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.67 0.232 328.465);
  --chart-1: oklch(0.67 0.232 328.465);
  --chart-2: oklch(0.586 0.207 304.513);
  --chart-3: oklch(0.639 0.186 353.739);
  --chart-4: oklch(0.613 0.194 305.216);
  --chart-5: oklch(0.672 0.24 328.53);
}