Azure Contrast (rainglow) for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.43:1AAA
Text on card21.00:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.00:1AA
Accent8.05:1AAA
Destructive5.42:1AA
Dark mode
Text on background20.43:1AAA
Text on card21.00:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.00:1AA
Accent8.05:1AAA
Destructive5.42:1AA

CSS variables

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);
}