Broken is a shadcn/ui theme built around a green primary color (#abc897) with neutral gray accents (#e5e7e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#abc897) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #050802black | #ffffffwhite |
| Card | #fcfcfcsnow | #070b04black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #050802black | #ffffffwhite |
| Primary | #abc897darkseagreen | #abc897darkseagreen |
| Primary foreground | #161e10black | #161e10black |
| Secondary | #e5e7e4gainsboro | #1b1f19black |
| Secondary foreground | #4b5247darkslategray | #b3bdaddarkgray |
| Muted | #eaefe6beige | #141910black |
| Muted foreground | #4a5841darkolivegreen | #b0bea7darkgray |
| Accent | #e5e7e4gainsboro | #1b1f19black |
| Accent foreground | #4b5247darkslategray | #b3bdaddarkgray |
| Destructive | #712804saddlebrown | #f65809orangered |
| Destructive foreground | #fcc6abnavajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #abc897darkseagreen | #abc897darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 9.35:1 | AAA |
| Secondary button | 6.51:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 6.51:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 9.35:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 9.17:1 | AAA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Broken in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.021 130.892);
--muted: oklch(0.946 0.013 132.464);
--muted-foreground: oklch(0.442 0.04 133.094);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.021 130.892);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.016 130.892);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.8 0.074 133.107);
--primary-foreground: oklch(0.222 0.029 133.483);
--secondary: oklch(0.926 0.005 132.401);
--secondary-foreground: oklch(0.429 0.019 132.702);
--accent: oklch(0.926 0.005 132.401);
--accent-foreground: oklch(0.429 0.019 132.702);
--destructive: oklch(0.382 0.112 41.967);
--destructive-foreground: oklch(0.868 0.072 47.877);
--ring: oklch(0.8 0.074 133.107);
--chart-1: oklch(0.8 0.074 133.107);
--chart-2: oklch(0.926 0.005 132.401);
--chart-3: oklch(0.926 0.005 132.401);
--chart-4: oklch(0.948 0.004 132.387);
--chart-5: oklch(0.804 0.081 133.18);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 131.251);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.019 133.115);
--muted-foreground: oklch(0.784 0.035 132.704);
--popover: oklch(0.123 0.015 131.251);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.018 131.29);
--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.8 0.074 133.107);
--primary-foreground: oklch(0.222 0.029 133.483);
--secondary: oklch(0.234 0.013 132.784);
--secondary-foreground: oklch(0.787 0.025 132.601);
--accent: oklch(0.234 0.013 132.784);
--accent-foreground: oklch(0.787 0.025 132.601);
--destructive: oklch(0.665 0.206 39.94);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.8 0.074 133.107);
--chart-1: oklch(0.8 0.074 133.107);
--chart-2: oklch(0.234 0.013 132.784);
--chart-3: oklch(0.234 0.013 132.784);
--chart-4: oklch(0.268 0.016 132.816);
--chart-5: oklch(0.804 0.081 133.18);
}