Placebo for shadcn/ui

Placebo is a shadcn/ui theme built around a vivid purple primary color (#ef62f4) with vivid pink accents (#f462b0). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the vivid purple primary (#ef62f4) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#080208black
Foreground
#040104black
#faf5faghostwhite
Card
#fbf3fbghostwhite
#0c030cblack
Card foreground
#000000black
#fbf8fcghostwhite
Popover
#fcf7fdghostwhite
#080208black
Popover foreground
#040104black
#faf5faghostwhite
Primary
#ef62f4violet
#ef62f4violet
Primary foreground
#200221black
#200221black
Secondary
#a662f4mediumpurple
#a662f4mediumpurple
Secondary foreground
#000000black
#000000black
Muted
#eae4f1lavender
#140e1bblack
Muted foreground
#60556ddimgray
#9d92aadarkgray
Accent
#f462b0hotpink
#f462b0hotpink
Accent foreground
#210213black
#210213black
Destructive
#780e0dmaroon
#e21b18crimson
Destructive foreground
#f8bfbelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ef62f4violet
#ef62f4violet

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.36:1AAA
Primary button7.06:1AAA
Secondary button5.66:1AA
Muted text5.60:1AA
Accent6.65:1AA
Destructive7.05:1AAA
Dark mode
Text on background19.06:1AAA
Text on card19.25:1AAA
Primary button7.06:1AAA
Secondary button5.66:1AA
Muted text6.42:1AA
Accent6.65:1AA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 324.676);
  --foreground: oklch(0.086 0.019 326.218);
  --muted: oklch(0.928 0.017 306.882);
  --muted-foreground: oklch(0.47 0.039 306.089);
  --popover: oklch(0.982 0.009 324.676);
  --popover-foreground: oklch(0.086 0.019 326.218);
  --card: oklch(0.973 0.013 324.705);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.726 0.24 326.361);
  --primary-foreground: oklch(0.178 0.073 326.76);
  --secondary: oklch(0.639 0.212 302.248);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.703 0.196 350.22);
  --accent-foreground: oklch(0.17 0.062 350.55);
  --destructive: oklch(0.368 0.139 28.085);
  --destructive-foreground: oklch(0.856 0.066 19.643);
  --ring: oklch(0.726 0.24 326.361);
  --chart-1: oklch(0.726 0.24 326.361);
  --chart-2: oklch(0.639 0.212 302.248);
  --chart-3: oklch(0.703 0.196 350.22);
  --chart-4: oklch(0.669 0.195 303.054);
  --chart-5: oklch(0.728 0.246 326.392);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.025 326.218);
  --foreground: oklch(0.975 0.008 324.672);
  --muted: oklch(0.179 0.026 305.291);
  --muted-foreground: oklch(0.679 0.036 306.466);
  --popover: oklch(0.108 0.025 326.218);
  --popover-foreground: oklch(0.975 0.008 324.672);
  --card: oklch(0.124 0.028 326.146);
  --card-foreground: oklch(0.983 0.005 324.654);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.726 0.24 326.361);
  --primary-foreground: oklch(0.178 0.073 326.76);
  --secondary: oklch(0.639 0.212 302.248);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.703 0.196 350.22);
  --accent-foreground: oklch(0.17 0.062 350.55);
  --destructive: oklch(0.582 0.227 28.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.726 0.24 326.361);
  --chart-1: oklch(0.726 0.24 326.361);
  --chart-2: oklch(0.639 0.212 302.248);
  --chart-3: oklch(0.703 0.196 350.22);
  --chart-4: oklch(0.669 0.195 303.054);
  --chart-5: oklch(0.728 0.246 326.392);
}