Broken is a shadcn/ui theme built around a violet primary color (#5b24b2) with muted light violet accents (#d5d3da). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the violet primary (#5b24b2) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #020204black |
| Foreground | #020104black | #faf9fbghostwhite |
| Card | #f9f8fcghostwhite | #050307black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f9f8fcghostwhite | #050307black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #5b24b2rebeccapurple | #5b24b2rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5d3dalightgrey | #28262cdarkslategray |
| Secondary foreground | #3c3843darkslategray | #c1bec6silver |
| Muted | #f1edf7whitesmoke | #0c0812black |
| Muted foreground | #424045darkslategray | #bcbabfsilver |
| Accent | #d5d3dalightgrey | #28262cdarkslategray |
| Accent foreground | #3c3843darkslategray | #c1bec6silver |
| Destructive | #670404maroon | #dd0808red |
| Destructive foreground | #fca1a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b24b2rebeccapurple | #5b24b2rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.97:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 8.89:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 8.97:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 10.32:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 5.08:1 | AA |
Paste this into your globals.css to use Broken in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 303.604);
--foreground: oklch(0.08 0.017 304.562);
--muted: oklch(0.953 0.014 303.425);
--muted-foreground: oklch(0.374 0.009 303.271);
--popover: oklch(0.982 0.005 303.567);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 303.567);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.431 0.203 293.164);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.87 0.01 303.462);
--secondary-foreground: oklch(0.348 0.02 302.801);
--accent: oklch(0.87 0.01 303.462);
--accent-foreground: oklch(0.348 0.02 302.801);
--destructive: oklch(0.326 0.13 28.581);
--destructive-foreground: oklch(0.8 0.108 19.708);
--ring: oklch(0.431 0.203 293.164);
--chart-1: oklch(0.431 0.203 293.164);
--chart-2: oklch(0.87 0.01 303.462);
--chart-3: oklch(0.87 0.01 303.462);
--chart-4: oklch(0.895 0.008 303.5);
--chart-5: oklch(0.43 0.209 292.439);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.011 304.222);
--foreground: oklch(0.983 0.003 303.593);
--muted: oklch(0.144 0.022 301.744);
--muted-foreground: oklch(0.792 0.008 303.495);
--popover: oklch(0.106 0.014 304.222);
--popover-foreground: oklch(0.991 0.002 303.616);
--card: oklch(0.106 0.014 304.222);
--card-foreground: oklch(0.991 0.002 303.616);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.431 0.203 293.164);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.273 0.011 303.052);
--secondary-foreground: oklch(0.805 0.012 303.411);
--accent: oklch(0.273 0.011 303.052);
--accent-foreground: oklch(0.805 0.012 303.411);
--destructive: oklch(0.566 0.23 28.963);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.203 293.164);
--chart-1: oklch(0.431 0.203 293.164);
--chart-2: oklch(0.273 0.011 303.052);
--chart-3: oklch(0.273 0.011 303.052);
--chart-4: oklch(0.303 0.013 303.026);
--chart-5: oklch(0.43 0.209 292.439);
}