Freight for shadcn/ui

Freight is a shadcn/ui theme built around a teal primary color (#a2ddd0) with muted light teal accents (#c5d8d4). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#a2ddd0) on a teal-tinted background (#04100d).

Color palette

TokenLightDark
Background
#fbfefdwhite
#04100dblack
Foreground
#010404black
#f5f9f8whitesmoke
Card
#fbfefdwhite
#04100dblack
Card foreground
#010404black
#f5f9f8whitesmoke
Popover
#fbfefdwhite
#04100dblack
Popover foreground
#010404black
#f5f9f8whitesmoke
Primary
#a2ddd0lightblue
#a2ddd0lightblue
Primary foreground
#153830darkslategray
#153830darkslategray
Secondary
#e6ebe9lavender
#171c1bblack
Secondary foreground
#465854darkslategray
#abbab7darkgray
Muted
#d8eee9gainsboro
#112722black
Muted foreground
#546d68dimgray
#92aba5darkgray
Accent
#c5d8d4lightgrey
#293d38darkslategray
Accent foreground
#2b403cdarkslategray
#c2d6d1lightgrey
Destructive
#9f2509firebrick
#f35430tomato
Destructive foreground
#fde3ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2ddd0lightblue
#a2ddd0lightblue

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button8.37:1AAA
Secondary button6.23:1AA
Muted text4.59:1AA
Accent7.45:1AAA
Destructive6.27:1AA
Dark mode
Text on background18.22:1AAA
Text on card18.22:1AAA
Primary button8.37:1AAA
Secondary button8.56:1AAA
Muted text6.43:1AA
Accent7.62:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 181.984);
  --foreground: oklch(0.101 0.014 181.969);
  --muted: oklch(0.931 0.023 181.358);
  --muted-foreground: oklch(0.515 0.031 180.283);
  --popover: oklch(0.994 0.003 181.984);
  --popover-foreground: oklch(0.101 0.014 181.969);
  --card: oklch(0.994 0.003 181.984);
  --card-foreground: oklch(0.101 0.014 181.969);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.853 0.063 179.84);
  --primary-foreground: oklch(0.312 0.043 177.017);
  --secondary: oklch(0.935 0.006 181.9);
  --secondary-foreground: oklch(0.444 0.022 180.591);
  --accent: oklch(0.867 0.022 181.362);
  --accent-foreground: oklch(0.353 0.028 179.606);
  --destructive: oklch(0.462 0.162 33.231);
  --destructive-foreground: oklch(0.936 0.03 32.699);
  --ring: oklch(0.853 0.063 179.84);
  --chart-1: oklch(0.853 0.063 179.84);
  --chart-2: oklch(0.935 0.006 181.9);
  --chart-3: oklch(0.867 0.022 181.362);
  --chart-4: oklch(0.957 0.004 181.959);
  --chart-5: oklch(0.856 0.066 179.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.019 179.602);
  --foreground: oklch(0.98 0.004 181.943);
  --muted: oklch(0.252 0.029 178.211);
  --muted-foreground: oklch(0.719 0.029 180.904);
  --popover: oklch(0.16 0.019 179.602);
  --popover-foreground: oklch(0.98 0.004 181.943);
  --card: oklch(0.16 0.019 179.602);
  --card-foreground: oklch(0.98 0.004 181.943);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.853 0.063 179.84);
  --primary-foreground: oklch(0.312 0.043 177.017);
  --secondary: oklch(0.221 0.008 181.039);
  --secondary-foreground: oklch(0.777 0.018 181.429);
  --accent: oklch(0.341 0.026 179.747);
  --accent-foreground: oklch(0.859 0.022 181.354);
  --destructive: oklch(0.657 0.202 34.046);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.853 0.063 179.84);
  --chart-1: oklch(0.853 0.063 179.84);
  --chart-2: oklch(0.221 0.008 181.039);
  --chart-3: oklch(0.341 0.026 179.747);
  --chart-4: oklch(0.255 0.01 180.949);
  --chart-5: oklch(0.856 0.066 179.7);
}