Mixed for shadcn/ui

Mixed is a shadcn/ui theme built around a vivid purple primary color (#871287) with vivid pink accents (#87124c). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the vivid purple primary (#871287) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fbf8fbsnow
#080208black
Foreground
#100510black
#ffffffwhite
Card
#faf5faghostwhite
#0c040cblack
Card foreground
#0c030cblack
#ffffffwhite
Popover
#fbf8fbsnow
#080208black
Popover foreground
#100510black
#ffffffwhite
Primary
#871287darkmagenta
#871287darkmagenta
Primary foreground
#f9d2f9lavender
#f9d2f9lavender
Secondary
#4c1287indigo
#4c1287indigo
Secondary foreground
#e6d2f9lavender
#e6d2f9lavender
Muted
#ded5e7gainsboro
#21182ablack
Muted foreground
#4f4d51darkslategray
#b0aeb2darkgray
Accent
#87124cbrown
#87124cbrown
Accent foreground
#f9d2e6mistyrose
#f9d2e6mistyrose
Destructive
#691f02maroon
#fb6428tomato
Destructive foreground
#fdbaa0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#871287darkmagenta
#871287darkmagenta

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card18.85:1AAA
Primary button6.31:1AA
Secondary button8.55:1AAA
Muted text5.86:1AA
Accent6.91:1AA
Destructive7.06:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.27:1AAA
Primary button6.31:1AA
Secondary button8.55:1AAA
Muted text7.76:1AAA
Accent6.91:1AA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 325.616);
  --foreground: oklch(0.139 0.033 327.169);
  --muted: oklch(0.885 0.027 308.122);
  --muted-foreground: oklch(0.425 0.006 308.316);
  --popover: oklch(0.983 0.005 325.616);
  --popover-foreground: oklch(0.139 0.033 327.169);
  --card: oklch(0.975 0.008 325.636);
  --card-foreground: oklch(0.125 0.029 327.118);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.445 0.193 328.231);
  --primary-foreground: oklch(0.908 0.067 326.115);
  --secondary: oklch(0.357 0.174 299.395);
  --secondary-foreground: oklch(0.892 0.057 307.753);
  --accent: oklch(0.415 0.157 357.239);
  --accent-foreground: oklch(0.902 0.051 346.551);
  --destructive: oklch(0.354 0.111 38.842);
  --destructive-foreground: oklch(0.845 0.086 42.508);
  --ring: oklch(0.445 0.193 328.231);
  --chart-1: oklch(0.445 0.193 328.231);
  --chart-2: oklch(0.357 0.174 299.395);
  --chart-3: oklch(0.415 0.157 357.239);
  --chart-4: oklch(0.381 0.187 299.197);
  --chart-5: oklch(0.449 0.197 328.256);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.024 327.055);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.229 0.037 306.604);
  --muted-foreground: oklch(0.754 0.005 308.39);
  --popover: oklch(0.109 0.024 327.055);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.027 327.062);
  --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.445 0.193 328.231);
  --primary-foreground: oklch(0.908 0.067 326.115);
  --secondary: oklch(0.357 0.174 299.395);
  --secondary-foreground: oklch(0.892 0.057 307.753);
  --accent: oklch(0.415 0.157 357.239);
  --accent-foreground: oklch(0.902 0.051 346.551);
  --destructive: oklch(0.688 0.197 39.649);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.445 0.193 328.231);
  --chart-1: oklch(0.445 0.193 328.231);
  --chart-2: oklch(0.357 0.174 299.395);
  --chart-3: oklch(0.415 0.157 357.239);
  --chart-4: oklch(0.381 0.187 299.197);
  --chart-5: oklch(0.449 0.197 328.256);
}