Travel for shadcn/ui

Travel is a shadcn/ui theme built around a light pink primary color (#dfafbe) with muted light pink accents (#d7c6cc). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the light pink primary (#dfafbe) on a pink-tinted background (#100408).

Color palette

TokenLightDark
Background
#fcf8f9snow
#100408black
Foreground
#090104black
#fbf9fasnow
Card
#fcf8f9snow
#100408black
Card foreground
#090104black
#fbf9fasnow
Popover
#fcf8f9snow
#100408black
Popover foreground
#090104black
#fbf9fasnow
Primary
#dfafbethistle
#dfafbethistle
Primary foreground
#421a27darkslategray
#421a27darkslategray
Secondary
#e2dadcgainsboro
#1f191bblack
Secondary foreground
#4d3d42darkslategray
#bdadb2darkgray
Muted
#f3e7eblinen
#180c10black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#d7c6ccthistle
#342328darkslategray
Accent foreground
#3f2c32darkslategray
#cfb9c0silver
Destructive
#ca1d02firebrick
#fd5035tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dfafbethistle
#dfafbethistle

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button7.80:1AAA
Secondary button7.41:1AAA
Muted text6.30:1AA
Accent7.94:1AAA
Destructive5.70:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button7.80:1AAA
Secondary button8.06:1AAA
Muted text8.32:1AAA
Accent8.01:1AAA
Destructive6.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 355.725);
  --foreground: oklch(0.102 0.026 355.154);
  --muted: oklch(0.939 0.014 356.033);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.983 0.004 355.725);
  --popover-foreground: oklch(0.102 0.026 355.154);
  --card: oklch(0.983 0.004 355.725);
  --card-foreground: oklch(0.102 0.026 355.154);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.801 0.059 357.669);
  --primary-foreground: oklch(0.281 0.063 2.007);
  --secondary: oklch(0.895 0.009 355.915);
  --secondary-foreground: oklch(0.378 0.025 357.417);
  --accent: oklch(0.843 0.02 356.282);
  --accent-foreground: oklch(0.318 0.028 358.07);
  --destructive: oklch(0.536 0.207 31.118);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.801 0.059 357.669);
  --chart-1: oklch(0.801 0.059 357.669);
  --chart-2: oklch(0.895 0.009 355.915);
  --chart-3: oklch(0.843 0.02 356.282);
  --chart-4: oklch(0.919 0.007 355.839);
  --chart-5: oklch(0.8 0.064 357.817);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.025 357.009);
  --foreground: oklch(0.984 0.002 355.66);
  --muted: oklch(0.173 0.021 359.029);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.134 0.025 357.009);
  --popover-foreground: oklch(0.984 0.002 355.66);
  --card: oklch(0.134 0.025 357.009);
  --card-foreground: oklch(0.984 0.002 355.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.801 0.059 357.669);
  --primary-foreground: oklch(0.281 0.063 2.007);
  --secondary: oklch(0.221 0.01 356.933);
  --secondary-foreground: oklch(0.763 0.02 356.36);
  --accent: oklch(0.279 0.027 358.237);
  --accent-foreground: oklch(0.807 0.027 356.563);
  --destructive: oklch(0.67 0.214 31.59);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.801 0.059 357.669);
  --chart-1: oklch(0.801 0.059 357.669);
  --chart-2: oklch(0.221 0.01 356.933);
  --chart-3: oklch(0.279 0.027 358.237);
  --chart-4: oklch(0.253 0.013 357.036);
  --chart-5: oklch(0.8 0.064 357.817);
}