Celestial for shadcn/ui

Celestial is a shadcn/ui theme built around a vivid red primary color (#e95379) with muted deep blue accents (#2b2f3b). The light mode uses a blue-tinted background (#0b0c0f). Dark mode keeps the vivid red primary (#e95379) on a blue-tinted background (#0b0c0f).

Color palette

TokenLightDark
Background
#0b0c0fblack
#0b0c0fblack
Foreground
#bababasilver
#bababasilver
Card
#070709black
#070709black
Card foreground
#c7c7c7silver
#c7c7c7silver
Popover
#040506black
#040506black
Popover foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Primary
#e95379indianred
#e95379indianred
Primary foreground
#000000black
#000000black
Secondary
#532d36darkslategray
#532d36darkslategray
Secondary foreground
#e4cdd3lightgrey
#e4cdd3lightgrey
Muted
#22242bdarkslategray
#22242bdarkslategray
Muted foreground
#9ba0b0darkgray
#9ba0b0darkgray
Accent
#2b2f3bdarkslategray
#2b2f3bdarkslategray
Accent foreground
#c4c8d4lightgrey
#c4c8d4lightgrey
Destructive
#ec3722orangered
#ec3722orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#18191bblack
#18191bblack
Input
#1f2023black
#1f2023black
Ring
#e95379indianred
#e95379indianred

Contrast

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

Light mode
Text on background10.09:1AAA
Text on card11.91:1AAA
Primary button5.98:1AA
Secondary button7.80:1AAA
Muted text5.94:1AA
Accent7.96:1AAA
Destructive4.09:1AA Large
Dark mode
Text on background10.09:1AAA
Text on card11.91:1AAA
Primary button5.98:1AA
Secondary button7.80:1AAA
Muted text5.94:1AA
Accent7.96:1AAA
Destructive4.09:1AA Large

CSS variables

Paste this into your globals.css to use Celestial in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.154 0.006 270.981);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.261 0.013 270.863);
  --muted-foreground: oklch(0.708 0.024 271.061);
  --popover: oklch(0.113 0.004 269.758);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.129 0.005 269.758);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.213 0.004 271.233);
  --input: oklch(0.245 0.005 271.216);
  --primary: oklch(0.653 0.185 8.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.348 0.058 4.424);
  --secondary-foreground: oklch(0.87 0.027 0.719);
  --accent: oklch(0.307 0.021 270.631);
  --accent-foreground: oklch(0.834 0.016 271.216);
  --destructive: oklch(0.617 0.219 30.451);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.185 8.687);
  --chart-1: oklch(0.653 0.185 8.687);
  --chart-2: oklch(0.348 0.058 4.424);
  --chart-3: oklch(0.307 0.021 270.631);
  --chart-4: oklch(0.375 0.063 4.525);
  --chart-5: oklch(0.654 0.192 9.109);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.006 270.981);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.261 0.013 270.863);
  --muted-foreground: oklch(0.708 0.024 271.061);
  --popover: oklch(0.113 0.004 269.758);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.129 0.005 269.758);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.213 0.004 271.233);
  --input: oklch(0.245 0.005 271.216);
  --primary: oklch(0.653 0.185 8.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.348 0.058 4.424);
  --secondary-foreground: oklch(0.87 0.027 0.719);
  --accent: oklch(0.307 0.021 270.631);
  --accent-foreground: oklch(0.834 0.016 271.216);
  --destructive: oklch(0.617 0.219 30.451);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.185 8.687);
  --chart-1: oklch(0.653 0.185 8.687);
  --chart-2: oklch(0.348 0.058 4.424);
  --chart-3: oklch(0.307 0.021 270.631);
  --chart-4: oklch(0.375 0.063 4.525);
  --chart-5: oklch(0.654 0.192 9.109);
}