Aurora X for shadcn/ui

Aurora X is a shadcn/ui theme built around a vivid light blue primary color (#85a3ff) with deep blue accents (#1f2842). The light mode uses a blue-tinted background (#07080e). Dark mode keeps the vivid light blue primary (#85a3ff) on a blue-tinted background (#07080e).

Color palette

TokenLightDark
Background
#07080eblack
#07080eblack
Foreground
#bababasilver
#bababasilver
Card
#030407black
#030407black
Card foreground
#c7c7c7silver
#c7c7c7silver
Popover
#020203black
#020203black
Popover foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Primary
#85a3ffcornflowerblue
#85a3ffcornflowerblue
Primary foreground
#001452midnightblue
#001452midnightblue
Secondary
#2d3653darkslategray
#2d3653darkslategray
Secondary foreground
#cdd3e4lightgrey
#cdd3e4lightgrey
Muted
#22242bdarkslategray
#22242bdarkslategray
Muted foreground
#9ba0b0darkgray
#9ba0b0darkgray
Accent
#1f2842darkslategray
#1f2842darkslategray
Accent foreground
#b6c0ddlightsteelblue
#b6c0ddlightsteelblue
Destructive
#f02000red
#f02000red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#11141dblack
#11141dblack
Input
#171b27black
#171b27black
Ring
#85a3ffcornflowerblue
#85a3ffcornflowerblue

Contrast

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

Light mode
Text on background10.29:1AAA
Text on card12.11:1AAA
Primary button7.11:1AAA
Secondary button7.94:1AAA
Muted text5.94:1AA
Accent8.05:1AAA
Destructive4.28:1AA Large
Dark mode
Text on background10.29:1AAA
Text on card12.11:1AAA
Primary button7.11:1AAA
Secondary button7.94:1AAA
Muted text5.94:1AA
Accent8.05:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.137 0.013 268.039);
  --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.086 0.008 267.077);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.108 0.01 267.077);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.192 0.019 270.251);
  --input: oklch(0.222 0.024 270.093);
  --primary: oklch(0.732 0.138 268.865);
  --primary-foreground: oklch(0.231 0.115 262.808);
  --secondary: oklch(0.339 0.052 269.405);
  --secondary-foreground: oklch(0.868 0.025 271.126);
  --accent: oklch(0.281 0.05 269.038);
  --accent-foreground: oklch(0.809 0.042 270.851);
  --destructive: oklch(0.608 0.238 30.912);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.138 268.865);
  --chart-1: oklch(0.732 0.138 268.865);
  --chart-2: oklch(0.339 0.052 269.405);
  --chart-3: oklch(0.281 0.05 269.038);
  --chart-4: oklch(0.364 0.058 269.353);
  --chart-5: oklch(0.73 0.142 268.764);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.013 268.039);
  --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.086 0.008 267.077);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.108 0.01 267.077);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.192 0.019 270.251);
  --input: oklch(0.222 0.024 270.093);
  --primary: oklch(0.732 0.138 268.865);
  --primary-foreground: oklch(0.231 0.115 262.808);
  --secondary: oklch(0.339 0.052 269.405);
  --secondary-foreground: oklch(0.868 0.025 271.126);
  --accent: oklch(0.281 0.05 269.038);
  --accent-foreground: oklch(0.809 0.042 270.851);
  --destructive: oklch(0.608 0.238 30.912);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.138 268.865);
  --chart-1: oklch(0.732 0.138 268.865);
  --chart-2: oklch(0.339 0.052 269.405);
  --chart-3: oklch(0.281 0.05 269.038);
  --chart-4: oklch(0.364 0.058 269.353);
  --chart-5: oklch(0.73 0.142 268.764);
}