Elaborate for shadcn/ui

Elaborate is a shadcn/ui theme built around an indigo primary color (#373a67) with violet accents (#4d3767). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#373a67) on an indigo-tinted background (#05050a).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#05050ablack
Foreground
#030411black
#ffffffwhite
Card
#fbfbfeghostwhite
#05050ablack
Card foreground
#030411black
#ffffffwhite
Popover
#fbfbfeghostwhite
#05050ablack
Popover foreground
#030411black
#ffffffwhite
Primary
#373a67darkslategray
#373a67darkslategray
Primary foreground
#e1e2eflavender
#e1e2eflavender
Secondary
#375167darkslategray
#375167darkslategray
Secondary foreground
#e1e9eflavender
#e1e9eflavender
Muted
#d8dcdegainsboro
#212427darkslategray
Muted foreground
#404244darkslategray
#bbbdbfsilver
Accent
#4d3767darkslateblue
#4d3767darkslateblue
Accent foreground
#e7e1eflavender
#e7e1eflavender
Destructive
#cb4801chocolate
#f95801orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#373a67darkslategray
#373a67darkslategray

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button8.33:1AAA
Secondary button6.71:1AA
Muted text7.29:1AAA
Accent7.96:1AAA
Destructive4.71:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button8.33:1AAA
Secondary button6.71:1AA
Muted text8.28:1AAA
Accent7.96:1AAA
Destructive3.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 283.918);
  --foreground: oklch(0.116 0.033 276.222);
  --muted: oklch(0.892 0.005 242.266);
  --muted-foreground: oklch(0.38 0.004 242.341);
  --popover: oklch(0.99 0.003 283.918);
  --popover-foreground: oklch(0.116 0.033 276.222);
  --card: oklch(0.99 0.003 283.918);
  --card-foreground: oklch(0.116 0.033 276.222);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.368 0.077 279.622);
  --primary-foreground: oklch(0.916 0.018 283.631);
  --secondary: oklch(0.425 0.048 243.919);
  --secondary-foreground: oklch(0.929 0.012 242.36);
  --accent: oklch(0.384 0.082 303.536);
  --accent-foreground: oklch(0.919 0.02 306.156);
  --destructive: oklch(0.576 0.178 40.571);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.368 0.077 279.622);
  --chart-1: oklch(0.368 0.077 279.622);
  --chart-2: oklch(0.425 0.048 243.919);
  --chart-3: oklch(0.384 0.082 303.536);
  --chart-4: oklch(0.452 0.051 243.947);
  --chart-5: oklch(0.363 0.085 279.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.013 281.284);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.258 0.007 242.537);
  --muted-foreground: oklch(0.797 0.004 242.252);
  --popover: oklch(0.12 0.013 281.284);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.013 281.284);
  --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.368 0.077 279.622);
  --primary-foreground: oklch(0.916 0.018 283.631);
  --secondary: oklch(0.425 0.048 243.919);
  --secondary-foreground: oklch(0.929 0.012 242.36);
  --accent: oklch(0.384 0.082 303.536);
  --accent-foreground: oklch(0.919 0.02 306.156);
  --destructive: oklch(0.669 0.209 40.07);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.368 0.077 279.622);
  --chart-1: oklch(0.368 0.077 279.622);
  --chart-2: oklch(0.425 0.048 243.919);
  --chart-3: oklch(0.384 0.082 303.536);
  --chart-4: oklch(0.452 0.051 243.947);
  --chart-5: oklch(0.363 0.085 279.019);
}