Station for shadcn/ui

Station is a shadcn/ui theme built around a muted green primary color (#5d6444) with muted indigo accents (#4b4464). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#5d6444) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#111505black
#fafbf9snow
Card
#fdfefbwhite
#000000black
Card foreground
#111505black
#fafbf9snow
Popover
#fdfefbwhite
#000000black
Popover foreground
#111505black
#fafbf9snow
Primary
#5d6444darkolivegreen
#5d6444darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4b4464darkslategray
#4b4464darkslategray
Secondary foreground
#ebeaf1lavender
#ebeaf1lavender
Muted
#d3cfe3lightgrey
#211c30darkslategray
Muted foreground
#525058darkslategray
#a8a7afdarkgray
Accent
#4b4464darkslategray
#4b4464darkslategray
Accent foreground
#ebeaf1lavender
#ebeaf1lavender
Destructive
#d31b0dfirebrick
#f02719orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5d6444darkolivegreen
#5d6444darkolivegreen

Contrast

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

Light mode
Text on background18.29:1AAA
Text on card18.29:1AAA
Primary button6.21:1AA
Secondary button7.58:1AAA
Muted text5.20:1AA
Accent7.58:1AAA
Destructive5.34:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.21:1AA
Secondary button7.58:1AAA
Muted text6.90:1AA
Accent7.58:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 116.396);
  --foreground: oklch(0.186 0.032 119.075);
  --muted: oklch(0.863 0.028 295.746);
  --muted-foreground: oklch(0.436 0.014 295.749);
  --popover: oklch(0.995 0.004 116.396);
  --popover-foreground: oklch(0.186 0.032 119.075);
  --card: oklch(0.995 0.004 116.396);
  --card-foreground: oklch(0.186 0.032 119.075);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.489 0.049 118.192);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.408 0.053 293.838);
  --secondary-foreground: oklch(0.939 0.009 296.152);
  --accent: oklch(0.408 0.053 293.838);
  --accent-foreground: oklch(0.939 0.009 296.152);
  --destructive: oklch(0.553 0.215 29.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.489 0.049 118.192);
  --chart-1: oklch(0.489 0.049 118.192);
  --chart-2: oklch(0.408 0.053 293.838);
  --chart-3: oklch(0.408 0.053 293.838);
  --chart-4: oklch(0.433 0.057 293.802);
  --chart-5: oklch(0.496 0.056 118.448);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.003 116.378);
  --muted: oklch(0.243 0.038 293.332);
  --muted-foreground: oklch(0.731 0.012 296.028);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.003 116.378);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.003 116.378);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.489 0.049 118.192);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.408 0.053 293.838);
  --secondary-foreground: oklch(0.939 0.009 296.152);
  --accent: oklch(0.408 0.053 293.838);
  --accent-foreground: oklch(0.939 0.009 296.152);
  --destructive: oklch(0.614 0.233 29.656);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.489 0.049 118.192);
  --chart-1: oklch(0.489 0.049 118.192);
  --chart-2: oklch(0.408 0.053 293.838);
  --chart-3: oklch(0.408 0.053 293.838);
  --chart-4: oklch(0.433 0.057 293.802);
  --chart-5: oklch(0.496 0.056 118.448);
}