Breakable is a shadcn/ui theme built around a vivid deep blue primary color (#062237) with neutral gray accents (#c8c0c0). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid deep blue primary (#062237) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020508black |
| Foreground | #000000black | #f9fafbghostwhite |
| Card | #fbfdfewhite | #020508black |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #fbfdfewhite | #020508black |
| Popover foreground | #000000black | #f9fafbghostwhite |
| Primary | #062237midnightblue | #062237midnightblue |
| Primary foreground | #7ebff1skyblue | #7ebff1skyblue |
| Secondary | #dbdbdbgainsboro | #161718black |
| Secondary foreground | #424242darkslategray | #aeb0b2darkgray |
| Muted | #eae1e1gainsboro | #151a1eblack |
| Muted foreground | #433d3ddarkslategray | #bcc0c2silver |
| Accent | #c8c0c0silver | #272c2fdarkslategray |
| Accent foreground | #2e2828darkslategray | #bfc5casilver |
| Destructive | #c64715chocolate | #d04a16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #062237midnightblue | #062237midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 4.84:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Breakable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 240.318);
--foreground: oklch(0 0 0);
--muted: oklch(0.917 0.01 17.339);
--muted-foreground: oklch(0.365 0.009 17.565);
--popover: oklch(0.992 0.002 240.318);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.002 240.318);
--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.243 0.053 245.419);
--primary-foreground: oklch(0.781 0.098 242.485);
--secondary: oklch(0.892 0 180);
--secondary-foreground: oklch(0.38 0 180);
--accent: oklch(0.815 0.009 17.346);
--accent-foreground: oklch(0.285 0.009 17.693);
--destructive: oklch(0.569 0.172 38.849);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.243 0.053 245.419);
--chart-1: oklch(0.243 0.053 245.419);
--chart-2: oklch(0.892 0 180);
--chart-3: oklch(0.815 0.009 17.346);
--chart-4: oklch(0.916 0 180);
--chart-5: oklch(0.244 0.055 245.572);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.012 233.032);
--foreground: oklch(0.985 0.001 240.304);
--muted: oklch(0.215 0.011 241.031);
--muted-foreground: oklch(0.805 0.006 240.379);
--popover: oklch(0.114 0.012 233.032);
--popover-foreground: oklch(0.985 0.001 240.304);
--card: oklch(0.114 0.012 233.032);
--card-foreground: oklch(0.985 0.001 240.304);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.243 0.053 245.419);
--primary-foreground: oklch(0.781 0.098 242.485);
--secondary: oklch(0.204 0.002 240.398);
--secondary-foreground: oklch(0.757 0.004 240.36);
--accent: oklch(0.29 0.009 240.71);
--accent-foreground: oklch(0.82 0.009 240.438);
--destructive: oklch(0.588 0.178 38.795);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.243 0.053 245.419);
--chart-1: oklch(0.243 0.053 245.419);
--chart-2: oklch(0.204 0.002 240.398);
--chart-3: oklch(0.29 0.009 240.71);
--chart-4: oklch(0.237 0.002 240.41);
--chart-5: oklch(0.244 0.055 245.572);
}