Brave Contrast (rainglow) is a shadcn/ui theme built around a neutral gray primary color (#d6dbdb) with muted deep blue accents (#2f3541). The light mode uses a blue-tinted background (#0f1115). Dark mode keeps the neutral gray primary (#d6dbdb) on a blue-tinted background (#0f1115).
| Token | Light | Dark |
|---|---|---|
| Background | #0f1115black | #0f1115black |
| Foreground | #d6dbdbgainsboro | #d6dbdbgainsboro |
| Card | #0b0c0fblack | #0b0c0fblack |
| Card foreground | #e4e7e7gainsboro | #e4e7e7gainsboro |
| Popover | #090a0cblack | #090a0cblack |
| Popover foreground | #f1f3f3whitesmoke | #f1f3f3whitesmoke |
| Primary | #d6dbdbgainsboro | #d6dbdbgainsboro |
| Primary foreground | #3c4444darkslategray | #3c4444darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba2b0darkgray | #9ba2b0darkgray |
| Accent | #2f3541darkslategray | #2f3541darkslategray |
| Accent foreground | #cacfd8lightgrey | #cacfd8lightgrey |
| Destructive | #fc4231tomato | #fc4231tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1d1e20black | #1d1e20black |
| Input | #242529darkslategray | #242529darkslategray |
| Ring | #d6dbdbgainsboro | #d6dbdbgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.52:1 | AAA |
| Text on card | 15.72:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 3.52:1 | AA Large |
| Text on background | 13.52:1 | AAA |
| Text on card | 15.72:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Brave Contrast (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.177 0.008 264.332);
--foreground: oklch(0.888 0.005 197.067);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.143 0.005 263.327);
--popover-foreground: oklch(0.963 0.002 197.131);
--card: oklch(0.154 0.006 264.375);
--card-foreground: oklch(0.926 0.003 197.1);
--border: oklch(0.235 0.005 264.471);
--input: oklch(0.266 0.006 264.465);
--primary: oklch(0.888 0.005 197.067);
--primary-foreground: oklch(0.378 0.01 196.733);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.329 0.023 264.192);
--accent-foreground: oklch(0.853 0.015 264.49);
--destructive: oklch(0.655 0.224 29.617);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.005 197.067);
--chart-1: oklch(0.888 0.005 197.067);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.329 0.023 264.192);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.89 0.007 197.022);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.177 0.008 264.332);
--foreground: oklch(0.888 0.005 197.067);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0.143 0.005 263.327);
--popover-foreground: oklch(0.963 0.002 197.131);
--card: oklch(0.154 0.006 264.375);
--card-foreground: oklch(0.926 0.003 197.1);
--border: oklch(0.235 0.005 264.471);
--input: oklch(0.266 0.006 264.465);
--primary: oklch(0.888 0.005 197.067);
--primary-foreground: oklch(0.378 0.01 196.733);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.329 0.023 264.192);
--accent-foreground: oklch(0.853 0.015 264.49);
--destructive: oklch(0.655 0.224 29.617);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.005 197.067);
--chart-1: oklch(0.888 0.005 197.067);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.329 0.023 264.192);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.89 0.007 197.022);
}