Brave is a shadcn/ui theme built around a vivid deep green primary color (#053d1c) with vivid deep pink accents (#3d0527). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#053d1c) on a green-tinted background (#050f09).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050f09black |
| Foreground | #010904black | #f6f9f7whitesmoke |
| Card | #fcfdfcwhite | #050f09black |
| Card foreground | #010904black | #f6f9f7whitesmoke |
| Popover | #fcfdfcwhite | #050f09black |
| Popover foreground | #010904black | #f6f9f7whitesmoke |
| Primary | #053d1cdarkgreen | #053d1cdarkgreen |
| Primary foreground | #21ed73springgreen | #21ed73springgreen |
| Secondary | #3d0527black | #3d0527black |
| Secondary foreground | #f580c6hotpink | #f580c6hotpink |
| Muted | #eee2e9linen | #1d1118black |
| Muted foreground | #686466dimgray | #9b9799darkgray |
| Accent | #3d0527black | #3d0527black |
| Accent foreground | #f580c6hotpink | #f580c6hotpink |
| Destructive | #9e1e10firebrick | #e93420orangered |
| Destructive foreground | #fce6e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #053d1cdarkgreen | #053d1cdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 4.64:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 18.33:1 | AAA |
| Text on card | 18.33:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Brave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 160.176);
--foreground: oklch(0.125 0.022 160.085);
--muted: oklch(0.925 0.015 340.608);
--muted-foreground: oklch(0.508 0.006 340.516);
--popover: oklch(0.993 0.002 160.176);
--popover-foreground: oklch(0.125 0.022 160.085);
--card: oklch(0.993 0.002 160.176);
--card-foreground: oklch(0.125 0.022 160.085);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.318 0.081 151.202);
--primary-foreground: oklch(0.829 0.222 149.967);
--secondary: oklch(0.245 0.092 349.492);
--secondary-foreground: oklch(0.75 0.164 344.837);
--accent: oklch(0.245 0.092 349.492);
--accent-foreground: oklch(0.75 0.164 344.837);
--destructive: oklch(0.454 0.165 30.505);
--destructive-foreground: oklch(0.941 0.025 25.227);
--ring: oklch(0.318 0.081 151.202);
--chart-1: oklch(0.318 0.081 151.202);
--chart-2: oklch(0.245 0.092 349.492);
--chart-3: oklch(0.245 0.092 349.492);
--chart-4: oklch(0.279 0.107 350.171);
--chart-5: oklch(0.321 0.083 150.985);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.021 158.658);
--foreground: oklch(0.979 0.005 160.125);
--muted: oklch(0.197 0.023 342.702);
--muted-foreground: oklch(0.68 0.006 340.43);
--popover: oklch(0.157 0.021 158.658);
--popover-foreground: oklch(0.979 0.005 160.125);
--card: oklch(0.157 0.021 158.658);
--card-foreground: oklch(0.979 0.005 160.125);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.318 0.081 151.202);
--primary-foreground: oklch(0.829 0.222 149.967);
--secondary: oklch(0.245 0.092 349.492);
--secondary-foreground: oklch(0.75 0.164 344.837);
--accent: oklch(0.245 0.092 349.492);
--accent-foreground: oklch(0.75 0.164 344.837);
--destructive: oklch(0.61 0.219 30.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.318 0.081 151.202);
--chart-1: oklch(0.318 0.081 151.202);
--chart-2: oklch(0.245 0.092 349.492);
--chart-3: oklch(0.245 0.092 349.492);
--chart-4: oklch(0.279 0.107 350.171);
--chart-5: oklch(0.321 0.083 150.985);
}