Break is a shadcn/ui theme built around a near-white primary color (#fffafe) with near-white accents (#fafeff). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-white primary (#fffafe) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #0d020bblack | #ffffffwhite |
| Card | #fcf8fbsnow | #000000black |
| Card foreground | #0d020bblack | #ffffffwhite |
| Popover | #fcf8fbsnow | #000000black |
| Popover foreground | #0d020bblack | #ffffffwhite |
| Primary | #fffafesnow | #fffafesnow |
| Primary foreground | #590848indigo | #590848indigo |
| Secondary | #fefffawhite | #fefffawhite |
| Secondary foreground | #485908darkolivegreen | #485908darkolivegreen |
| Muted | #eeeeecwhitesmoke | #131311black |
| Muted foreground | #51524cdarkslategray | #b2b3addarkgray |
| Accent | #fafeffwhite | #fafeffwhite |
| Accent foreground | #084859darkslategray | #084859darkslategray |
| Destructive | #ac2b11firebrick | #e94220orangered |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fffafesnow | #fffafesnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 13.11:1 | AAA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 9.92:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 13.11:1 | AAA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 9.92:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Break in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 332.719);
--foreground: oklch(0.121 0.035 334.345);
--muted: oklch(0.949 0.003 116.395);
--muted-foreground: oklch(0.436 0.01 116.76);
--popover: oklch(0.983 0.006 332.719);
--popover-foreground: oklch(0.121 0.035 334.345);
--card: oklch(0.983 0.006 332.719);
--card-foreground: oklch(0.121 0.035 334.345);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.99 0.006 332.715);
--primary-foreground: oklch(0.32 0.13 339.378);
--secondary: oklch(0.997 0.006 116.434);
--secondary-foreground: oklch(0.434 0.102 122.269);
--accent: oklch(0.994 0.004 216.027);
--accent-foreground: oklch(0.372 0.066 222.493);
--destructive: oklch(0.491 0.169 32.872);
--destructive-foreground: oklch(0.972 0.012 31.067);
--ring: oklch(0.99 0.006 332.715);
--chart-1: oklch(0.99 0.006 332.715);
--chart-2: oklch(0.997 0.006 116.434);
--chart-3: oklch(0.994 0.004 216.027);
--chart-4: oklch(1.006 0.011 296.124);
--chart-5: oklch(0.99 0.007 332.719);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.005 116.824);
--muted-foreground: oklch(0.764 0.009 116.544);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.99 0.006 332.715);
--primary-foreground: oklch(0.32 0.13 339.378);
--secondary: oklch(0.997 0.006 116.434);
--secondary-foreground: oklch(0.434 0.102 122.269);
--accent: oklch(0.994 0.004 216.027);
--accent-foreground: oklch(0.372 0.066 222.493);
--destructive: oklch(0.621 0.209 33.003);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.99 0.006 332.715);
--chart-1: oklch(0.99 0.006 332.715);
--chart-2: oklch(0.997 0.006 116.434);
--chart-3: oklch(0.994 0.004 216.027);
--chart-4: oklch(1.006 0.011 296.124);
--chart-5: oklch(0.99 0.007 332.719);
}