Brave is a shadcn/ui theme built around a muted red primary color (#766061) with muted teal accents (#607675). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#766061) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #070303black |
| Foreground | #0d0202black | #fdfcfcsnow |
| Card | #fdf6f6snow | #0b0404black |
| Card foreground | #090202black | #ffffffwhite |
| Popover | #fdf6f6snow | #0b0404black |
| Popover foreground | #090202black | #ffffffwhite |
| Primary | #766061dimgray | #766061dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #607675dimgray | #607675dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6eaealavender | #151919black |
| Muted foreground | #515857dimgray | #a7aeaedarkgray |
| Accent | #607675dimgray | #607675dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #aa0c09firebrick | #f53b38tomato |
| Destructive foreground | #fee7e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #766061dimgray | #766061dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 4.83:1 | AA |
| Muted text | 5.99:1 | AA |
| Accent | 4.83:1 | AA |
| Destructive | 6.46:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 4.83:1 | AA |
| Muted text | 7.87:1 | AAA |
| Accent | 4.83:1 | AA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Brave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 16.042);
--foreground: oklch(0.115 0.027 20.525);
--muted: oklch(0.934 0.003 195.909);
--muted-foreground: oklch(0.453 0.009 195.647);
--popover: oklch(0.98 0.008 16.112);
--popover-foreground: oklch(0.1 0.023 20.424);
--card: oklch(0.98 0.008 16.112);
--card-foreground: oklch(0.1 0.023 20.424);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.512 0.028 16.971);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.548 0.025 195.19);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.025 195.19);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.467 0.186 28.909);
--destructive-foreground: oklch(0.946 0.025 18.771);
--ring: oklch(0.512 0.028 16.971);
--chart-1: oklch(0.512 0.028 16.971);
--chart-2: oklch(0.548 0.025 195.19);
--chart-3: oklch(0.548 0.025 195.19);
--chart-4: oklch(0.576 0.027 195.185);
--chart-5: oklch(0.507 0.037 17.315);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.014 18.243);
--foreground: oklch(0.992 0.001 15.99);
--muted: oklch(0.208 0.005 195.564);
--muted-foreground: oklch(0.746 0.008 195.796);
--popover: oklch(0.122 0.016 18.259);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.016 18.259);
--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.512 0.028 16.971);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.548 0.025 195.19);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.025 195.19);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.221 26.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.028 16.971);
--chart-1: oklch(0.512 0.028 16.971);
--chart-2: oklch(0.548 0.025 195.19);
--chart-3: oklch(0.548 0.025 195.19);
--chart-4: oklch(0.576 0.027 195.185);
--chart-5: oklch(0.507 0.037 17.315);
}