Breakable is a shadcn/ui theme built around a light purple primary color (#f3def7) with light teal accents (#def7f3). The light mode uses a neutral background (#fcf6fd). Dark mode keeps the light purple primary (#f3def7) on a neutral background (#060407).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf6fdghostwhite | #060407black |
| Foreground | #0f0212black | #f8f7f8whitesmoke |
| Card | #fcf6fdghostwhite | #060407black |
| Card foreground | #0f0212black | #f8f7f8whitesmoke |
| Popover | #fcf6fdghostwhite | #060407black |
| Popover foreground | #0f0212black | #f8f7f8whitesmoke |
| Primary | #f3def7lavender | #f3def7lavender |
| Primary foreground | #721e85rebeccapurple | #721e85rebeccapurple |
| Secondary | #f7f3debeige | #f7f3debeige |
| Secondary foreground | #322b0bblack | #322b0bblack |
| Muted | #efeeeclinen | #131310black |
| Muted foreground | #686350dimgray | #afab97darkgray |
| Accent | #def7f3lightcyan | #def7f3lightcyan |
| Accent foreground | #0b322bdarkslategray | #0b322bdarkslategray |
| Destructive | #ac290cfirebrick | #f15532tomato |
| Destructive foreground | #feefecseashell | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3def7lavender | #f3def7lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 12.65:1 | AAA |
| Muted text | 5.18:1 | AA |
| Accent | 12.45:1 | AAA |
| Destructive | 6.11:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 12.65:1 | AAA |
| Muted text | 8.06:1 | AAA |
| Accent | 12.45:1 | AAA |
| Destructive | 6.07:1 | AA |
Paste this into your globals.css to use Breakable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.011 320.002);
--foreground: oklch(0.131 0.046 321.295);
--muted: oklch(0.949 0.003 96.207);
--muted-foreground: oklch(0.499 0.03 96.809);
--popover: oklch(0.981 0.011 320.002);
--popover-foreground: oklch(0.131 0.046 321.295);
--card: oklch(0.981 0.011 320.002);
--card-foreground: oklch(0.131 0.046 321.295);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.924 0.041 320.031);
--primary-foreground: oklch(0.419 0.17 319.457);
--secondary: oklch(0.961 0.028 96.511);
--secondary-foreground: oklch(0.289 0.048 96.556);
--accent: oklch(0.958 0.028 183.527);
--accent-foreground: oklch(0.287 0.045 178.402);
--destructive: oklch(0.489 0.171 33.292);
--destructive-foreground: oklch(0.963 0.016 32.669);
--ring: oklch(0.924 0.041 320.031);
--chart-1: oklch(0.924 0.041 320.031);
--chart-2: oklch(0.961 0.028 96.511);
--chart-3: oklch(0.958 0.028 183.527);
--chart-4: oklch(0.976 0.018 96.385);
--chart-5: oklch(0.924 0.043 320.033);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.013 320.998);
--foreground: oklch(0.976 0.003 319.994);
--muted: oklch(0.185 0.005 96.47);
--muted-foreground: oklch(0.739 0.028 96.599);
--popover: oklch(0.111 0.013 320.998);
--popover-foreground: oklch(0.976 0.003 319.994);
--card: oklch(0.111 0.013 320.998);
--card-foreground: oklch(0.976 0.003 319.994);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.924 0.041 320.031);
--primary-foreground: oklch(0.419 0.17 319.457);
--secondary: oklch(0.961 0.028 96.511);
--secondary-foreground: oklch(0.289 0.048 96.556);
--accent: oklch(0.958 0.028 183.527);
--accent-foreground: oklch(0.287 0.045 178.402);
--destructive: oklch(0.655 0.198 34.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.924 0.041 320.031);
--chart-1: oklch(0.924 0.041 320.031);
--chart-2: oklch(0.961 0.028 96.511);
--chart-3: oklch(0.958 0.028 183.527);
--chart-4: oklch(0.976 0.018 96.385);
--chart-5: oklch(0.924 0.043 320.033);
}