Allure Contrast (rainglow) is a shadcn/ui theme built around a muted light blue primary color (#c1cddc) with muted deep blue accents (#393e46). The light mode uses a blue-tinted background (#17191c). Dark mode keeps the muted light blue primary (#c1cddc) on a blue-tinted background (#17191c).
| Token | Light | Dark |
|---|---|---|
| Background | #17191cblack | #17191cblack |
| Foreground | #c1cddclightsteelblue | #c1cddclightsteelblue |
| Card | #121416black | #121416black |
| Card foreground | #d2dae5gainsboro | #d2dae5gainsboro |
| Popover | #101114black | #101114black |
| Popover foreground | #e2e7eelavender | #e2e7eelavender |
| Primary | #c1cddclightsteelblue | #c1cddclightsteelblue |
| Primary foreground | #273444darkslategray | #273444darkslategray |
| Secondary | #353f4bdarkslategray | #353f4bdarkslategray |
| Secondary foreground | #d2d8dfgainsboro | #d2d8dfgainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba4b0darkgray | #9ba4b0darkgray |
| Accent | #393e46darkslategray | #393e46darkslategray |
| Accent foreground | #d5d8ddgainsboro | #d5d8ddgainsboro |
| Destructive | #de2612crimson | #de2612crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #262626darkslategray | #262626darkslategray |
| Input | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Ring | #c1cddclightsteelblue | #c1cddclightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.93:1 | AAA |
| Text on card | 13.08:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.78:1 | AA |
| Text on background | 10.93:1 | AAA |
| Text on card | 13.08:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Allure Contrast (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.213 0.007 258.367);
--foreground: oklch(0.844 0.024 253.395);
--muted: oklch(0.264 0.012 258.372);
--muted-foreground: oklch(0.715 0.021 258.365);
--popover: oklch(0.179 0.005 258.363);
--popover-foreground: oklch(0.927 0.011 253.298);
--card: oklch(0.19 0.006 258.365);
--card-foreground: oklch(0.886 0.017 253.346);
--border: oklch(0.27 0 180);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.844 0.024 253.395);
--primary-foreground: oklch(0.321 0.033 253.772);
--secondary: oklch(0.362 0.024 253.593);
--secondary-foreground: oklch(0.88 0.012 253.307);
--accent: oklch(0.364 0.015 258.371);
--accent-foreground: oklch(0.881 0.007 258.333);
--destructive: oklch(0.579 0.218 30.507);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.844 0.024 253.395);
--chart-1: oklch(0.844 0.024 253.395);
--chart-2: oklch(0.362 0.024 253.593);
--chart-3: oklch(0.364 0.015 258.371);
--chart-4: oklch(0.391 0.027 253.6);
--chart-5: oklch(0.844 0.027 253.413);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.213 0.007 258.367);
--foreground: oklch(0.844 0.024 253.395);
--muted: oklch(0.264 0.012 258.372);
--muted-foreground: oklch(0.715 0.021 258.365);
--popover: oklch(0.179 0.005 258.363);
--popover-foreground: oklch(0.927 0.011 253.298);
--card: oklch(0.19 0.006 258.365);
--card-foreground: oklch(0.886 0.017 253.346);
--border: oklch(0.27 0 180);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.844 0.024 253.395);
--primary-foreground: oklch(0.321 0.033 253.772);
--secondary: oklch(0.362 0.024 253.593);
--secondary-foreground: oklch(0.88 0.012 253.307);
--accent: oklch(0.364 0.015 258.371);
--accent-foreground: oklch(0.881 0.007 258.333);
--destructive: oklch(0.579 0.218 30.507);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.844 0.024 253.395);
--chart-1: oklch(0.844 0.024 253.395);
--chart-2: oklch(0.362 0.024 253.593);
--chart-3: oklch(0.364 0.015 258.371);
--chart-4: oklch(0.391 0.027 253.6);
--chart-5: oklch(0.844 0.027 253.413);
}