Azure Contrast (rainglow) is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted deep blue accents (#202737). The light mode uses a neutral background (#040506). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#040506).
| Token | Light | Dark |
|---|---|---|
| Background | #040506black | #040506black |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #000000black | #000000black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #000000black | #000000black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba2b0darkgray | #9ba2b0darkgray |
| Accent | #202737darkslategray | #202737darkslategray |
| Accent foreground | #b5bfd4lightsteelblue | #b5bfd4lightsteelblue |
| Destructive | #d31212firebrick | #d31212firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #0f1115black | #0f1115black |
| Input | #15181eblack | #15181eblack |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 5.42:1 | AA |
| Text on background | 20.43:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 5.42:1 | AA |
Paste this into your globals.css to use Azure Contrast (rainglow) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.112 0.007 261.039);
--foreground: oklch(1 0 180);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.177 0.009 264.313);
--input: oklch(0.209 0.012 264.262);
--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.274 0.031 263.853);
--accent-foreground: oklch(0.803 0.032 264.378);
--destructive: oklch(0.55 0.218 28.493);
--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.274 0.031 263.853);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.007 261.039);
--foreground: oklch(1 0 180);
--muted: oklch(0.263 0.012 264.338);
--muted-foreground: oklch(0.712 0.022 264.424);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.177 0.009 264.313);
--input: oklch(0.209 0.012 264.262);
--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.274 0.031 263.853);
--accent-foreground: oklch(0.803 0.032 264.378);
--destructive: oklch(0.55 0.218 28.493);
--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.274 0.031 263.853);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}