Illustrious for shadcn/ui

Illustrious is a shadcn/ui theme built around a light purple primary color (#e4a3eb) with light teal accents (#a3ebe4). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light purple primary (#e4a3eb) on a purple-tinted background (#0f0410).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0f0410black
Foreground
#080109black
#fdfcfdwhite
Card
#fdfbfdsnow
#0f0410black
Card foreground
#080109black
#fdfcfdwhite
Popover
#fdfbfdsnow
#0f0410black
Popover foreground
#080109black
#fdfcfdwhite
Primary
#e4a3ebplum
#e4a3ebplum
Primary foreground
#45114bindigo
#45114bindigo
Secondary
#ebe4a3palegoldenrod
#ebe4a3palegoldenrod
Secondary foreground
#4b4511darkolivegreen
#4b4511darkolivegreen
Muted
#eae9dcbeige
#232215black
Muted foreground
#757257dimgray
#a8a58arosybrown
Accent
#a3ebe4paleturquoise
#a3ebe4paleturquoise
Accent foreground
#114b45darkslategray
#114b45darkslategray
Destructive
#b03a07firebrick
#f55814orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4a3ebplum
#e4a3ebplum

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button7.47:1AAA
Secondary button7.46:1AAA
Muted text3.99:1AA Large
Accent7.34:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button7.47:1AAA
Secondary button7.46:1AAA
Muted text6.41:1AA
Accent7.34:1AAA
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 322.641);
  --foreground: oklch(0.103 0.036 325.162);
  --muted: oklch(0.931 0.018 101.581);
  --muted-foreground: oklch(0.548 0.041 102.343);
  --popover: oklch(0.991 0.003 322.641);
  --popover-foreground: oklch(0.103 0.036 325.162);
  --card: oklch(0.991 0.003 322.641);
  --card-foreground: oklch(0.103 0.036 325.162);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.8 0.121 323.182);
  --primary-foreground: oklch(0.294 0.112 323.564);
  --secondary: oklch(0.908 0.083 102.54);
  --secondary-foreground: oklch(0.387 0.071 102.871);
  --accent: oklch(0.89 0.072 188.119);
  --accent-foreground: oklch(0.376 0.059 185.218);
  --destructive: oklch(0.515 0.162 38.609);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.121 323.182);
  --chart-1: oklch(0.8 0.121 323.182);
  --chart-2: oklch(0.908 0.083 102.54);
  --chart-3: oklch(0.89 0.072 188.119);
  --chart-4: oklch(0.92 0.072 102.393);
  --chart-5: oklch(0.8 0.126 323.204);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.033 323.848);
  --foreground: oklch(0.992 0.003 322.637);
  --muted: oklch(0.249 0.023 102.562);
  --muted-foreground: oklch(0.718 0.039 102.081);
  --popover: oklch(0.137 0.033 323.848);
  --popover-foreground: oklch(0.992 0.003 322.637);
  --card: oklch(0.137 0.033 323.848);
  --card-foreground: oklch(0.992 0.003 322.637);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.8 0.121 323.182);
  --primary-foreground: oklch(0.294 0.112 323.564);
  --secondary: oklch(0.908 0.083 102.54);
  --secondary-foreground: oklch(0.387 0.071 102.871);
  --accent: oklch(0.89 0.072 188.119);
  --accent-foreground: oklch(0.376 0.059 185.218);
  --destructive: oklch(0.664 0.205 39.105);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.121 323.182);
  --chart-1: oklch(0.8 0.121 323.182);
  --chart-2: oklch(0.908 0.083 102.54);
  --chart-3: oklch(0.89 0.072 188.119);
  --chart-4: oklch(0.92 0.072 102.393);
  --chart-5: oklch(0.8 0.126 323.204);
}