Complex Lavender Blue Shadow for shadcn/ui

Complex Lavender Blue Shadow is a shadcn/ui theme built around a vivid light indigo primary color (#8d8efc) with vivid light violet accents (#c28dfc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light indigo primary (#8d8efc) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#010104black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#030307black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#030307black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#8d8efccornflowerblue
#8d8efccornflowerblue
Primary foreground
#020455midnightblue
#020455midnightblue
Secondary
#8dc6fclightskyblue
#8dc6fclightskyblue
Secondary foreground
#022d55midnightblue
#022d55midnightblue
Muted
#e8edf2lavender
#3a3a6adarkslategray
Muted foreground
#494f55darkslategray
#aab0b6darkgray
Accent
#c28dfcplum
#353683darkslateblue
Accent foreground
#2a0255midnightblue
#ffffffwhite
Destructive
#99140fdarkred
#e81e17crimson
Destructive foreground
#fcdfdfmistyrose
#ffffffwhite
Border
#e9e9eclavender
#3f4074darkslateblue
Input
#e9e9eclavender
#373762darkslategray
Ring
#8d8efccornflowerblue
#8d8efccornflowerblue

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.54:1AAA
Primary button6.45:1AA
Secondary button7.70:1AAA
Muted text7.05:1AAA
Accent6.86:1AA
Destructive6.80:1AA
Dark mode
Text on background19.77:1AAA
Text on card20.07:1AAA
Primary button6.45:1AA
Secondary button7.70:1AAA
Muted text4.81:1AA
Accent10.47:1AAA
Destructive4.53:1AA

CSS variables

Paste this into your globals.css to use Complex Lavender Blue Shadow in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.077 0.016 280.995);
  --muted: oklch(0.945 0.008 246.067);
  --muted-foreground: oklch(0.425 0.013 246.32);
  --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.003 285.555);
  --input: oklch(0.936 0.003 285.555);
  --primary: oklch(0.695 0.158 280.717);
  --primary-foreground: oklch(0.209 0.135 265.657);
  --secondary: oklch(0.808 0.097 247.464);
  --secondary-foreground: oklch(0.294 0.085 251.841);
  --accent: oklch(0.738 0.164 305.022);
  --accent-foreground: oklch(0.245 0.129 297.045);
  --destructive: oklch(0.438 0.167 28.748);
  --destructive-foreground: oklch(0.928 0.031 20.099);
  --ring: oklch(0.695 0.158 280.717);
  --chart-1: oklch(0.695 0.158 280.717);
  --chart-2: oklch(0.808 0.097 247.464);
  --chart-3: oklch(0.738 0.164 305.022);
  --chart-4: oklch(0.832 0.084 247.183);
  --chart-5: oklch(0.692 0.163 280.502);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.08 0.012 282.35);
  --foreground: oklch(0.982 0.003 285.556);
  --muted: oklch(0.373 0.081 281.331);
  --muted-foreground: oklch(0.754 0.011 246.141);
  --popover: oklch(0.101 0.015 282.35);
  --popover-foreground: oklch(0.991 0.002 285.587);
  --card: oklch(0.101 0.015 282.35);
  --card-foreground: oklch(0.991 0.002 285.587);
  --border: oklch(0.398 0.086 281.031);
  --input: oklch(0.359 0.073 281.322);
  --primary: oklch(0.695 0.158 280.717);
  --primary-foreground: oklch(0.209 0.135 265.657);
  --secondary: oklch(0.808 0.097 247.464);
  --secondary-foreground: oklch(0.294 0.085 251.841);
  --accent: oklch(0.379 0.127 278.021);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.231 28.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.695 0.158 280.717);
  --chart-1: oklch(0.695 0.158 280.717);
  --chart-2: oklch(0.808 0.097 247.464);
  --chart-3: oklch(0.379 0.127 278.021);
  --chart-4: oklch(0.832 0.084 247.183);
  --chart-5: oklch(0.692 0.163 280.502);
}