Station for shadcn/ui

Station is a shadcn/ui theme built around a muted pink primary color (#9d808b) with muted red accents (#9d8480). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#9d808b) on a pink-tinted background (#0f0509).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0509black
Foreground
#000000black
#fbf9fasnow
Card
#fcfcfcsnow
#13060bblack
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#0f0509black
Popover foreground
#000000black
#fbf9fasnow
Primary
#9d808bgray
#9d808bgray
Primary foreground
#000000black
#000000black
Secondary
#9d809arosybrown
#9d809arosybrown
Secondary foreground
#000000black
#000000black
Muted
#f7edf6whitesmoke
#120810black
Muted foreground
#755772dimgray
#a88aa5rosybrown
Accent
#9d8480gray
#9d8480gray
Accent foreground
#000000black
#000000black
Destructive
#920b01darkred
#fd2617orangered
Destructive foreground
#fecbc7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d808bgray
#9d808bgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.91:1AA
Secondary button6.00:1AA
Muted text5.48:1AA
Accent6.03:1AA
Destructive6.39:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.33:1AAA
Primary button5.91:1AA
Secondary button6.00:1AA
Muted text6.41:1AA
Accent6.03:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.015 329.318);
  --muted-foreground: oklch(0.497 0.057 330.392);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --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.631 0.039 353.284);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.636 0.051 330.031);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.635 0.032 26.859);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.42 0.166 30.135);
  --destructive-foreground: oklch(0.886 0.059 23.072);
  --ring: oklch(0.631 0.039 353.284);
  --chart-1: oklch(0.631 0.039 353.284);
  --chart-2: oklch(0.636 0.051 330.031);
  --chart-3: oklch(0.635 0.032 26.859);
  --chart-4: oklch(0.662 0.047 329.933);
  --chart-5: oklch(0.628 0.048 353.68);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.023 352.962);
  --foreground: oklch(0.983 0.003 351.682);
  --muted: oklch(0.153 0.024 330.796);
  --muted-foreground: oklch(0.669 0.053 330.018);
  --popover: oklch(0.136 0.023 352.962);
  --popover-foreground: oklch(0.983 0.003 351.682);
  --card: oklch(0.148 0.026 354.913);
  --card-foreground: oklch(0.992 0.002 351.636);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.631 0.039 353.284);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.636 0.051 330.031);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.635 0.032 26.859);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.635 0.244 29.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.039 353.284);
  --chart-1: oklch(0.631 0.039 353.284);
  --chart-2: oklch(0.636 0.051 330.031);
  --chart-3: oklch(0.635 0.032 26.859);
  --chart-4: oklch(0.662 0.047 329.933);
  --chart-5: oklch(0.628 0.048 353.68);
}