Breakable is a shadcn/ui theme built around a vivid green primary color (#c1fb6f) with vivid green accents (#7bfb6f). The light mode uses a neutral background (#fafcf7). Dark mode keeps the vivid green primary (#c1fb6f) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf7snow | #030401black |
| Foreground | #080c03black | #ffffffwhite |
| Card | #fafcf7snow | #030401black |
| Card foreground | #080c03black | #ffffffwhite |
| Popover | #fafcf7snow | #030401black |
| Popover foreground | #080c03black | #ffffffwhite |
| Primary | #c1fb6fpalegreen | #c1fb6fpalegreen |
| Primary foreground | #203701darkgreen | #203701darkgreen |
| Secondary | #fbf06fkhaki | #fbf06fkhaki |
| Secondary foreground | #373201black | #373201black |
| Muted | #edecd9beige | #262512black |
| Muted foreground | #4f4e45darkslategray | #bab9b0silver |
| Accent | #7bfb6flightgreen | #7bfb6flightgreen |
| Accent foreground | #063701darkgreen | #063701darkgreen |
| Destructive | #a20806darkred | #f61713red |
| Destructive foreground | #feddddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1fb6fpalegreen | #c1fb6fpalegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 10.77:1 | AAA |
| Secondary button | 10.96:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 10.22:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 10.77:1 | AAA |
| Secondary button | 10.96:1 | AAA |
| Muted text | 7.87:1 | AAA |
| Accent | 10.22:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Breakable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 125.142);
--foreground: oklch(0.147 0.024 124.547);
--muted: oklch(0.938 0.025 102.641);
--muted-foreground: oklch(0.423 0.015 102.781);
--popover: oklch(0.989 0.007 125.142);
--popover-foreground: oklch(0.147 0.024 124.547);
--card: oklch(0.989 0.007 125.142);
--card-foreground: oklch(0.147 0.024 124.547);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.921 0.18 128.403);
--primary-foreground: oklch(0.305 0.081 130.471);
--secondary: oklch(0.939 0.15 104.103);
--secondary-foreground: oklch(0.313 0.065 104.015);
--accent: oklch(0.886 0.214 142.028);
--accent-foreground: oklch(0.293 0.095 141.502);
--destructive: oklch(0.451 0.181 29.06);
--destructive-foreground: oklch(0.925 0.036 18.987);
--ring: oklch(0.921 0.18 128.403);
--chart-1: oklch(0.921 0.18 128.403);
--chart-2: oklch(0.939 0.15 104.103);
--chart-3: oklch(0.886 0.214 142.028);
--chart-4: oklch(0.944 0.138 104.037);
--chart-5: oklch(0.926 0.185 128.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.012 124.414);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.032 103.875);
--muted-foreground: oklch(0.785 0.013 102.484);
--popover: oklch(0.099 0.012 124.414);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.012 124.414);
--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.921 0.18 128.403);
--primary-foreground: oklch(0.305 0.081 130.471);
--secondary: oklch(0.939 0.15 104.103);
--secondary-foreground: oklch(0.313 0.065 104.015);
--accent: oklch(0.886 0.214 142.028);
--accent-foreground: oklch(0.293 0.095 141.502);
--destructive: oklch(0.617 0.246 28.898);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.18 128.403);
--chart-1: oklch(0.921 0.18 128.403);
--chart-2: oklch(0.939 0.15 104.103);
--chart-3: oklch(0.886 0.214 142.028);
--chart-4: oklch(0.944 0.138 104.037);
--chart-5: oklch(0.926 0.185 128.506);
}