Brochure for shadcn/ui

Brochure is a shadcn/ui theme built around an indigo primary color (#5231bf) with muted light indigo accents (#c7c3d5). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#5231bf) on an indigo-tinted background (#06040b).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#06040bblack
Foreground
#06040cblack
#f9f9fbghostwhite
Card
#f9f8fcghostwhite
#06040bblack
Card foreground
#06040cblack
#f9f9fbghostwhite
Popover
#f9f8fcghostwhite
#06040bblack
Popover foreground
#06040cblack
#f9f9fbghostwhite
Primary
#5231bfrebeccapurple
#5231bfrebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c7c3d5thistle
#252429darkslategray
Secondary foreground
#2e2a3cdarkslategray
#bdbbc4silver
Muted
#ecebeflavender
#111014black
Muted foreground
#544e6adimgray
#9c95b1darkgray
Accent
#c7c3d5thistle
#252429darkslategray
Accent foreground
#2e2a3cdarkslategray
#bdbbc4silver
Destructive
#d61f0afirebrick
#f4230borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5231bfrebeccapurple
#5231bfrebeccapurple

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button8.23:1AAA
Secondary button8.05:1AAA
Muted text6.61:1AA
Accent8.05:1AAA
Destructive5.16:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button8.23:1AAA
Secondary button8.15:1AAA
Muted text6.64:1AA
Accent8.15:1AAA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 296.994);
  --foreground: oklch(0.114 0.022 296.458);
  --muted: oklch(0.942 0.006 296.968);
  --muted-foreground: oklch(0.441 0.045 295.182);
  --popover: oklch(0.981 0.005 296.994);
  --popover-foreground: oklch(0.114 0.022 296.458);
  --card: oklch(0.981 0.005 296.994);
  --card-foreground: oklch(0.114 0.022 296.458);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.449 0.205 285.308);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.826 0.026 296.515);
  --secondary-foreground: oklch(0.297 0.033 294.998);
  --accent: oklch(0.826 0.026 296.515);
  --accent-foreground: oklch(0.297 0.033 294.998);
  --destructive: oklch(0.561 0.216 30.422);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.449 0.205 285.308);
  --chart-1: oklch(0.449 0.205 285.308);
  --chart-2: oklch(0.826 0.026 296.515);
  --chart-3: oklch(0.826 0.026 296.515);
  --chart-4: oklch(0.852 0.022 296.619);
  --chart-5: oklch(0.446 0.213 284.395);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.018 296.669);
  --foreground: oklch(0.982 0.004 297.012);
  --muted: oklch(0.175 0.009 296.158);
  --muted-foreground: oklch(0.686 0.041 296.003);
  --popover: oklch(0.118 0.018 296.669);
  --popover-foreground: oklch(0.982 0.004 297.012);
  --card: oklch(0.118 0.018 296.669);
  --card-foreground: oklch(0.982 0.004 297.012);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.449 0.205 285.308);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.262 0.01 296.387);
  --secondary-foreground: oklch(0.796 0.013 296.793);
  --accent: oklch(0.262 0.01 296.387);
  --accent-foreground: oklch(0.796 0.013 296.793);
  --destructive: oklch(0.617 0.239 30.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.449 0.205 285.308);
  --chart-1: oklch(0.449 0.205 285.308);
  --chart-2: oklch(0.262 0.01 296.387);
  --chart-3: oklch(0.262 0.01 296.387);
  --chart-4: oklch(0.292 0.012 296.353);
  --chart-5: oklch(0.446 0.213 284.395);
}