Broken is a shadcn/ui theme built around a muted light green primary color (#d8dec9) with muted light green accents (#cddec9). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted light green primary (#d8dec9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #0f1306black | #ffffffwhite |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #0f1306black | #ffffffwhite |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #0f1306black | #ffffffwhite |
| Primary | #d8dec9lightgrey | #d8dec9lightgrey |
| Primary foreground | #41492cdarkolivegreen | #41492cdarkolivegreen |
| Secondary | #dedac9lightgrey | #dedac9lightgrey |
| Secondary foreground | #49432cdarkolivegreen | #49432cdarkolivegreen |
| Muted | #eae9e6linen | #191815black |
| Muted foreground | #666252dimgray | #ada999darkgray |
| Accent | #cddec9lightgrey | #cddec9lightgrey |
| Accent foreground | #32492cdarkslategray | #32492cdarkslategray |
| Destructive | #630808maroon | #d91212crimson |
| Destructive foreground | #f8a5a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8dec9lightgrey | #d8dec9lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.53:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 5.04:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.95:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 5.19:1 | AA |
Paste this into your globals.css to use Broken in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 120.087);
--foreground: oklch(0.18 0.027 122.27);
--muted: oklch(0.934 0.004 95.085);
--muted-foreground: oklch(0.495 0.025 95.55);
--popover: oklch(0.995 0.003 120.087);
--popover-foreground: oklch(0.18 0.027 122.27);
--card: oklch(0.995 0.003 120.087);
--card-foreground: oklch(0.18 0.027 122.27);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.891 0.03 120.605);
--primary-foreground: oklch(0.39 0.048 122.223);
--secondary: oklch(0.888 0.024 95.33);
--secondary-foreground: oklch(0.384 0.038 95.785);
--accent: oklch(0.883 0.035 139.435);
--accent-foreground: oklch(0.378 0.056 139.472);
--destructive: oklch(0.32 0.123 27.801);
--destructive-foreground: oklch(0.804 0.098 19.436);
--ring: oklch(0.891 0.03 120.605);
--chart-1: oklch(0.891 0.03 120.605);
--chart-2: oklch(0.888 0.024 95.33);
--chart-3: oklch(0.883 0.035 139.435);
--chart-4: oklch(0.908 0.02 95.275);
--chart-5: oklch(0.894 0.033 120.671);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.006 95.338);
--muted-foreground: oklch(0.734 0.023 95.377);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.891 0.03 120.605);
--primary-foreground: oklch(0.39 0.048 122.223);
--secondary: oklch(0.888 0.024 95.33);
--secondary-foreground: oklch(0.384 0.038 95.785);
--accent: oklch(0.883 0.035 139.435);
--accent-foreground: oklch(0.378 0.056 139.472);
--destructive: oklch(0.561 0.223 28.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.891 0.03 120.605);
--chart-1: oklch(0.891 0.03 120.605);
--chart-2: oklch(0.888 0.024 95.33);
--chart-3: oklch(0.883 0.035 139.435);
--chart-4: oklch(0.908 0.02 95.275);
--chart-5: oklch(0.894 0.033 120.671);
}