Absent Contrast (rainglow) for shadcn/ui

Absent Contrast (rainglow) is a shadcn/ui theme built around a muted blue primary color (#afbac5) with muted deep blue accents (#2e3842). The light mode uses a blue-tinted background (#0f1215). Dark mode keeps the muted blue primary (#afbac5) on a blue-tinted background (#0f1215).

Color palette

TokenLightDark
Background
#0f1215black
#0f1215black
Foreground
#afbac5silver
#afbac5silver
Card
#0a0d0fblack
#0a0d0fblack
Card foreground
#bec7d0silver
#bec7d0silver
Popover
#080a0cblack
#080a0cblack
Popover foreground
#cdd4dblightgrey
#cdd4dblightgrey
Primary
#afbac5silver
#afbac5silver
Primary foreground
#1c2126black
#1c2126black
Secondary
#3c4044darkslategray
#3c4044darkslategray
Secondary foreground
#d6d9dbgainsboro
#d6d9dbgainsboro
Muted
#22262bdarkslategray
#22262bdarkslategray
Muted foreground
#9ba6b0darkgray
#9ba6b0darkgray
Accent
#2e3842darkslategray
#2e3842darkslategray
Accent foreground
#c9d1d9lightgrey
#c9d1d9lightgrey
Destructive
#d41811firebrick
#d41811firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#1c1f21black
#1c1f21black
Input
#232629darkslategray
#232629darkslategray
Ring
#afbac5silver
#afbac5silver

Contrast

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

Light mode
Text on background9.54:1AAA
Text on card11.39:1AAA
Primary button8.23:1AAA
Secondary button7.39:1AAA
Muted text6.13:1AA
Accent7.71:1AAA
Destructive5.32:1AA
Dark mode
Text on background9.54:1AAA
Text on card11.39:1AAA
Primary button8.23:1AAA
Secondary button7.39:1AAA
Muted text6.13:1AA
Accent7.71:1AAA
Destructive5.32:1AA

CSS variables

Paste this into your globals.css to use Absent Contrast (rainglow) in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.179 0.008 248.293);
  --foreground: oklch(0.784 0.02 248.082);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.144 0.005 246.91);
  --popover-foreground: oklch(0.866 0.012 247.968);
  --card: oklch(0.156 0.006 248.224);
  --card-foreground: oklch(0.825 0.016 248.022);
  --border: oklch(0.236 0.006 248.081);
  --input: oklch(0.268 0.007 248.098);
  --primary: oklch(0.784 0.02 248.082);
  --primary-foreground: oklch(0.245 0.013 248.347);
  --secondary: oklch(0.368 0.008 248.055);
  --secondary-foreground: oklch(0.883 0.004 247.869);
  --accent: oklch(0.336 0.022 248.496);
  --accent-foreground: oklch(0.857 0.015 247.998);
  --destructive: oklch(0.554 0.217 29.063);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.02 248.082);
  --chart-1: oklch(0.784 0.02 248.082);
  --chart-2: oklch(0.368 0.008 248.055);
  --chart-3: oklch(0.336 0.022 248.496);
  --chart-4: oklch(0.397 0.009 248.059);
  --chart-5: oklch(0.783 0.024 248.13);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.179 0.008 248.293);
  --foreground: oklch(0.784 0.02 248.082);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.144 0.005 246.91);
  --popover-foreground: oklch(0.866 0.012 247.968);
  --card: oklch(0.156 0.006 248.224);
  --card-foreground: oklch(0.825 0.016 248.022);
  --border: oklch(0.236 0.006 248.081);
  --input: oklch(0.268 0.007 248.098);
  --primary: oklch(0.784 0.02 248.082);
  --primary-foreground: oklch(0.245 0.013 248.347);
  --secondary: oklch(0.368 0.008 248.055);
  --secondary-foreground: oklch(0.883 0.004 247.869);
  --accent: oklch(0.336 0.022 248.496);
  --accent-foreground: oklch(0.857 0.015 247.998);
  --destructive: oklch(0.554 0.217 29.063);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.784 0.02 248.082);
  --chart-1: oklch(0.784 0.02 248.082);
  --chart-2: oklch(0.368 0.008 248.055);
  --chart-3: oklch(0.336 0.022 248.496);
  --chart-4: oklch(0.397 0.009 248.059);
  --chart-5: oklch(0.783 0.024 248.13);
}