Station for shadcn/ui

Station is a shadcn/ui theme built around a vivid light purple primary color (#fba2e2) with vivid light green accents (#a2fbbb). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid light purple primary (#fba2e2) on a neutral background (#040203).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#040203black
Foreground
#12030dblack
#ffffffwhite
Card
#fdfbfdsnow
#040203black
Card foreground
#12030dblack
#ffffffwhite
Popover
#fdfbfdsnow
#040203black
Popover foreground
#12030dblack
#ffffffwhite
Primary
#fba2e2plum
#fba2e2plum
Primary foreground
#66054bpurple
#66054bpurple
Secondary
#a2fbbbpalegreen
#a2fbbbpalegreen
Secondary foreground
#000502black
#000502black
Muted
#d5ddd7gainsboro
#222a24darkslategray
Muted foreground
#3b453edarkslategray
#bac4bdsilver
Accent
#a2fbbbpalegreen
#a2fbbbpalegreen
Accent foreground
#000502black
#000502black
Destructive
#bc2e15firebrick
#e74427chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fba2e2plum
#fba2e2plum

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button6.74:1AA
Secondary button16.64:1AAA
Muted text7.18:1AAA
Accent16.64:1AAA
Destructive5.92:1AA
Dark mode
Text on background20.73:1AAA
Text on card20.73:1AAA
Primary button6.74:1AA
Secondary button16.64:1AAA
Muted text8.18:1AAA
Accent16.64:1AAA
Destructive3.99: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.991 0.003 335.244);
  --foreground: oklch(0.134 0.039 337.977);
  --muted: oklch(0.889 0.012 154.938);
  --muted-foreground: oklch(0.378 0.018 154.279);
  --popover: oklch(0.991 0.003 335.244);
  --popover-foreground: oklch(0.134 0.039 337.977);
  --card: oklch(0.991 0.003 335.244);
  --card-foreground: oklch(0.134 0.039 337.977);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.82 0.13 337.869);
  --primary-foreground: oklch(0.345 0.142 344.019);
  --secondary: oklch(0.915 0.122 152.409);
  --secondary-foreground: oklch(0.101 0.023 154.348);
  --accent: oklch(0.915 0.122 152.409);
  --accent-foreground: oklch(0.101 0.023 154.348);
  --destructive: oklch(0.524 0.182 32.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.13 337.869);
  --chart-1: oklch(0.82 0.13 337.869);
  --chart-2: oklch(0.915 0.122 152.409);
  --chart-3: oklch(0.915 0.122 152.409);
  --chart-4: oklch(0.926 0.103 152.924);
  --chart-5: oklch(0.82 0.134 337.953);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.012 335.597);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.016 154.07);
  --muted-foreground: oklch(0.811 0.015 154.846);
  --popover: oklch(0.087 0.012 335.597);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.087 0.012 335.597);
  --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.82 0.13 337.869);
  --primary-foreground: oklch(0.345 0.142 344.019);
  --secondary: oklch(0.915 0.122 152.409);
  --secondary-foreground: oklch(0.101 0.023 154.348);
  --accent: oklch(0.915 0.122 152.409);
  --accent-foreground: oklch(0.101 0.023 154.348);
  --destructive: oklch(0.62 0.204 32.373);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.13 337.869);
  --chart-1: oklch(0.82 0.13 337.869);
  --chart-2: oklch(0.915 0.122 152.409);
  --chart-3: oklch(0.915 0.122 152.409);
  --chart-4: oklch(0.926 0.103 152.924);
  --chart-5: oklch(0.82 0.134 337.953);
}