Break is a shadcn/ui theme built around a vivid light purple primary color (#fcd4f2) with neutral gray accents (#dbd6d6). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light purple primary (#fcd4f2) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #070306black |
| Foreground | #040103black | #f8f6f8whitesmoke |
| Card | #fefbfdsnow | #070306black |
| Card foreground | #040103black | #f8f6f8whitesmoke |
| Popover | #fefbfdsnow | #070306black |
| Popover foreground | #040103black | #f8f6f8whitesmoke |
| Primary | #fcd4f2mistyrose | #fcd4f2mistyrose |
| Primary foreground | #950972purple | #950972purple |
| Secondary | #e8e8e8lavender | #1d1b1cblack |
| Secondary foreground | #4f4f4fdarkslategray | #b7b4b6silver |
| Muted | #f2e3e3mistyrose | #1c0d18black |
| Muted foreground | #6f5858dimgray | #a790a2darkgray |
| Accent | #dbd6d6gainsboro | #372f35darkslategray |
| Accent foreground | #443c3cdarkslategray | #d0c8celightgrey |
| Destructive | #c02d0cfirebrick | #f03c14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcd4f2mistyrose | #fcd4f2mistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.68:1 | AA |
| Muted text | 5.26:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Break in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 333.96);
--foreground: oklch(0.083 0.024 334.809);
--muted: oklch(0.928 0.016 17.447);
--muted-foreground: oklch(0.483 0.032 18.306);
--popover: oklch(0.991 0.005 333.96);
--popover-foreground: oklch(0.083 0.024 334.809);
--card: oklch(0.991 0.005 333.96);
--card-foreground: oklch(0.083 0.024 334.809);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.912 0.06 334.95);
--primary-foreground: oklch(0.453 0.19 342.339);
--secondary: oklch(0.931 0 180);
--secondary-foreground: oklch(0.428 0 180);
--accent: oklch(0.881 0.005 17.253);
--accent-foreground: oklch(0.364 0.011 17.653);
--destructive: oklch(0.529 0.187 33.143);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.912 0.06 334.95);
--chart-1: oklch(0.912 0.06 334.95);
--chart-2: oklch(0.931 0 180);
--chart-3: oklch(0.881 0.005 17.253);
--chart-4: oklch(0.954 0 180);
--chart-5: oklch(0.912 0.062 334.986);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.014 334.334);
--foreground: oklch(0.976 0.003 333.923);
--muted: oklch(0.186 0.032 336.561);
--muted-foreground: oklch(0.679 0.038 334.789);
--popover: oklch(0.111 0.014 334.334);
--popover-foreground: oklch(0.976 0.003 333.923);
--card: oklch(0.111 0.014 334.334);
--card-foreground: oklch(0.976 0.003 333.923);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.912 0.06 334.95);
--primary-foreground: oklch(0.453 0.19 342.339);
--secondary: oklch(0.226 0.002 334.052);
--secondary-foreground: oklch(0.772 0.005 333.976);
--accent: oklch(0.317 0.014 334.59);
--accent-foreground: oklch(0.841 0.011 334.091);
--destructive: oklch(0.628 0.221 33.226);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.912 0.06 334.95);
--chart-1: oklch(0.912 0.06 334.95);
--chart-2: oklch(0.226 0.002 334.052);
--chart-3: oklch(0.317 0.014 334.59);
--chart-4: oklch(0.258 0.003 334.065);
--chart-5: oklch(0.912 0.062 334.986);
}