Bold Contrast (rainglow) is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#372f2f). The light mode uses a neutral background (#0e0c0c). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#0e0c0c).
| Token | Light | Dark |
|---|---|---|
| Background | #0e0c0cblack | #0e0c0cblack |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #080707black | #080707black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #050505black | #050505black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2b2222darkslategray | #2b2222darkslategray |
| Muted foreground | #b09b9brosybrown | #b09b9brosybrown |
| Accent | #372f2fdarkslategray | #372f2fdarkslategray |
| Accent foreground | #d0c8c8lightgrey | #d0c8c8lightgrey |
| Destructive | #df1b11crimson | #df1b11crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1a1a1ablack | #1a1a1ablack |
| Input | #212121black | #212121black |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.88:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Bold Contrast (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.156 0.003 17.485);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.114 0.002 17.443);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.002 17.443);
--card-foreground: oklch(1 0 180);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.315 0.01 17.715);
--accent-foreground: oklch(0.84 0.008 17.315);
--destructive: oklch(0.575 0.225 29.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.315 0.01 17.715);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.003 17.485);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.114 0.002 17.443);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.002 17.443);
--card-foreground: oklch(1 0 180);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.315 0.01 17.715);
--accent-foreground: oklch(0.84 0.008 17.315);
--destructive: oklch(0.575 0.225 29.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.315 0.01 17.715);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}