Trek for shadcn/ui

Trek is a shadcn/ui theme built around a deep pink primary color (#1c080e) with deep blue accents (#080e1c). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#1c080e) on a pink-tinted background (#0a0507).

Color palette

TokenLightDark
Background
#fdf7f9snow
#0a0507black
Foreground
#080204black
#f9f5f7whitesmoke
Card
#fcf3f6lavenderblush
#0e0609black
Card foreground
#040102black
#fbf9f9snow
Popover
#fdf7f9snow
#0a0507black
Popover foreground
#080204black
#f9f5f7whitesmoke
Primary
#1c080eblack
#1c080eblack
Primary foreground
#d97d9apalevioletred
#d97d9apalevioletred
Secondary
#0e1c08black
#0e1c08black
Secondary foreground
#60ba36olivedrab
#60ba36olivedrab
Muted
#e2efdcgainsboro
#162310black
Muted foreground
#565856dimgray
#a8a9a7darkgray
Accent
#080e1cblack
#080e1cblack
Accent foreground
#7d9ad9cornflowerblue
#7d9ad9cornflowerblue
Destructive
#cb3a01firebrick
#e44201orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c080eblack
#1c080eblack

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.07:1AAA
Primary button6.74:1AA
Secondary button7.23:1AAA
Muted text6.01:1AA
Accent6.87:1AA
Destructive5.06:1AA
Dark mode
Text on background18.73:1AAA
Text on card19.05:1AAA
Primary button6.74:1AA
Secondary button7.23:1AAA
Muted text6.94:1AA
Accent6.87:1AA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 355.815);
  --foreground: oklch(0.105 0.019 355.291);
  --muted: oklch(0.937 0.029 135.561);
  --muted-foreground: oklch(0.457 0.003 135.457);
  --popover: oklch(0.981 0.007 355.815);
  --popover-foreground: oklch(0.105 0.019 355.291);
  --card: oklch(0.972 0.01 355.917);
  --card-foreground: oklch(0.084 0.015 355.291);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.17 0.036 1.327);
  --primary-foreground: oklch(0.697 0.119 0.336);
  --secondary: oklch(0.206 0.041 136.521);
  --secondary-foreground: oklch(0.706 0.187 137.605);
  --accent: oklch(0.166 0.03 264.158);
  --accent-foreground: oklch(0.689 0.099 264.846);
  --destructive: oklch(0.561 0.189 36.593);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.17 0.036 1.327);
  --chart-1: oklch(0.17 0.036 1.327);
  --chart-2: oklch(0.206 0.041 136.521);
  --chart-3: oklch(0.166 0.03 264.158);
  --chart-4: oklch(0.25 0.055 136.857);
  --chart-5: oklch(0.169 0.038 1.569);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 355.432);
  --foreground: oklch(0.975 0.005 355.751);
  --muted: oklch(0.238 0.039 136.316);
  --muted-foreground: oklch(0.734 0.003 135.444);
  --popover: oklch(0.125 0.014 355.432);
  --popover-foreground: oklch(0.975 0.005 355.751);
  --card: oklch(0.138 0.016 356.584);
  --card-foreground: oklch(0.983 0.003 355.705);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.17 0.036 1.327);
  --primary-foreground: oklch(0.697 0.119 0.336);
  --secondary: oklch(0.206 0.041 136.521);
  --secondary-foreground: oklch(0.706 0.187 137.605);
  --accent: oklch(0.166 0.03 264.158);
  --accent-foreground: oklch(0.689 0.099 264.846);
  --destructive: oklch(0.612 0.207 36.34);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.17 0.036 1.327);
  --chart-1: oklch(0.17 0.036 1.327);
  --chart-2: oklch(0.206 0.041 136.521);
  --chart-3: oklch(0.166 0.03 264.158);
  --chart-4: oklch(0.25 0.055 136.857);
  --chart-5: oklch(0.169 0.038 1.569);
}