Trail for shadcn/ui

Trail is a shadcn/ui theme built around a light blue primary color (#b7d0eb) with muted light blue accents (#d2d6da). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#b7d0eb) on a neutral background (#030508).

Color palette

TokenLightDark
Background
#ffffffwhite
#030508black
Foreground
#010204black
#ffffffwhite
Card
#fcfcfcsnow
#04080bblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030508black
Popover foreground
#010204black
#ffffffwhite
Primary
#b7d0eblightblue
#b7d0eblightblue
Primary foreground
#193758darkslategray
#193758darkslategray
Secondary
#d2d6dalightgrey
#22262adarkslategray
Secondary foreground
#373d43darkslategray
#b9bfc6silver
Muted
#dbdee1gainsboro
#1e2124black
Muted foreground
#5f6367dimgray
#989ba0darkgray
Accent
#d2d6dalightgrey
#22262adarkslategray
Accent foreground
#373d43darkslategray
#b9bfc6silver
Destructive
#b02a0cfirebrick
#f15937tomato
Destructive foreground
#fef3f1seashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7d0eblightblue
#b7d0eblightblue

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button7.67:1AAA
Secondary button7.52:1AAA
Muted text4.47:1AA Large
Accent7.52:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.41:1AAA
Text on card20.14:1AAA
Primary button7.67:1AAA
Secondary button8.19:1AAA
Muted text5.79:1AA
Accent8.19:1AAA
Destructive6.22:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.088 0.012 239.709);
  --muted: oklch(0.899 0.005 249.705);
  --muted-foreground: oklch(0.499 0.008 249.8);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.088 0.012 239.709);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.848 0.046 250.121);
  --primary-foreground: oklch(0.331 0.068 251.943);
  --secondary: oklch(0.874 0.007 249.728);
  --secondary-foreground: oklch(0.357 0.014 249.987);
  --accent: oklch(0.874 0.007 249.728);
  --accent-foreground: oklch(0.357 0.014 249.987);
  --destructive: oklch(0.499 0.175 33.271);
  --destructive-foreground: oklch(0.972 0.012 32.664);
  --ring: oklch(0.848 0.046 250.121);
  --chart-1: oklch(0.848 0.046 250.121);
  --chart-2: oklch(0.874 0.007 249.728);
  --chart-3: oklch(0.874 0.007 249.728);
  --chart-4: oklch(0.898 0.006 249.711);
  --chart-5: oklch(0.848 0.048 250.145);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.011 242.512);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.007 249.915);
  --muted-foreground: oklch(0.689 0.007 249.751);
  --popover: oklch(0.112 0.011 242.512);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.013 242.876);
  --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.848 0.046 250.121);
  --primary-foreground: oklch(0.331 0.068 251.943);
  --secondary: oklch(0.267 0.009 249.954);
  --secondary-foreground: oklch(0.802 0.012 249.783);
  --accent: oklch(0.267 0.009 249.954);
  --accent-foreground: oklch(0.802 0.012 249.783);
  --destructive: oklch(0.661 0.194 34.124);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.848 0.046 250.121);
  --chart-1: oklch(0.848 0.046 250.121);
  --chart-2: oklch(0.267 0.009 249.954);
  --chart-3: oklch(0.267 0.009 249.954);
  --chart-4: oklch(0.298 0.011 249.968);
  --chart-5: oklch(0.848 0.048 250.145);
}