Broken for shadcn/ui

Broken is a shadcn/ui theme built around a light orange primary color (#e2c3a1) with light blue accents (#a1c1e2). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the light orange primary (#e2c3a1) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfaf7snow
#040301black
Foreground
#080502black
#fbfaf9snow
Card
#fbf7f3floralwhite
#080502black
Card foreground
#040301black
#fdfcfcsnow
Popover
#fdfaf7snow
#040301black
Popover foreground
#080502black
#fbfaf9snow
Primary
#e2c3a1burlywood
#e2c3a1burlywood
Primary foreground
#3e2a13darkslategray
#3e2a13darkslategray
Secondary
#a1c1e2lightsteelblue
#a1c1e2lightsteelblue
Secondary foreground
#13283edarkslategray
#13283edarkslategray
Muted
#ebf0f4whitesmoke
#0b0f14black
Muted foreground
#3e4042darkslategray
#bdbfc1silver
Accent
#a1c1e2lightsteelblue
#a1c1e2lightsteelblue
Accent foreground
#13283edarkslategray
#13283edarkslategray
Destructive
#641e07maroon
#f05724chocolate
Destructive foreground
#f9b9a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2c3a1burlywood
#e2c3a1burlywood

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.41:1AAA
Primary button8.12:1AAA
Secondary button8.01:1AAA
Muted text9.05:1AAA
Accent8.01:1AAA
Destructive7.20:1AAA
Dark mode
Text on background19.81:1AAA
Text on card19.83:1AAA
Primary button8.12:1AAA
Secondary button8.01:1AAA
Muted text10.41:1AAA
Accent8.01:1AAA
Destructive3.45: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.986 0.005 69.604);
  --foreground: oklch(0.12 0.016 78.85);
  --muted: oklch(0.952 0.008 249.728);
  --muted-foreground: oklch(0.369 0.004 249.756);
  --popover: oklch(0.986 0.005 69.604);
  --popover-foreground: oklch(0.12 0.016 78.85);
  --card: oklch(0.979 0.007 69.58);
  --card-foreground: oklch(0.095 0.012 78.85);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.835 0.057 68.786);
  --primary-foreground: oklch(0.303 0.047 66.252);
  --secondary: oklch(0.798 0.059 250.284);
  --secondary-foreground: oklch(0.272 0.05 251.54);
  --accent: oklch(0.798 0.059 250.284);
  --accent-foreground: oklch(0.272 0.05 251.54);
  --destructive: oklch(0.344 0.106 37.304);
  --destructive-foreground: oklch(0.84 0.079 39.22);
  --ring: oklch(0.835 0.057 68.786);
  --chart-1: oklch(0.835 0.057 68.786);
  --chart-2: oklch(0.798 0.059 250.284);
  --chart-3: oklch(0.798 0.059 250.284);
  --chart-4: oklch(0.824 0.051 250.186);
  --chart-5: oklch(0.837 0.06 68.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 77.031);
  --foreground: oklch(0.985 0.002 69.634);
  --muted: oklch(0.167 0.012 250.286);
  --muted-foreground: oklch(0.804 0.003 249.691);
  --popover: oklch(0.095 0.01 77.031);
  --popover-foreground: oklch(0.985 0.002 69.634);
  --card: oklch(0.119 0.012 77.031);
  --card-foreground: oklch(0.993 0.001 69.642);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.835 0.057 68.786);
  --primary-foreground: oklch(0.303 0.047 66.252);
  --secondary: oklch(0.798 0.059 250.284);
  --secondary-foreground: oklch(0.272 0.05 251.54);
  --accent: oklch(0.798 0.059 250.284);
  --accent-foreground: oklch(0.272 0.05 251.54);
  --destructive: oklch(0.655 0.198 37.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.057 68.786);
  --chart-1: oklch(0.835 0.057 68.786);
  --chart-2: oklch(0.798 0.059 250.284);
  --chart-3: oklch(0.798 0.059 250.284);
  --chart-4: oklch(0.824 0.051 250.186);
  --chart-5: oklch(0.837 0.06 68.722);
}