Freighter for shadcn/ui

Freighter is a shadcn/ui theme built around a muted cyan primary color (#518794) with muted red accents (#945f51). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the muted cyan primary (#518794) on a neutral background (#040607).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#040607black
Foreground
#000000black
#f9fbfbghostwhite
Card
#f3fafcaliceblue
#05090ablack
Card foreground
#000000black
#fcfdfdwhite
Popover
#f3fafcaliceblue
#05090ablack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#518794cadetblue
#518794cadetblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#945f51sienna
#945f51sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efe8e7linen
#181210black
Muted foreground
#4f3f3bdarkslategray
#c4b4b0silver
Accent
#945f51sienna
#945f51sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d2809saddlebrown
#ee682bchocolate
Destructive foreground
#f8c6afpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#518794cadetblue
#518794cadetblue

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card19.87:1AAA
Primary button4.01:1AA Large
Secondary button5.23:1AA
Muted text8.24:1AAA
Accent5.23:1AA
Destructive6.99:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.61:1AAA
Primary button4.01:1AA Large
Secondary button5.23:1AA
Muted text9.26:1AAA
Accent5.23:1AA
Destructive6.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 214.33);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.936 0.007 34.305);
  --muted-foreground: oklch(0.383 0.024 34.372);
  --popover: oklch(0.98 0.007 214.337);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 214.337);
  --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.59 0.06 215.482);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.539 0.073 34.719);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.539 0.073 34.719);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.374 0.105 41.622);
  --destructive-foreground: oklch(0.865 0.066 46.14);
  --ring: oklch(0.59 0.06 215.482);
  --chart-1: oklch(0.59 0.06 215.482);
  --chart-2: oklch(0.539 0.073 34.719);
  --chart-3: oklch(0.539 0.073 34.719);
  --chart-4: oklch(0.565 0.077 34.724);
  --chart-5: oklch(0.595 0.065 215.706);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.007 211.94);
  --foreground: oklch(0.986 0.002 214.322);
  --muted: oklch(0.19 0.011 34.362);
  --muted-foreground: oklch(0.782 0.02 34.298);
  --popover: oklch(0.135 0.008 211.94);
  --popover-foreground: oklch(0.993 0.001 214.32);
  --card: oklch(0.135 0.008 211.94);
  --card-foreground: oklch(0.993 0.001 214.32);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.59 0.06 215.482);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.539 0.073 34.719);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.539 0.073 34.719);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.675 0.18 42.443);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.59 0.06 215.482);
  --chart-1: oklch(0.59 0.06 215.482);
  --chart-2: oklch(0.539 0.073 34.719);
  --chart-3: oklch(0.539 0.073 34.719);
  --chart-4: oklch(0.565 0.077 34.724);
  --chart-5: oklch(0.595 0.065 215.706);
}