Violet Glow Walrus for shadcn/ui

Violet Glow Walrus is a shadcn/ui theme built around a vivid indigo primary color (#421af4) with neutral gray accents (#cdccd1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#421af4) on an indigo-tinted background (#06050b).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06050bblack
Foreground
#080415black
#ffffffwhite
Card
#fcfbfewhite
#06050bblack
Card foreground
#080415black
#ffffffwhite
Popover
#fcfbfewhite
#06050bblack
Popover foreground
#080415black
#ffffffwhite
Primary
#421af4blue
#421af4blue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdccd1lightgrey
#2f2c3adarkslategray
Secondary foreground
#343239darkslategray
#c8c5d3thistle
Muted
#dbd8e9gainsboro
#191627black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#cdccd1lightgrey
#2f2c3adarkslategray
Accent foreground
#343239darkslategray
#c8c5d3thistle
Destructive
#952c09saddlebrown
#f26536tomato
Destructive foreground
#fcded4antiquewhite
#000000black
Border
#e7e6ealavender
#1b1a1eblack
Input
#e7e6ealavender
#1b1a1eblack
Ring
#421af4blue
#421af4blue

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button7.80:1AAA
Secondary button7.89:1AAA
Muted text5.84:1AA
Accent7.89:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button7.80:1AAA
Secondary button8.00:1AAA
Muted text8.16:1AAA
Accent8.00:1AAA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 294.768);
  --foreground: oklch(0.129 0.038 290.718);
  --muted: oklch(0.889 0.023 294.331);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.99 0.003 294.768);
  --popover-foreground: oklch(0.129 0.038 290.718);
  --card: oklch(0.99 0.003 294.768);
  --card-foreground: oklch(0.129 0.038 290.718);
  --border: oklch(0.927 0.005 294.724);
  --input: oklch(0.927 0.005 294.724);
  --primary: oklch(0.472 0.282 274.92);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.847 0.008 294.647);
  --secondary-foreground: oklch(0.322 0.011 294.164);
  --accent: oklch(0.847 0.008 294.647);
  --accent-foreground: oklch(0.322 0.011 294.164);
  --destructive: oklch(0.45 0.145 36.501);
  --destructive-foreground: oklch(0.923 0.036 39.315);
  --ring: oklch(0.472 0.282 274.92);
  --chart-1: oklch(0.472 0.282 274.92);
  --chart-2: oklch(0.847 0.008 294.647);
  --chart-3: oklch(0.847 0.008 294.647);
  --chart-4: oklch(0.871 0.007 294.68);
  --chart-5: oklch(0.473 0.288 274.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.017 293.982);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.033 291.707);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.118 0.017 293.982);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.017 293.982);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.22 0.009 294.08);
  --input: oklch(0.22 0.009 294.08);
  --primary: oklch(0.472 0.282 274.92);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.303 0.024 293.326);
  --secondary-foreground: oklch(0.831 0.018 294.409);
  --accent: oklch(0.303 0.024 293.326);
  --accent-foreground: oklch(0.831 0.018 294.409);
  --destructive: oklch(0.677 0.185 38.211);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.472 0.282 274.92);
  --chart-1: oklch(0.472 0.282 274.92);
  --chart-2: oklch(0.303 0.024 293.326);
  --chart-3: oklch(0.303 0.024 293.326);
  --chart-4: oklch(0.33 0.027 293.278);
  --chart-5: oklch(0.473 0.288 274.086);
}