Blink (rainglow) for shadcn/ui

Blink (rainglow) is a shadcn/ui theme built around a muted light blue primary color (#c1cddc) with muted blue accents (#485760). The light mode uses a blue-tinted background (#272f34). Dark mode keeps the muted light blue primary (#c1cddc) on a blue-tinted background (#272f34).

Color palette

TokenLightDark
Background
#272f34darkslategray
#272f34darkslategray
Foreground
#c1cddclightsteelblue
#c1cddclightsteelblue
Card
#232a2fdarkslategray
#232a2fdarkslategray
Card foreground
#d2dae5gainsboro
#d2dae5gainsboro
Popover
#21272cdarkslategray
#21272cdarkslategray
Popover foreground
#e2e7eelavender
#e2e7eelavender
Primary
#c1cddclightsteelblue
#c1cddclightsteelblue
Primary foreground
#273444darkslategray
#273444darkslategray
Secondary
#353f4bdarkslategray
#353f4bdarkslategray
Secondary foreground
#d2d8dfgainsboro
#d2d8dfgainsboro
Muted
#313a3fdarkslategray
#313a3fdarkslategray
Muted foreground
#afbac0silver
#afbac0silver
Accent
#485760darkslategray
#485760darkslategray
Accent foreground
#ebeef0whitesmoke
#ebeef0whitesmoke
Destructive
#eb2c0forangered
#eb2c0forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383b3ddarkslategray
#383b3ddarkslategray
Input
#404345darkslategray
#404345darkslategray
Ring
#c1cddclightsteelblue
#c1cddclightsteelblue

Contrast

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

Light mode
Text on background8.40:1AAA
Text on card10.31:1AAA
Primary button7.86:1AAA
Secondary button7.48:1AAA
Muted text5.88:1AA
Accent6.41:1AA
Destructive4.28:1AA Large
Dark mode
Text on background8.40:1AAA
Text on card10.31:1AAA
Primary button7.86:1AAA
Secondary button7.48:1AAA
Muted text5.88:1AA
Accent6.41:1AA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.301 0.014 235.245);
  --foreground: oklch(0.844 0.024 253.395);
  --muted: oklch(0.341 0.014 235.161);
  --muted-foreground: oklch(0.781 0.015 234.788);
  --popover: oklch(0.27 0.012 235.209);
  --popover-foreground: oklch(0.927 0.011 253.298);
  --card: oklch(0.281 0.013 235.222);
  --card-foreground: oklch(0.886 0.017 253.346);
  --border: oklch(0.351 0.005 234.714);
  --input: oklch(0.38 0.006 234.719);
  --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.447 0.023 235.344);
  --accent-foreground: oklch(0.947 0.004 234.57);
  --destructive: oklch(0.607 0.227 31.339);
  --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.447 0.023 235.344);
  --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.301 0.014 235.245);
  --foreground: oklch(0.844 0.024 253.395);
  --muted: oklch(0.341 0.014 235.161);
  --muted-foreground: oklch(0.781 0.015 234.788);
  --popover: oklch(0.27 0.012 235.209);
  --popover-foreground: oklch(0.927 0.011 253.298);
  --card: oklch(0.281 0.013 235.222);
  --card-foreground: oklch(0.886 0.017 253.346);
  --border: oklch(0.351 0.005 234.714);
  --input: oklch(0.38 0.006 234.719);
  --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.447 0.023 235.344);
  --accent-foreground: oklch(0.947 0.004 234.57);
  --destructive: oklch(0.607 0.227 31.339);
  --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.447 0.023 235.344);
  --chart-4: oklch(0.391 0.027 253.6);
  --chart-5: oklch(0.844 0.027 253.413);
}