Transport for shadcn/ui

Transport is a shadcn/ui theme built around a deep violet primary color (#2d1b4b) with deep green accents (#394b1b). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#2d1b4b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#000000black
Foreground
#06020dblack
#fcfcfdwhite
Card
#f9f7fdghostwhite
#000000black
Card foreground
#06020dblack
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#000000black
Popover foreground
#06020dblack
#fcfcfdwhite
Primary
#2d1b4bmidnightblue
#2d1b4bmidnightblue
Primary foreground
#c6b4e4thistle
#c6b4e4thistle
Secondary
#394b1bdarkolivegreen
#394b1bdarkolivegreen
Secondary foreground
#d2e4b4palegoldenrod
#d2e4b4palegoldenrod
Muted
#dfe3d8gainsboro
#22271cblack
Muted foreground
#62645edimgray
#9fa19bdarkgray
Accent
#394b1bdarkolivegreen
#394b1bdarkolivegreen
Accent foreground
#d2e4b4palegoldenrod
#d2e4b4palegoldenrod
Destructive
#6f0e02maroon
#f62004red
Destructive foreground
#feafa5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d1b4bmidnightblue
#2d1b4bmidnightblue

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button8.07:1AAA
Secondary button7.02:1AAA
Muted text4.61:1AA
Accent7.02:1AAA
Destructive6.85:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button8.07:1AAA
Secondary button7.02:1AAA
Muted text5.85:1AA
Accent7.02:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 303.531);
  --foreground: oklch(0.111 0.031 304.447);
  --muted: oklch(0.911 0.016 123.897);
  --muted-foreground: oklch(0.499 0.009 123.922);
  --popover: oklch(0.98 0.007 303.531);
  --popover-foreground: oklch(0.111 0.031 304.447);
  --card: oklch(0.98 0.007 303.531);
  --card-foreground: oklch(0.111 0.031 304.447);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.273 0.087 298.068);
  --primary-foreground: oklch(0.8 0.071 302.319);
  --secondary: oklch(0.387 0.077 127.275);
  --secondary-foreground: oklch(0.894 0.068 124.801);
  --accent: oklch(0.387 0.077 127.275);
  --accent-foreground: oklch(0.894 0.068 124.801);
  --destructive: oklch(0.348 0.131 31.584);
  --destructive-foreground: oklch(0.827 0.094 27.608);
  --ring: oklch(0.273 0.087 298.068);
  --chart-1: oklch(0.273 0.087 298.068);
  --chart-2: oklch(0.387 0.077 127.275);
  --chart-3: oklch(0.387 0.077 127.275);
  --chart-4: oklch(0.425 0.086 127.374);
  --chart-5: oklch(0.271 0.092 297.584);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 303.615);
  --muted: oklch(0.264 0.021 124.871);
  --muted-foreground: oklch(0.705 0.009 123.822);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 303.615);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 303.615);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.273 0.087 298.068);
  --primary-foreground: oklch(0.8 0.071 302.319);
  --secondary: oklch(0.387 0.077 127.275);
  --secondary-foreground: oklch(0.894 0.068 124.801);
  --accent: oklch(0.387 0.077 127.275);
  --accent-foreground: oklch(0.894 0.068 124.801);
  --destructive: oklch(0.62 0.243 30.595);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.273 0.087 298.068);
  --chart-1: oklch(0.273 0.087 298.068);
  --chart-2: oklch(0.387 0.077 127.275);
  --chart-3: oklch(0.387 0.077 127.275);
  --chart-4: oklch(0.425 0.086 127.374);
  --chart-5: oklch(0.271 0.092 297.584);
}