Breakable is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#eee7e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#000000) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #120202black | #fcf8f8snow |
| Card | #ffffffwhite | #030202black |
| Card foreground | #120202black | #fcf8f8snow |
| Popover | #ffffffwhite | #030202black |
| Popover foreground | #120202black | #fcf8f8snow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #eee7e7linen | #212121black |
| Secondary foreground | #5f4545darkolivegreen | #bababasilver |
| Muted | #e7dfdfgainsboro | #201818black |
| Muted foreground | #675151dimgray | #ae9898rosybrown |
| Accent | #eee7e7linen | #212121black |
| Accent foreground | #5f4545darkolivegreen | #bababasilver |
| Destructive | #cf3217firebrick | #e74023orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 5.58:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Breakable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.127 0.036 23.78);
--muted: oklch(0.91 0.008 17.303);
--muted-foreground: oklch(0.457 0.03 18.292);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.127 0.036 23.78);
--card: oklch(1 0 180);
--card-foreground: oklch(0.127 0.036 23.78);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.934 0.007 17.283);
--secondary-foreground: oklch(0.417 0.036 18.715);
--accent: oklch(0.934 0.007 17.283);
--accent-foreground: oklch(0.417 0.036 18.715);
--destructive: oklch(0.561 0.196 32.218);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.934 0.007 17.283);
--chart-3: oklch(0.934 0.007 17.283);
--chart-4: oklch(0.959 0.004 17.234);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 18.788);
--foreground: oklch(0.982 0.004 17.222);
--muted: oklch(0.22 0.012 18.079);
--muted-foreground: oklch(0.7 0.026 17.795);
--popover: oklch(0.087 0.008 18.788);
--popover-foreground: oklch(0.982 0.004 17.222);
--card: oklch(0.087 0.008 18.788);
--card-foreground: oklch(0.982 0.004 17.222);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.248 0 173.29);
--secondary-foreground: oklch(0.789 0 171.254);
--accent: oklch(0.248 0 173.29);
--accent-foreground: oklch(0.789 0 171.254);
--destructive: oklch(0.615 0.207 32.338);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.248 0 173.29);
--chart-3: oklch(0.248 0 173.29);
--chart-4: oklch(0.28 0 180);
--chart-5: oklch(0 0 0);
}