Freighter for shadcn/ui

Freighter is a shadcn/ui theme built around a deep yellow primary color (#585a1b) with deep green accents (#395a1b). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the deep yellow primary (#585a1b) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfdf7snow
#030302black
Foreground
#000000black
#f9f9f5whitesmoke
Card
#fdfdf7snow
#030302black
Card foreground
#000000black
#f9f9f5whitesmoke
Popover
#fdfdf7snow
#030302black
Popover foreground
#000000black
#f9f9f5whitesmoke
Primary
#585a1bdarkolivegreen
#585a1bdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5a3d1bsaddlebrown
#5a3d1bsaddlebrown
Secondary foreground
#ebd5bcwheat
#ebd5bcwheat
Muted
#e7dcd0gainsboro
#2f2418black
Muted foreground
#4a433adarkslategray
#c5bdb5silver
Accent
#395a1bdarkolivegreen
#395a1bdarkolivegreen
Accent foreground
#d2ebbclightgrey
#d2ebbclightgrey
Destructive
#cb4b10chocolate
#ef7339tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#585a1bdarkolivegreen
#585a1bdarkolivegreen

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button7.22:1AAA
Secondary button6.98:1AA
Muted text7.21:1AAA
Accent6.14:1AA
Destructive4.60:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.22:1AAA
Secondary button6.98:1AA
Muted text8.11:1AAA
Accent6.14:1AA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.008 108.091);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.9 0.021 71.237);
  --muted-foreground: oklch(0.387 0.017 70.994);
  --popover: oklch(0.992 0.008 108.091);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.008 108.091);
  --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.453 0.084 111.169);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.386 0.064 67.494);
  --secondary-foreground: oklch(0.885 0.041 70.968);
  --accent: oklch(0.428 0.099 133.091);
  --accent-foreground: oklch(0.91 0.068 130.559);
  --destructive: oklch(0.581 0.173 40.445);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.084 111.169);
  --chart-1: oklch(0.453 0.084 111.169);
  --chart-2: oklch(0.386 0.064 67.494);
  --chart-3: oklch(0.428 0.099 133.091);
  --chart-4: oklch(0.419 0.07 67.328);
  --chart-5: oklch(0.459 0.087 111.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.009 109.23);
  --foreground: oklch(0.982 0.006 108.045);
  --muted: oklch(0.271 0.027 70.007);
  --muted-foreground: oklch(0.803 0.014 71.288);
  --popover: oklch(0.099 0.009 109.23);
  --popover-foreground: oklch(0.982 0.006 108.045);
  --card: oklch(0.099 0.009 109.23);
  --card-foreground: oklch(0.982 0.006 108.045);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.453 0.084 111.169);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.386 0.064 67.494);
  --secondary-foreground: oklch(0.885 0.041 70.968);
  --accent: oklch(0.428 0.099 133.091);
  --accent-foreground: oklch(0.91 0.068 130.559);
  --destructive: oklch(0.692 0.169 43.392);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.453 0.084 111.169);
  --chart-1: oklch(0.453 0.084 111.169);
  --chart-2: oklch(0.386 0.064 67.494);
  --chart-3: oklch(0.428 0.099 133.091);
  --chart-4: oklch(0.419 0.07 67.328);
  --chart-5: oklch(0.459 0.087 111.255);
}