Break is a shadcn/ui theme built around a muted deep red primary color (#523a38) with muted deep indigo accents (#3a3852). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#523a38) on a red-tinted background (#0f0606).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0f0606black |
| Foreground | #040101black | #fcf8f8snow |
| Card | #fefbfbsnow | #0f0606black |
| Card foreground | #040101black | #fcf8f8snow |
| Popover | #fefbfbsnow | #0f0606black |
| Popover foreground | #040101black | #fcf8f8snow |
| Primary | #523a38darkslategray | #523a38darkslategray |
| Primary foreground | #e4d9d8gainsboro | #e4d9d8gainsboro |
| Secondary | #38523adarkslategray | #38523adarkslategray |
| Secondary foreground | #d8e4d9gainsboro | #d8e4d9gainsboro |
| Muted | #cfe2d1lightgrey | #1d301edarkslategray |
| Muted foreground | #525b53dimgray | #a4ada5darkgray |
| Accent | #3a3852darkslategray | #3a3852darkslategray |
| Accent foreground | #d9d8e4gainsboro | #d9d8e4gainsboro |
| Destructive | #ca3116firebrick | #ea5c43tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #523a38darkslategray | #523a38darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 5.19:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 6.10:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Break in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 23.612);
--foreground: oklch(0.084 0.013 28.762);
--muted: oklch(0.895 0.031 147.691);
--muted-foreground: oklch(0.461 0.017 147.676);
--popover: oklch(0.991 0.003 23.612);
--popover-foreground: oklch(0.084 0.013 28.762);
--card: oklch(0.991 0.003 23.612);
--card-foreground: oklch(0.084 0.013 28.762);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.035 24.72);
--primary-foreground: oklch(0.893 0.013 23.725);
--secondary: oklch(0.41 0.051 146.651);
--secondary-foreground: oklch(0.907 0.021 147.824);
--accent: oklch(0.354 0.045 287.673);
--accent-foreground: oklch(0.885 0.017 289.88);
--destructive: oklch(0.552 0.193 32.224);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.375 0.035 24.72);
--chart-1: oklch(0.375 0.035 24.72);
--chart-2: oklch(0.41 0.051 146.651);
--chart-3: oklch(0.354 0.045 287.673);
--chart-4: oklch(0.44 0.055 146.628);
--chart-5: oklch(0.373 0.04 24.961);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 26.729);
--foreground: oklch(0.983 0.004 23.617);
--muted: oklch(0.286 0.04 146.434);
--muted-foreground: oklch(0.737 0.015 147.85);
--popover: oklch(0.138 0.017 26.729);
--popover-foreground: oklch(0.983 0.004 23.617);
--card: oklch(0.138 0.017 26.729);
--card-foreground: oklch(0.983 0.004 23.617);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.375 0.035 24.72);
--primary-foreground: oklch(0.893 0.013 23.725);
--secondary: oklch(0.41 0.051 146.651);
--secondary-foreground: oklch(0.907 0.021 147.824);
--accent: oklch(0.354 0.045 287.673);
--accent-foreground: oklch(0.885 0.017 289.88);
--destructive: oklch(0.655 0.181 32.158);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.375 0.035 24.72);
--chart-1: oklch(0.375 0.035 24.72);
--chart-2: oklch(0.41 0.051 146.651);
--chart-3: oklch(0.354 0.045 287.673);
--chart-4: oklch(0.44 0.055 146.628);
--chart-5: oklch(0.373 0.04 24.961);
}