Banner (rainglow) is a shadcn/ui theme built around a light indigo primary color (#c7c0de) with muted deep violet accents (#413a55). The light mode uses a violet-tinted background (#1e1b27). Dark mode keeps the light indigo primary (#c7c0de) on a violet-tinted background (#1e1b27).
| Token | Light | Dark |
|---|---|---|
| Background | #1e1b27black | #1e1b27black |
| Foreground | #c7c0dethistle | #c7c0dethistle |
| Card | #191721black | #191721black |
| Card foreground | #d5d0e6gainsboro | #d5d0e6gainsboro |
| Popover | #17151eblack | #17151eblack |
| Popover foreground | #e4e1eflavender | #e4e1eflavender |
| Primary | #c7c0dethistle | #c7c0dethistle |
| Primary foreground | #2d2546darkslategray | #2d2546darkslategray |
| Secondary | #39324ddarkslategray | #39324ddarkslategray |
| Secondary foreground | #d4d1e1lightgrey | #d4d1e1lightgrey |
| Muted | #292631darkslategray | #292631darkslategray |
| Muted foreground | #a6a1b5darkgray | #a6a1b5darkgray |
| Accent | #413a55darkslategray | #413a55darkslategray |
| Accent foreground | #dddbe6gainsboro | #dddbe6gainsboro |
| Destructive | #e6381aorangered | #e6381aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2c2a32darkslategray | #2c2a32darkslategray |
| Input | #33313adarkslategray | #33313adarkslategray |
| Ring | #c7c0dethistle | #c7c0dethistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.69:1 | AAA |
| Text on card | 11.80:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 4.25:1 | AA Large |
| Text on background | 9.69:1 | AAA |
| Text on card | 11.80:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Banner (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.231 0.024 295.902);
--foreground: oklch(0.822 0.042 296.145);
--muted: oklch(0.276 0.019 296.571);
--muted-foreground: oklch(0.719 0.029 297.094);
--popover: oklch(0.202 0.019 296.078);
--popover-foreground: oklch(0.916 0.019 296.696);
--card: oklch(0.212 0.021 296.012);
--card-foreground: oklch(0.869 0.031 296.441);
--border: oklch(0.29 0.015 296.891);
--input: oklch(0.318 0.017 296.856);
--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.367 0.047 295.479);
--accent-foreground: oklch(0.896 0.016 297.507);
--destructive: oklch(0.606 0.213 32.189);
--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.367 0.047 295.479);
--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.231 0.024 295.902);
--foreground: oklch(0.822 0.042 296.145);
--muted: oklch(0.276 0.019 296.571);
--muted-foreground: oklch(0.719 0.029 297.094);
--popover: oklch(0.202 0.019 296.078);
--popover-foreground: oklch(0.916 0.019 296.696);
--card: oklch(0.212 0.021 296.012);
--card-foreground: oklch(0.869 0.031 296.441);
--border: oklch(0.29 0.015 296.891);
--input: oklch(0.318 0.017 296.856);
--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.367 0.047 295.479);
--accent-foreground: oklch(0.896 0.016 297.507);
--destructive: oklch(0.606 0.213 32.189);
--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.367 0.047 295.479);
--chart-4: oklch(0.363 0.052 294.398);
--chart-5: oklch(0.819 0.046 296.048);
}