Brochure for shadcn/ui

Brochure is a shadcn/ui theme built around a vivid yellow primary color (#efce39) with vivid purple accents (#ce39ef). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#efce39) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d0b03black
#faf9f5whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#080702black
#fcfbf8snow
Popover
#ffffffwhite
#000000black
Popover foreground
#0d0b03black
#faf9f5whitesmoke
Primary
#efce39goldenrod
#efce39goldenrod
Primary foreground
#000000black
#000000black
Secondary
#39efceturquoise
#39efceturquoise
Secondary foreground
#075547darkslategray
#075547darkslategray
Muted
#d5dcdbgainsboro
#232a28darkslategray
Muted foreground
#545958dimgray
#a6abaadarkgray
Accent
#ce39efmediumorchid
#ce39efmediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a2805saddlebrown
#f75318orangered
Destructive foreground
#fdd3c4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efce39goldenrod
#efce39goldenrod

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.72:1AAA
Primary button13.51:1AAA
Secondary button6.00:1AA
Muted text5.13:1AA
Accent3.86:1AA Large
Destructive6.40:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.98:1AAA
Primary button13.51:1AAA
Secondary button6.00:1AA
Muted text6.31:1AA
Accent3.86:1AA Large
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.021 99.987);
  --muted: oklch(0.889 0.008 184.082);
  --muted-foreground: oklch(0.46 0.007 183.915);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.021 99.987);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.018 100.712);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.16 95.713);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.856 0.148 176.789);
  --secondary-foreground: oklch(0.403 0.073 175.741);
  --accent: oklch(0.641 0.268 319.356);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.426 0.138 37.142);
  --destructive-foreground: oklch(0.899 0.052 40.978);
  --ring: oklch(0.854 0.16 95.713);
  --chart-1: oklch(0.854 0.16 95.713);
  --chart-2: oklch(0.856 0.148 176.789);
  --chart-3: oklch(0.641 0.268 319.356);
  --chart-4: oklch(0.863 0.143 177.571);
  --chart-5: oklch(0.861 0.163 95.555);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.006 96.236);
  --muted: oklch(0.277 0.01 183.318);
  --muted-foreground: oklch(0.736 0.006 184.092);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.006 96.236);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.988 0.004 96.212);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.854 0.16 95.713);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.856 0.148 176.789);
  --secondary-foreground: oklch(0.403 0.073 175.741);
  --accent: oklch(0.641 0.268 319.356);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.661 0.209 37.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.854 0.16 95.713);
  --chart-1: oklch(0.854 0.16 95.713);
  --chart-2: oklch(0.856 0.148 176.789);
  --chart-3: oklch(0.641 0.268 319.356);
  --chart-4: oklch(0.863 0.143 177.571);
  --chart-5: oklch(0.861 0.163 95.555);
}