Freight for shadcn/ui

Freight is a shadcn/ui theme built around a muted orange primary color (#846d58) with muted light orange accents (#e6dbd1). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#846d58) on an orange-tinted background (#0d0a07).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0d0a07black
Foreground
#000000black
#fbfaf9snow
Card
#fefcfbsnow
#0d0a07black
Card foreground
#000000black
#fbfaf9snow
Popover
#fefcfbsnow
#0d0a07black
Popover foreground
#000000black
#fbfaf9snow
Primary
#846d58dimgray
#846d58dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#efeae7linen
#2a2928darkslategray
Secondary foreground
#625141darkolivegreen
#c3c2c1silver
Muted
#e1dbd6gainsboro
#29241eblack
Muted foreground
#574f47darkolivegreen
#b8b0a8darkgray
Accent
#e6dbd1gainsboro
#3d3834darkslategray
Accent foreground
#56422fdarkolivegreen
#d5d1cdlightgrey
Destructive
#dc1e04red
#fb4a32tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#846d58dimgray
#846d58dimgray

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button4.88:1AA
Secondary button6.35:1AA
Muted text5.85:1AA
Accent6.94:1AA
Destructive4.97:1AA
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button4.88:1AA
Secondary button8.19:1AAA
Muted text7.20:1AAA
Accent7.64: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.993 0.002 65.939);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.01 65.834);
  --muted-foreground: oklch(0.432 0.016 65.486);
  --popover: oklch(0.993 0.002 65.939);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.002 65.939);
  --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.551 0.043 64.851);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.941 0.007 65.878);
  --secondary-foreground: oklch(0.448 0.033 64.903);
  --accent: oklch(0.897 0.018 65.724);
  --accent-foreground: oklch(0.394 0.04 64.322);
  --destructive: oklch(0.571 0.222 30.689);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.043 64.851);
  --chart-1: oklch(0.551 0.043 64.851);
  --chart-2: oklch(0.941 0.007 65.878);
  --chart-3: oklch(0.897 0.018 65.724);
  --chart-4: oklch(0.963 0.004 65.913);
  --chart-5: oklch(0.553 0.049 64.636);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.009 67.892);
  --foreground: oklch(0.985 0.002 65.941);
  --muted: oklch(0.263 0.013 65.297);
  --muted-foreground: oklch(0.761 0.014 65.739);
  --popover: oklch(0.148 0.009 67.892);
  --popover-foreground: oklch(0.985 0.002 65.941);
  --card: oklch(0.148 0.009 67.892);
  --card-foreground: oklch(0.985 0.002 65.941);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.551 0.043 64.851);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.002 65.886);
  --secondary-foreground: oklch(0.814 0.002 65.935);
  --accent: oklch(0.344 0.01 65.611);
  --accent-foreground: oklch(0.863 0.006 65.878);
  --destructive: oklch(0.66 0.217 30.893);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.551 0.043 64.851);
  --chart-1: oklch(0.551 0.043 64.851);
  --chart-2: oklch(0.281 0.002 65.886);
  --chart-3: oklch(0.344 0.01 65.611);
  --chart-4: oklch(0.312 0.002 65.883);
  --chart-5: oklch(0.553 0.049 64.636);
}