brutal 2 is a shadcn/ui theme built around a vivid yellow primary color (#ffc300) with light blue accents (#f1f5f9). The light mode uses a neutral background (#fafafa). Dark mode switches to a near-white primary (#f8fafc) on a blue-tinted background (#020817).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #020817black |
| Foreground | #131111black | #f8fafcghostwhite |
| Card | #fafafasnow | #020817black |
| Card foreground | #020817black | #f8fafcghostwhite |
| Popover | #fafafasnow | #020817black |
| Popover foreground | #131111black | #f8fafcghostwhite |
| Primary | #ffc300gold | #f8fafcghostwhite |
| Primary foreground | #020817black | #0f172ablack |
| Secondary | #283b7bdarkslateblue | #1e293bdarkslategray |
| Secondary foreground | #f8fafcghostwhite | #f8fafcghostwhite |
| Muted | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Muted foreground | #a3a3a3darkgray | #94a3b8darkgray |
| Accent | #f1f5f9whitesmoke | #1e293bdarkslategray |
| Accent foreground | #0f172ablack | #f8fafcghostwhite |
| Destructive | #ef4444tomato | #7f1d1dmaroon |
| Destructive foreground | #f8fafcghostwhite | #f8fafcghostwhite |
| Border | #e2e8f0lavender | #1e293bdarkslategray |
| Input | #e2e8f0lavender | #1e293bdarkslategray |
| Ring | #020817black | #cbd5e1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.02:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 12.43:1 | AAA |
| Secondary button | 10.02:1 | AAA |
| Muted text | 2.30:1 | Fail |
| Accent | 16.30:1 | AAA |
| Destructive | 3.59:1 | AA Large |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 17.04:1 | AAA |
| Secondary button | 13.95:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 13.95:1 | AAA |
| Destructive | 9.57:1 | AAA |
Paste this into your globals.css to use brutal 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 170.538);
--foreground: oklch(0.18 0.003 17.464);
--muted: oklch(0.968 0.007 247.895);
--muted-foreground: oklch(0.715 0 180);
--popover: oklch(0.985 0 170.538);
--popover-foreground: oklch(0.18 0.003 17.464);
--card: oklch(0.985 0 170.538);
--card-foreground: oklch(0.137 0.036 258.526);
--border: oklch(0.929 0.013 255.532);
--input: oklch(0.929 0.013 255.532);
--primary: oklch(0.848 0.174 86.056);
--primary-foreground: oklch(0.136 0.036 259.201);
--secondary: oklch(0.374 0.111 268.204);
--secondary-foreground: oklch(0.984 0.003 247.858);
--accent: oklch(0.968 0.007 247.895);
--accent-foreground: oklch(0.208 0.04 265.727);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.984 0.003 247.859);
--ring: oklch(0.137 0.036 258.526);
--chart-1: oklch(0.848 0.174 86.056);
--chart-2: oklch(0.374 0.111 268.204);
--chart-3: oklch(0.968 0.007 247.895);
--chart-4: oklch(0.397 0.12 268.127);
--chart-5: oklch(0.856 0.176 85.667);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.036 258.526);
--foreground: oklch(0.984 0.003 247.859);
--muted: oklch(0.28 0.037 259.974);
--muted-foreground: oklch(0.711 0.035 256.788);
--popover: oklch(0.137 0.036 258.526);
--popover-foreground: oklch(0.984 0.003 247.859);
--card: oklch(0.137 0.036 258.526);
--card-foreground: oklch(0.984 0.003 247.859);
--border: oklch(0.28 0.037 259.974);
--input: oklch(0.28 0.037 259.974);
--primary: oklch(0.984 0.003 247.859);
--primary-foreground: oklch(0.208 0.04 265.727);
--secondary: oklch(0.28 0.037 259.974);
--secondary-foreground: oklch(0.984 0.003 247.859);
--accent: oklch(0.28 0.037 259.974);
--accent-foreground: oklch(0.984 0.003 247.859);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.984 0.003 247.859);
--ring: oklch(0.869 0.02 252.847);
--chart-1: oklch(0.984 0.003 247.859);
--chart-2: oklch(0.28 0.037 259.974);
--chart-3: oklch(0.28 0.037 259.974);
--chart-4: oklch(0.308 0.042 259.957);
--chart-5: oklch(0.984 0.004 247.861);
}