Voyage for shadcn/ui

Voyage is a shadcn/ui theme built around an indigo primary color (#756ede) with violet accents (#ad6ede). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#756ede) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#040311black
#fcfcfdwhite
Card
#fcfcfcsnow
#030307black
Card foreground
#03020dblack
#ffffffwhite
Popover
#ffffffwhite
#020104black
Popover foreground
#040311black
#fcfcfdwhite
Primary
#756edemediumslateblue
#756edemediumslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6e9edecornflowerblue
#6e9edecornflowerblue
Secondary foreground
#050c15black
#050c15black
Muted
#eff2f5whitesmoke
#0a0c10black
Muted foreground
#4e5156darkslategray
#a9adb1darkgray
Accent
#ad6edemediumpurple
#ad6edemediumpurple
Accent foreground
#000000black
#000000black
Destructive
#8f1c05darkred
#f73d18orangered
Destructive foreground
#fdd2c9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#756edemediumslateblue
#756edemediumslateblue

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card20.17:1AAA
Primary button4.18:1AA Large
Secondary button7.12:1AAA
Muted text7.08:1AAA
Accent6.04:1AA
Destructive6.53:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.61:1AAA
Primary button4.18:1AA Large
Secondary button7.12:1AAA
Muted text8.65:1AAA
Accent6.04:1AA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.113 0.037 283.606);
  --muted: oklch(0.96 0.005 254.985);
  --muted-foreground: oklch(0.434 0.009 255.056);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.113 0.037 283.606);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.032 284.282);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.599 0.166 283.181);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.692 0.108 255.51);
  --secondary-foreground: oklch(0.15 0.023 252.168);
  --accent: oklch(0.651 0.171 308.535);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.423 0.153 32.593);
  --destructive-foreground: oklch(0.897 0.051 31.261);
  --ring: oklch(0.599 0.166 283.181);
  --chart-1: oklch(0.599 0.166 283.181);
  --chart-2: oklch(0.692 0.108 255.51);
  --chart-3: oklch(0.651 0.171 308.535);
  --chart-4: oklch(0.718 0.098 255.432);
  --chart-5: oklch(0.594 0.173 282.752);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.014 286.905);
  --foreground: oklch(0.991 0.002 289.448);
  --muted: oklch(0.155 0.009 255.179);
  --muted-foreground: oklch(0.746 0.008 255.009);
  --popover: oklch(0.079 0.014 286.905);
  --popover-foreground: oklch(0.991 0.002 289.448);
  --card: oklch(0.099 0.017 286.905);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.599 0.166 283.181);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.692 0.108 255.51);
  --secondary-foreground: oklch(0.15 0.023 252.168);
  --accent: oklch(0.651 0.171 308.535);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.226 32.689);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.599 0.166 283.181);
  --chart-1: oklch(0.599 0.166 283.181);
  --chart-2: oklch(0.692 0.108 255.51);
  --chart-3: oklch(0.651 0.171 308.535);
  --chart-4: oklch(0.718 0.098 255.432);
  --chart-5: oklch(0.594 0.173 282.752);
}