Broken for shadcn/ui

Broken is a shadcn/ui theme built around a vivid purple primary color (#b6078d) with muted light purple accents (#d5c8d2). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid purple primary (#b6078d) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0b040ablack
Foreground
#160412black
#fdfcfdwhite
Card
#fcf8fbsnow
#0f050dblack
Card foreground
#11030eblack
#ffffffwhite
Popover
#fcf8fbsnow
#0f050dblack
Popover foreground
#11030eblack
#ffffffwhite
Primary
#b6078dmediumvioletred
#b6078dmediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5c8d2thistle
#2f2d2edarkslategray
Secondary foreground
#3d2f39darkslategray
#c8c6c7silver
Muted
#f3f1f3whitesmoke
#0e0c0dblack
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#d5c8d2thistle
#2f2d2edarkslategray
Accent foreground
#3d2f39darkslategray
#c8c6c7silver
Destructive
#891306darkred
#f52b14orangered
Destructive foreground
#fdcac4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6078dmediumvioletred
#b6078dmediumvioletred

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.14:1AAA
Primary button6.16:1AA
Secondary button7.83:1AAA
Muted text7.90:1AAA
Accent7.83:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.80:1AAA
Text on card20.01:1AAA
Primary button6.16:1AA
Secondary button8.05:1AAA
Muted text9.51:1AAA
Accent8.05:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 333.279);
  --foreground: oklch(0.149 0.044 336.666);
  --muted: oklch(0.961 0.003 333.285);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.983 0.005 333.319);
  --popover-foreground: oklch(0.135 0.039 335.917);
  --card: oklch(0.983 0.005 333.319);
  --card-foreground: oklch(0.135 0.039 335.917);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.223 341.791);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.847 0.019 333.602);
  --secondary-foreground: oklch(0.323 0.027 334.528);
  --accent: oklch(0.847 0.019 333.602);
  --accent-foreground: oklch(0.323 0.027 334.528);
  --destructive: oklch(0.405 0.153 30.61);
  --destructive-foreground: oklch(0.881 0.058 25.669);
  --ring: oklch(0.524 0.223 341.791);
  --chart-1: oklch(0.524 0.223 341.791);
  --chart-2: oklch(0.847 0.019 333.602);
  --chart-3: oklch(0.847 0.019 333.602);
  --chart-4: oklch(0.871 0.016 333.535);
  --chart-5: oklch(0.528 0.226 342.019);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.022 334.082);
  --foreground: oklch(0.992 0.001 333.26);
  --muted: oklch(0.157 0.004 333.662);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.138 0.025 335.141);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.025 335.141);
  --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.524 0.223 341.791);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.3 0.004 333.435);
  --secondary-foreground: oklch(0.828 0.003 333.307);
  --accent: oklch(0.3 0.004 333.435);
  --accent-foreground: oklch(0.828 0.003 333.307);
  --destructive: oklch(0.624 0.236 30.499);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.524 0.223 341.791);
  --chart-1: oklch(0.524 0.223 341.791);
  --chart-2: oklch(0.3 0.004 333.435);
  --chart-3: oklch(0.3 0.004 333.435);
  --chart-4: oklch(0.33 0.004 333.441);
  --chart-5: oklch(0.528 0.226 342.019);
}