Boat for shadcn/ui

Boat is a shadcn/ui theme built around a red primary color (#843e4b) with blue accents (#3e4b84). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the red primary (#843e4b) on a red-tinted background (#0c0305).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0c0305black
Foreground
#040101black
#fdfcfcsnow
Card
#fdfcfcsnow
#0c0305black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fdfcfcsnow
#0c0305black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#843e4bsienna
#843e4bsienna
Primary foreground
#fcf8f9snow
#fcf8f9snow
Secondary
#4b843edarkolivegreen
#4b843edarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edf5ebhoneydew
#0c140ablack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#3e4b84darkslateblue
#3e4b84darkslateblue
Accent foreground
#f8f9fcghostwhite
#f8f9fcghostwhite
Destructive
#5f0a07maroon
#df1811crimson
Destructive foreground
#f8a3a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#843e4bsienna
#843e4bsienna

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.20:1AAA
Secondary button4.51:1AA
Muted text7.56:1AAA
Accent7.85:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button7.20:1AAA
Secondary button4.51:1AA
Muted text8.92:1AAA
Accent7.85:1AAA
Destructive4.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 4.367);
  --foreground: oklch(0.081 0.019 4.884);
  --muted: oklch(0.96 0.015 139.977);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.991 0.002 4.367);
  --popover-foreground: oklch(0.081 0.019 4.884);
  --card: oklch(0.991 0.002 4.367);
  --card-foreground: oklch(0.081 0.019 4.884);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.458 0.096 10.142);
  --primary-foreground: oklch(0.982 0.004 4.42);
  --secondary: oklch(0.556 0.118 139.992);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.43 0.096 272.276);
  --accent-foreground: oklch(0.982 0.004 276.112);
  --destructive: oklch(0.313 0.117 28.637);
  --destructive-foreground: oklch(0.799 0.101 21.74);
  --ring: oklch(0.458 0.096 10.142);
  --chart-1: oklch(0.458 0.096 10.142);
  --chart-2: oklch(0.556 0.118 139.992);
  --chart-3: oklch(0.43 0.096 272.276);
  --chart-4: oklch(0.587 0.126 139.995);
  --chart-5: oklch(0.457 0.104 10.732);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.022 4.968);
  --foreground: oklch(0.991 0.002 4.365);
  --muted: oklch(0.18 0.023 139.909);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.119 0.022 4.968);
  --popover-foreground: oklch(0.991 0.002 4.365);
  --card: oklch(0.119 0.022 4.968);
  --card-foreground: oklch(0.991 0.002 4.365);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.458 0.096 10.142);
  --primary-foreground: oklch(0.982 0.004 4.42);
  --secondary: oklch(0.556 0.118 139.992);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.43 0.096 272.276);
  --accent-foreground: oklch(0.982 0.004 276.112);
  --destructive: oklch(0.574 0.226 29.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.458 0.096 10.142);
  --chart-1: oklch(0.458 0.096 10.142);
  --chart-2: oklch(0.556 0.118 139.992);
  --chart-3: oklch(0.43 0.096 272.276);
  --chart-4: oklch(0.587 0.126 139.995);
  --chart-5: oklch(0.457 0.104 10.732);
}