Brake is a shadcn/ui theme built around a neutral gray primary color (#e0e0e1) with neutral gray accents (#e1e0e0). The light mode uses a neutral background (#f8fafb). Dark mode keeps the neutral gray primary (#e0e0e1) on a blue-tinted background (#070a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafbghostwhite | #070a0eblack |
| Foreground | #050d14black | #fcfcfdwhite |
| Card | #f5f7fawhitesmoke | #080d11black |
| Card foreground | #040a10black | #ffffffwhite |
| Popover | #f5f7fawhitesmoke | #080d11black |
| Popover foreground | #040a10black | #ffffffwhite |
| Primary | #e0e0e1gainsboro | #e0e0e1gainsboro |
| Primary foreground | #464749darkslategray | #464749darkslategray |
| Secondary | #e1e0e0gainsboro | #e1e0e0gainsboro |
| Secondary foreground | #494746darkslategray | #494746darkslategray |
| Muted | #e8ded4gainsboro | #2b2117black |
| Muted foreground | #525251darkslategray | #aeadaddarkgray |
| Accent | #e1e0e0gainsboro | #e1e0e0gainsboro |
| Accent foreground | #494746darkslategray | #494746darkslategray |
| Destructive | #d64b0achocolate | #e04e0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0e0e1gainsboro | #e0e0e1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.67:1 | AAA |
| Text on card | 18.56:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 4.30:1 | AA Large |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 7.02:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Brake in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 247.85);
--foreground: oklch(0.154 0.021 246.458);
--muted: oklch(0.905 0.018 67.599);
--muted-foreground: oklch(0.438 0.002 67.779);
--popover: oklch(0.976 0.004 247.865);
--popover-foreground: oklch(0.141 0.018 243.545);
--card: oklch(0.976 0.004 247.865);
--card-foreground: oklch(0.141 0.018 243.545);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.908 0.001 247.833);
--primary-foreground: oklch(0.399 0.003 247.902);
--secondary: oklch(0.908 0.001 67.808);
--secondary-foreground: oklch(0.4 0.003 67.738);
--accent: oklch(0.908 0.001 67.808);
--accent-foreground: oklch(0.4 0.003 67.738);
--destructive: oklch(0.598 0.186 39.425);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.001 247.833);
--chart-1: oklch(0.908 0.001 247.833);
--chart-2: oklch(0.908 0.001 67.808);
--chart-3: oklch(0.908 0.001 67.808);
--chart-4: oklch(0.931 0.001 67.812);
--chart-5: oklch(0.907 0.003 247.852);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.01 245.655);
--foreground: oklch(0.992 0.001 247.828);
--muted: oklch(0.257 0.024 66.414);
--muted-foreground: oklch(0.749 0.001 67.8);
--popover: oklch(0.155 0.012 248.073);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.012 248.073);
--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.908 0.001 247.833);
--primary-foreground: oklch(0.399 0.003 247.902);
--secondary: oklch(0.908 0.001 67.808);
--secondary-foreground: oklch(0.4 0.003 67.738);
--accent: oklch(0.908 0.001 67.808);
--accent-foreground: oklch(0.4 0.003 67.738);
--destructive: oklch(0.618 0.193 39.351);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.001 247.833);
--chart-1: oklch(0.908 0.001 247.833);
--chart-2: oklch(0.908 0.001 67.808);
--chart-3: oklch(0.908 0.001 67.808);
--chart-4: oklch(0.931 0.001 67.812);
--chart-5: oklch(0.907 0.003 247.852);
}