Vibrant for shadcn/ui

Vibrant is a shadcn/ui theme built around a vivid purple primary color (#b103ba) with neutral gray accents (#d6d1d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#b103ba) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080208black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#040104black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#080208black
#ffffffwhite
Primary
#b103badarkviolet
#b103badarkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e1e0e1gainsboro
#1d151eblack
Secondary foreground
#484748darkslategray
#bea6bfsilver
Muted
#f0eaf0whitesmoke
#140f15black
Muted foreground
#666066dimgray
#9e999fdarkgray
Accent
#d6d1d7lightgrey
#312031darkslategray
Accent foreground
#3e373fdarkslategray
#cdb5cfthistle
Destructive
#ae2013firebrick
#cf2617firebrick
Destructive foreground
#fef7f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b103badarkviolet
#b103badarkviolet

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.31:1AAA
Primary button5.86:1AA
Secondary button7.02:1AAA
Muted text5.18:1AA
Accent7.64:1AAA
Destructive6.55:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button5.86:1AA
Secondary button7.95:1AAA
Muted text6.76:1AA
Accent8.03:1AAA
Destructive5.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.024 325.731);
  --muted: oklch(0.944 0.009 324.185);
  --muted-foreground: oklch(0.498 0.012 324.265);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.108 0.024 325.731);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.086 0.019 325.731);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.539 0.25 325.658);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.908 0.001 324.137);
  --secondary-foreground: oklch(0.399 0.003 324.173);
  --accent: oklch(0.866 0.01 324.199);
  --accent-foreground: oklch(0.346 0.018 324.419);
  --destructive: oklch(0.488 0.179 29.993);
  --destructive-foreground: oklch(0.98 0.008 23.662);
  --ring: oklch(0.539 0.25 325.658);
  --chart-1: oklch(0.539 0.25 325.658);
  --chart-2: oklch(0.908 0.001 324.137);
  --chart-3: oklch(0.866 0.01 324.199);
  --chart-4: oklch(0.931 0.001 324.135);
  --chart-5: oklch(0.545 0.254 325.63);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.014 324.556);
  --muted-foreground: oklch(0.688 0.011 324.221);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.539 0.25 325.658);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.211 0.02 324.65);
  --secondary-foreground: oklch(0.754 0.043 324.455);
  --accent: oklch(0.272 0.039 324.897);
  --accent-foreground: oklch(0.802 0.045 324.446);
  --destructive: oklch(0.552 0.205 30.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.539 0.25 325.658);
  --chart-1: oklch(0.539 0.25 325.658);
  --chart-2: oklch(0.211 0.02 324.65);
  --chart-3: oklch(0.272 0.039 324.897);
  --chart-4: oklch(0.243 0.025 324.694);
  --chart-5: oklch(0.545 0.254 325.63);
}