Space Explorer Sole for shadcn/ui

Space Explorer Sole is a shadcn/ui theme built around a vivid blue primary color (#034096) with near-white accents (#f1f1f1). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid blue primary (#034096) on a neutral background (#020508).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#020508black
Foreground
#000000black
#f6f7f9whitesmoke
Card
#f8fafcghostwhite
#020508black
Card foreground
#000000black
#f6f7f9whitesmoke
Popover
#f8fafcghostwhite
#020508black
Popover foreground
#000000black
#f6f7f9whitesmoke
Primary
#034096midnightblue
#034096midnightblue
Primary foreground
#cde1felavender
#cde1felavender
Secondary
#d3d8dfgainsboro
#151719black
Secondary foreground
#363e4adarkslategray
#aaafb6darkgray
Muted
#f2f2f3whitesmoke
#0c0d0dblack
Muted foreground
#3d3f42darkslategray
#bdbfc2silver
Accent
#f1f1f1whitesmoke
#242931darkslategray
Accent foreground
#232c38darkslategray
#bdc5d1silver
Destructive
#e60000red
#f50000red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e4e5e7gainsboro
#1f2123black
Input
#e4e5e7gainsboro
#1f2123black
Ring
#034096midnightblue
#034096midnightblue

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button7.23:1AAA
Secondary button7.51:1AAA
Muted text9.44:1AAA
Accent12.51:1AAA
Destructive4.82:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button7.23:1AAA
Secondary button8.16:1AAA
Muted text10.57:1AAA
Accent8.38:1AAA
Destructive4.30:1AA Large

CSS variables

Paste this into your globals.css to use Space Explorer Sole in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 256.669);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.961 0.001 256.657);
  --muted-foreground: oklch(0.368 0.006 256.711);
  --popover: oklch(0.983 0.004 256.669);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 256.669);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.922 0.003 256.666);
  --input: oklch(0.922 0.003 256.666);
  --primary: oklch(0.396 0.152 259.281);
  --primary-foreground: oklch(0.905 0.045 256.788);
  --secondary: oklch(0.88 0.011 256.701);
  --secondary-foreground: oklch(0.361 0.024 256.81);
  --accent: oklch(0.959 0 187.595);
  --accent-foreground: oklch(0.291 0.026 256.833);
  --destructive: oklch(0.58 0.238 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.396 0.152 259.281);
  --chart-1: oklch(0.396 0.152 259.281);
  --chart-2: oklch(0.88 0.011 256.701);
  --chart-3: oklch(0.959 0 187.595);
  --chart-4: oklch(0.904 0.009 256.691);
  --chart-5: oklch(0.397 0.156 259.399);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.013 248.152);
  --foreground: oklch(0.976 0.003 256.665);
  --muted: oklch(0.157 0.002 256.696);
  --muted-foreground: oklch(0.803 0.005 256.676);
  --popover: oklch(0.109 0.013 248.152);
  --popover-foreground: oklch(0.976 0.003 256.665);
  --card: oklch(0.109 0.013 248.152);
  --card-foreground: oklch(0.976 0.003 256.665);
  --border: oklch(0.246 0.006 256.734);
  --input: oklch(0.246 0.006 256.734);
  --primary: oklch(0.396 0.152 259.281);
  --primary-foreground: oklch(0.905 0.045 256.788);
  --secondary: oklch(0.202 0.005 256.735);
  --secondary-foreground: oklch(0.752 0.012 256.711);
  --accent: oklch(0.28 0.016 256.801);
  --accent-foreground: oklch(0.821 0.019 256.732);
  --destructive: oklch(0.609 0.25 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.396 0.152 259.281);
  --chart-1: oklch(0.396 0.152 259.281);
  --chart-2: oklch(0.202 0.005 256.735);
  --chart-3: oklch(0.28 0.016 256.801);
  --chart-4: oklch(0.235 0.006 256.742);
  --chart-5: oklch(0.397 0.156 259.399);
}