Broken is a shadcn/ui theme built around a vivid teal primary color (#0ecdcd) with vivid red accents (#cd0e0e). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the vivid teal primary (#0ecdcd) on a teal-tinted background (#030c0c).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #030c0cblack |
| Foreground | #040b0bblack | #f5fafamintcream |
| Card | #f2fcfcazure | #051010black |
| Card foreground | #030808black | #f8fcfcmintcream |
| Popover | #f6fdfdmintcream | #030c0cblack |
| Popover foreground | #040b0bblack | #f5fafamintcream |
| Primary | #0ecdcddarkturquoise | #0ecdcddarkturquoise |
| Primary foreground | #010e0eblack | #010e0eblack |
| Secondary | #cd0e0efirebrick | #cd0e0efirebrick |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7cbcblightgrey | #341818black |
| Muted foreground | #644a4adimgray | #b59b9brosybrown |
| Accent | #cd0e0efirebrick | #cd0e0efirebrick |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b72606firebrick | #f83c12orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0ecdcddarkturquoise | #0ecdcddarkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 9.93:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 6.37:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 9.93:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 6.28:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Broken in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 197.04);
--foreground: oklch(0.143 0.014 195.677);
--muted: oklch(0.865 0.032 17.786);
--muted-foreground: oklch(0.436 0.036 18.615);
--popover: oklch(0.99 0.007 197.04);
--popover-foreground: oklch(0.143 0.014 195.677);
--card: oklch(0.985 0.011 196.981);
--card-foreground: oklch(0.124 0.012 195.682);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.769 0.13 194.791);
--primary-foreground: oklch(0.151 0.023 194.964);
--secondary: oklch(0.537 0.215 28.655);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.537 0.215 28.655);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.507 0.184 32.816);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.13 194.791);
--chart-1: oklch(0.769 0.13 194.791);
--chart-2: oklch(0.537 0.215 28.655);
--chart-3: oklch(0.537 0.215 28.655);
--chart-4: oklch(0.564 0.226 28.692);
--chart-5: oklch(0.778 0.132 194.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.015 195.566);
--foreground: oklch(0.981 0.005 197.072);
--muted: oklch(0.25 0.045 20.815);
--muted-foreground: oklch(0.714 0.031 17.899);
--popover: oklch(0.144 0.015 195.566);
--popover-foreground: oklch(0.981 0.005 197.072);
--card: oklch(0.161 0.018 195.527);
--card-foreground: oklch(0.987 0.003 197.101);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.769 0.13 194.791);
--primary-foreground: oklch(0.151 0.023 194.964);
--secondary: oklch(0.537 0.215 28.655);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.537 0.215 28.655);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.228 33.051);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.769 0.13 194.791);
--chart-1: oklch(0.769 0.13 194.791);
--chart-2: oklch(0.537 0.215 28.655);
--chart-3: oklch(0.537 0.215 28.655);
--chart-4: oklch(0.564 0.226 28.692);
--chart-5: oklch(0.778 0.132 194.785);
}