Vibrant for shadcn/ui

Vibrant is a shadcn/ui theme built around a vivid teal primary color (#00f5b8) with vivid red accents (#f5003d). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#00f5b8) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050a09black
Foreground
#04110dblack
#ffffffwhite
Card
#f7fdfcmintcream
#070e0cblack
Card foreground
#030d0ablack
#ffffffwhite
Popover
#fbfefdwhite
#050a09black
Popover foreground
#04110dblack
#ffffffwhite
Primary
#00f5b8mediumspringgreen
#00f5b8mediumspringgreen
Primary foreground
#00291fblack
#00291fblack
Secondary
#f5003dcrimson
#f5003dcrimson
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ede8e9linen
#171213black
Muted foreground
#504e4fdarkslategray
#b1afb0darkgray
Accent
#f5003dcrimson
#f5003dcrimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cd3004firebrick
#e13405orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#00f5b8mediumspringgreen
#00f5b8mediumspringgreen

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card19.15:1AAA
Primary button11.01:1AAA
Secondary button4.24:1AA Large
Muted text6.80:1AA
Accent4.24:1AA Large
Destructive5.23:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.51:1AAA
Primary button11.01:1AAA
Secondary button4.24:1AA Large
Muted text8.52:1AAA
Accent4.24:1AA Large
Destructive4.47: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.995 0.004 179.763);
  --foreground: oklch(0.162 0.022 177.094);
  --muted: oklch(0.935 0.006 0.061);
  --muted-foreground: oklch(0.427 0.002 0.01);
  --popover: oklch(0.995 0.004 179.763);
  --popover-foreground: oklch(0.162 0.022 177.094);
  --card: oklch(0.989 0.007 179.658);
  --card-foreground: oklch(0.144 0.019 179.062);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.86 0.177 166.679);
  --primary-foreground: oklch(0.249 0.049 171.637);
  --secondary: oklch(0.613 0.246 20.811);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.613 0.246 20.811);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.555 0.198 33.789);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.177 166.679);
  --chart-1: oklch(0.86 0.177 166.679);
  --chart-2: oklch(0.613 0.246 20.811);
  --chart-3: oklch(0.613 0.246 20.811);
  --chart-4: oklch(0.633 0.253 20.154);
  --chart-5: oklch(0.87 0.18 166.374);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 179.883);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.01 1.304);
  --muted-foreground: oklch(0.756 0.002 359.936);
  --popover: oklch(0.139 0.011 179.883);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.013 178.198);
  --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.86 0.177 166.679);
  --primary-foreground: oklch(0.249 0.049 171.637);
  --secondary: oklch(0.613 0.246 20.811);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.613 0.246 20.811);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.213 33.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.177 166.679);
  --chart-1: oklch(0.86 0.177 166.679);
  --chart-2: oklch(0.613 0.246 20.811);
  --chart-3: oklch(0.613 0.246 20.811);
  --chart-4: oklch(0.633 0.253 20.154);
  --chart-5: oklch(0.87 0.18 166.374);
}