Multicolored for shadcn/ui

Multicolored is a shadcn/ui theme built around a light purple primary color (#e2b6d5) with muted light purple accents (#eae6e9). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the light purple primary (#e2b6d5) on a purple-tinted background (#0c0409).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0c0409black
Foreground
#0d020ablack
#ffffffwhite
Card
#fcf8fbsnow
#0c0409black
Card foreground
#0d020ablack
#ffffffwhite
Popover
#fcf8fbsnow
#0c0409black
Popover foreground
#0d020ablack
#ffffffwhite
Primary
#e2b6d5thistle
#e2b6d5thistle
Primary foreground
#491d3cdarkslategray
#491d3cdarkslategray
Secondary
#eae6e9lavender
#343233darkslategray
Secondary foreground
#564852darkslategray
#cdcbcclightgrey
Muted
#eceaeblinen
#151315black
Muted foreground
#5a585adimgray
#a7a5a6darkgray
Accent
#eae6e9lavender
#343233darkslategray
Accent foreground
#564852darkslategray
#cdcbcclightgrey
Destructive
#9b1f03darkred
#fa3a0forangered
Destructive foreground
#fedad2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2b6d5thistle
#e2b6d5thistle

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.78:1AAA
Secondary button6.95:1AA
Muted text5.86:1AA
Accent6.95:1AA
Destructive6.24:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button7.78:1AAA
Secondary button7.85:1AAA
Muted text7.52:1AAA
Accent7.85:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 335.981);
  --foreground: oklch(0.12 0.036 337.317);
  --muted: oklch(0.938 0.003 335.926);
  --muted-foreground: oklch(0.464 0.003 335.991);
  --popover: oklch(0.983 0.006 335.981);
  --popover-foreground: oklch(0.12 0.036 337.317);
  --card: oklch(0.983 0.006 335.981);
  --card-foreground: oklch(0.12 0.036 337.317);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.824 0.066 337.31);
  --primary-foreground: oklch(0.307 0.081 340.497);
  --secondary: oklch(0.929 0.006 335.987);
  --secondary-foreground: oklch(0.419 0.025 336.943);
  --accent: oklch(0.929 0.006 335.987);
  --accent-foreground: oklch(0.419 0.025 336.943);
  --destructive: oklch(0.449 0.163 32.999);
  --destructive-foreground: oklch(0.917 0.042 32.742);
  --ring: oklch(0.824 0.066 337.31);
  --chart-1: oklch(0.824 0.066 337.31);
  --chart-2: oklch(0.929 0.006 335.987);
  --chart-3: oklch(0.929 0.006 335.987);
  --chart-4: oklch(0.953 0.004 335.945);
  --chart-5: oklch(0.823 0.071 337.406);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.025 336.658);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.191 0.004 336.287);
  --muted-foreground: oklch(0.723 0.003 335.939);
  --popover: oklch(0.123 0.025 336.658);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.025 336.658);
  --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.824 0.066 337.31);
  --primary-foreground: oklch(0.307 0.081 340.497);
  --secondary: oklch(0.32 0.002 335.979);
  --secondary-foreground: oklch(0.845 0.001 335.901);
  --accent: oklch(0.32 0.002 335.979);
  --accent-foreground: oklch(0.845 0.001 335.901);
  --destructive: oklch(0.643 0.232 32.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.066 337.31);
  --chart-1: oklch(0.824 0.066 337.31);
  --chart-2: oklch(0.32 0.002 335.979);
  --chart-3: oklch(0.32 0.002 335.979);
  --chart-4: oklch(0.35 0.002 335.983);
  --chart-5: oklch(0.823 0.071 337.406);
}