Sorry Galactic Highway for shadcn/ui

Sorry Galactic Highway is a shadcn/ui theme built around a vivid indigo primary color (#2a1abc) with vivid violet accents (#7b1abc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#2a1abc) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#ffffffwhite
#040307black
Foreground
#070514black
#ffffffwhite
Card
#fcfcfcsnow
#05050bblack
Card foreground
#060410black
#ffffffwhite
Popover
#fcfcfcsnow
#05050bblack
Popover foreground
#060410black
#ffffffwhite
Primary
#2a1abcmediumblue
#2a1abcmediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1a5bbcroyalblue
#1a5bbcroyalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d8e1eegainsboro
#111a27black
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#7b1abcdarkorchid
#7b1abcdarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#95320fsaddlebrown
#eb6433tomato
Destructive foreground
#fbe3damistyrose
#000000black
Border
#ebeaf0lavender
#16161dblack
Input
#ebeaf0lavender
#16161dblack
Ring
#2a1abcmediumblue
#2a1abcmediumblue

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card19.89:1AAA
Primary button10.63:1AAA
Secondary button6.43:1AA
Muted text4.90:1AA
Accent7.71:1AAA
Destructive6.24:1AA
Dark mode
Text on background20.56:1AAA
Text on card20.35:1AAA
Primary button10.63:1AAA
Secondary button6.43:1AA
Muted text6.77:1AA
Accent7.71:1AAA
Destructive6.39:1AA

CSS variables

Paste this into your globals.css to use Sorry Galactic Highway in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.033 286.656);
  --muted: oklch(0.906 0.021 258.358);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.121 0.029 287.497);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.029 287.497);
  --border: oklch(0.94 0.007 290.87);
  --input: oklch(0.94 0.007 290.87);
  --primary: oklch(0.391 0.23 272.317);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.489 0.167 259.158);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.226 305.705);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.458 0.139 38.069);
  --destructive-foreground: oklch(0.933 0.03 41.092);
  --ring: oklch(0.391 0.23 272.317);
  --chart-1: oklch(0.391 0.23 272.317);
  --chart-2: oklch(0.489 0.167 259.158);
  --chart-3: oklch(0.472 0.226 305.705);
  --chart-4: oklch(0.514 0.177 259.189);
  --chart-5: oklch(0.391 0.236 271.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.014 289.411);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.03 258.295);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.118 0.016 289.401);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.016 289.401);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.203 0.015 289.56);
  --input: oklch(0.203 0.015 289.56);
  --primary: oklch(0.391 0.23 272.317);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.489 0.167 259.158);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.226 305.705);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.665 0.179 39.321);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.391 0.23 272.317);
  --chart-1: oklch(0.391 0.23 272.317);
  --chart-2: oklch(0.489 0.167 259.158);
  --chart-3: oklch(0.472 0.226 305.705);
  --chart-4: oklch(0.514 0.177 259.189);
  --chart-5: oklch(0.391 0.236 271.401);
}