Exciting Violet Glow for shadcn/ui

Exciting Violet Glow is a shadcn/ui theme built around a vivid indigo primary color (#3a29f5) with vivid green accents (#29f53a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#3a29f5) on an indigo-tinted background (#06060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#06060fblack
Foreground
#000000black
#f5f5fawhitesmoke
Card
#fcfcfcsnow
#080713black
Card foreground
#000000black
#f8f8fcghostwhite
Popover
#fcfcfcsnow
#080713black
Popover foreground
#000000black
#f8f8fcghostwhite
Primary
#3a29f5royalblue
#3a29f5royalblue
Primary foreground
#edecfelavender
#edecfelavender
Secondary
#f53a29orangered
#f53a29orangered
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebd3d1gainsboro
#2e1614black
Muted foreground
#626060dimgray
#9f9d9ddarkgray
Accent
#29f53alimegreen
#29f53alimegreen
Accent foreground
#044e0adarkgreen
#044e0adarkgreen
Destructive
#7d220dmaroon
#e23d18orangered
Destructive foreground
#f9cdc3pink
#ffffffwhite
Border
#e9e9eclavender
#18181bblack
Input
#e9e9eclavender
#18181bblack
Ring
#3a29f5royalblue
#3a29f5royalblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.41:1AA
Secondary button3.81:1AA Large
Muted text4.38:1AA Large
Accent6.76:1AA
Destructive6.94:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.89:1AAA
Primary button6.41:1AA
Secondary button3.81:1AA Large
Muted text6.25:1AA
Accent6.76:1AA
Destructive4.27:1AA Large

CSS variables

Paste this into your globals.css to use Exciting Violet Glow in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.027 23.907);
  --muted-foreground: oklch(0.491 0.002 23.626);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.936 0.004 290.17);
  --input: oklch(0.936 0.004 290.17);
  --primary: oklch(0.479 0.277 272.215);
  --primary-foreground: oklch(0.948 0.025 289.748);
  --secondary: oklch(0.635 0.225 29.809);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.845 0.268 143.472);
  --accent-foreground: oklch(0.368 0.118 143.51);
  --destructive: oklch(0.394 0.129 33.811);
  --destructive-foreground: oklch(0.883 0.052 32.796);
  --ring: oklch(0.479 0.277 272.215);
  --chart-1: oklch(0.479 0.277 272.215);
  --chart-2: oklch(0.635 0.225 29.809);
  --chart-3: oklch(0.845 0.268 143.472);
  --chart-4: oklch(0.649 0.213 29.348);
  --chart-5: oklch(0.479 0.284 271.463);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.023 287.511);
  --foreground: oklch(0.971 0.007 290.113);
  --muted: oklch(0.235 0.04 26.038);
  --muted-foreground: oklch(0.698 0.002 23.61);
  --popover: oklch(0.137 0.026 286.835);
  --popover-foreground: oklch(0.981 0.005 290.159);
  --card: oklch(0.137 0.026 286.835);
  --card-foreground: oklch(0.981 0.005 290.159);
  --border: oklch(0.21 0.007 289.611);
  --input: oklch(0.21 0.007 289.611);
  --primary: oklch(0.479 0.277 272.215);
  --primary-foreground: oklch(0.948 0.025 289.748);
  --secondary: oklch(0.635 0.225 29.809);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.845 0.268 143.472);
  --accent-foreground: oklch(0.368 0.118 143.51);
  --destructive: oklch(0.604 0.207 33.483);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.479 0.277 272.215);
  --chart-1: oklch(0.479 0.277 272.215);
  --chart-2: oklch(0.635 0.225 29.809);
  --chart-3: oklch(0.845 0.268 143.472);
  --chart-4: oklch(0.649 0.213 29.348);
  --chart-5: oklch(0.479 0.284 271.463);
}