Banner Contrast (rainglow) is a shadcn/ui theme built around a light indigo primary color (#c7c0de) with muted deep indigo accents (#2d293d). The light mode uses an indigo-tinted background (#0b0a0f). Dark mode keeps the light indigo primary (#c7c0de) on an indigo-tinted background (#0b0a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #0b0a0fblack | #0b0a0fblack |
| Foreground | #c7c0dethistle | #c7c0dethistle |
| Card | #070609black | #070609black |
| Card foreground | #d5d0e6gainsboro | #d5d0e6gainsboro |
| Popover | #040406black | #040406black |
| Popover foreground | #e4e1eflavender | #e4e1eflavender |
| Primary | #c7c0dethistle | #c7c0dethistle |
| Primary foreground | #2d2546darkslategray | #2d2546darkslategray |
| Secondary | #39324ddarkslategray | #39324ddarkslategray |
| Secondary foreground | #d4d1e1lightgrey | #d4d1e1lightgrey |
| Muted | #23222bdarkslategray | #23222bdarkslategray |
| Muted foreground | #9f9bb0darkgray | #9f9bb0darkgray |
| Accent | #2d293ddarkslategray | #2d293ddarkslategray |
| Accent foreground | #c6c2d6thistle | #c6c2d6thistle |
| Destructive | #f93e34tomato | #f93e34tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #18171cblack | #18171cblack |
| Input | #1f1e24black | #1f1e24black |
| Ring | #c7c0dethistle | #c7c0dethistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.27:1 | AAA |
| Text on card | 13.46:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.64:1 | AA Large |
| Text on background | 11.27:1 | AAA |
| Text on card | 13.46:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Banner Contrast (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.15 0.011 294.193);
--foreground: oklch(0.822 0.042 296.145);
--muted: oklch(0.257 0.017 294.321);
--muted-foreground: oklch(0.7 0.031 294.749);
--popover: oklch(0.11 0.007 295.299);
--popover-foreground: oklch(0.916 0.019 296.696);
--card: oklch(0.126 0.008 295.299);
--card-foreground: oklch(0.869 0.031 296.441);
--border: oklch(0.208 0.01 294.676);
--input: oklch(0.239 0.013 294.59);
--primary: oklch(0.822 0.042 296.145);
--primary-foreground: oklch(0.29 0.06 293.034);
--secondary: oklch(0.337 0.047 294.459);
--secondary-foreground: oklch(0.868 0.022 296.616);
--accent: oklch(0.294 0.037 293.161);
--accent-foreground: oklch(0.823 0.029 294.936);
--destructive: oklch(0.646 0.224 28.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.822 0.042 296.145);
--chart-1: oklch(0.822 0.042 296.145);
--chart-2: oklch(0.337 0.047 294.459);
--chart-3: oklch(0.294 0.037 293.161);
--chart-4: oklch(0.363 0.052 294.398);
--chart-5: oklch(0.819 0.046 296.048);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.15 0.011 294.193);
--foreground: oklch(0.822 0.042 296.145);
--muted: oklch(0.257 0.017 294.321);
--muted-foreground: oklch(0.7 0.031 294.749);
--popover: oklch(0.11 0.007 295.299);
--popover-foreground: oklch(0.916 0.019 296.696);
--card: oklch(0.126 0.008 295.299);
--card-foreground: oklch(0.869 0.031 296.441);
--border: oklch(0.208 0.01 294.676);
--input: oklch(0.239 0.013 294.59);
--primary: oklch(0.822 0.042 296.145);
--primary-foreground: oklch(0.29 0.06 293.034);
--secondary: oklch(0.337 0.047 294.459);
--secondary-foreground: oklch(0.868 0.022 296.616);
--accent: oklch(0.294 0.037 293.161);
--accent-foreground: oklch(0.823 0.029 294.936);
--destructive: oklch(0.646 0.224 28.294);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.822 0.042 296.145);
--chart-1: oklch(0.822 0.042 296.145);
--chart-2: oklch(0.337 0.047 294.459);
--chart-3: oklch(0.294 0.037 293.161);
--chart-4: oklch(0.363 0.052 294.398);
--chart-5: oklch(0.819 0.046 296.048);
}