Illustrious for shadcn/ui

Illustrious is a shadcn/ui theme built around a deep purple primary color (#491650) with deep pink accents (#50163a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#491650) on a neutral background (#070308).

Color palette

TokenLightDark
Background
#ffffffwhite
#070308black
Foreground
#0b030cblack
#ffffffwhite
Card
#fcfcfcsnow
#0b040bblack
Card foreground
#070208black
#ffffffwhite
Popover
#fcfcfcsnow
#0b040bblack
Popover foreground
#070208black
#ffffffwhite
Primary
#491650indigo
#491650indigo
Primary foreground
#e2afe9plum
#e2afe9plum
Secondary
#2c1650midnightblue
#2c1650midnightblue
Secondary foreground
#c5afe9thistle
#c5afe9thistle
Muted
#efecf3whitesmoke
#0e0c13black
Muted foreground
#50495adarkslategray
#aba5b6darkgray
Accent
#50163adarkslategray
#50163adarkslategray
Accent foreground
#e9afd3plum
#e9afd3plum
Destructive
#c82504firebrick
#fa3f19orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#491650indigo
#491650indigo

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.12:1AAA
Primary button7.61:1AAA
Secondary button7.98:1AAA
Muted text7.35:1AAA
Accent7.60:1AAA
Destructive5.65:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.27:1AAA
Primary button7.61:1AAA
Secondary button7.98:1AAA
Muted text8.14:1AAA
Accent7.60:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.03 323.75);
  --muted: oklch(0.947 0.01 303.48);
  --muted-foreground: oklch(0.419 0.028 302.655);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.107 0.026 324.021);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.107 0.026 324.021);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.31 0.112 322.837);
  --primary-foreground: oklch(0.819 0.097 322.491);
  --secondary: oklch(0.268 0.101 296.56);
  --secondary-foreground: oklch(0.793 0.084 302.046);
  --accent: oklch(0.308 0.097 346.304);
  --accent-foreground: oklch(0.818 0.082 341.553);
  --destructive: oklch(0.538 0.201 32.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.112 322.837);
  --chart-1: oklch(0.31 0.112 322.837);
  --chart-2: oklch(0.268 0.101 296.56);
  --chart-3: oklch(0.308 0.097 346.304);
  --chart-4: oklch(0.292 0.113 296.264);
  --chart-5: oklch(0.311 0.116 322.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.021 323.661);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.016 302.152);
  --muted-foreground: oklch(0.733 0.024 303.151);
  --popover: oklch(0.124 0.024 323.5);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.024 323.5);
  --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.31 0.112 322.837);
  --primary-foreground: oklch(0.819 0.097 322.491);
  --secondary: oklch(0.268 0.101 296.56);
  --secondary-foreground: oklch(0.793 0.084 302.046);
  --accent: oklch(0.308 0.097 346.304);
  --accent-foreground: oklch(0.818 0.082 341.553);
  --destructive: oklch(0.648 0.228 32.719);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.112 322.837);
  --chart-1: oklch(0.31 0.112 322.837);
  --chart-2: oklch(0.268 0.101 296.56);
  --chart-3: oklch(0.308 0.097 346.304);
  --chart-4: oklch(0.292 0.113 296.264);
  --chart-5: oklch(0.311 0.116 322.818);
}