Yacht for shadcn/ui

Yacht is a shadcn/ui theme built around a cyan primary color (#266782) with muted cyan accents (#b1c1c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#266782) on a cyan-tinted background (#03090c).

Color palette

TokenLightDark
Background
#ffffffwhite
#03090cblack
Foreground
#020a0dblack
#f8fafbghostwhite
Card
#ffffffwhite
#03090cblack
Card foreground
#020a0dblack
#f8fafbghostwhite
Popover
#ffffffwhite
#03090cblack
Popover foreground
#020a0dblack
#f8fafbghostwhite
Primary
#266782teal
#266782teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cfd6d8lightgrey
#272d30darkslategray
Secondary foreground
#343d41darkslategray
#bec7casilver
Muted
#e3e6e8gainsboro
#171a1cblack
Muted foreground
#42494cdarkslategray
#b3babdsilver
Accent
#b1c1c9silver
#313e44darkslategray
Accent foreground
#1d262adarkslategray
#cdd6dblightgrey
Destructive
#6c1b04maroon
#f74818orangered
Destructive foreground
#fcb9a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#266782teal
#266782teal

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button6.30:1AA
Secondary button7.52:1AAA
Muted text7.33:1AAA
Accent8.34:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button6.30:1AA
Secondary button8.11:1AAA
Muted text8.86:1AAA
Accent7.44:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.018 219.715);
  --muted: oklch(0.924 0.004 225.025);
  --muted-foreground: oklch(0.402 0.01 225.302);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.018 219.715);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.136 0.018 219.715);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.484 0.078 229.936);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.87 0.008 225.09);
  --secondary-foreground: oklch(0.354 0.014 225.496);
  --accent: oklch(0.802 0.021 225.304);
  --accent-foreground: oklch(0.263 0.015 225.788);
  --destructive: oklch(0.355 0.119 35.216);
  --destructive-foreground: oklch(0.843 0.082 36.046);
  --ring: oklch(0.484 0.078 229.936);
  --chart-1: oklch(0.484 0.078 229.936);
  --chart-2: oklch(0.87 0.008 225.09);
  --chart-3: oklch(0.802 0.021 225.304);
  --chart-4: oklch(0.894 0.007 225.068);
  --chart-5: oklch(0.487 0.082 230.362);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.014 220.23);
  --foreground: oklch(0.985 0.002 225.01);
  --muted: oklch(0.217 0.005 225.261);
  --muted-foreground: oklch(0.783 0.009 225.113);
  --popover: oklch(0.135 0.014 220.23);
  --popover-foreground: oklch(0.985 0.002 225.01);
  --card: oklch(0.135 0.014 220.23);
  --card-foreground: oklch(0.985 0.002 225.01);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.484 0.078 229.936);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.293 0.01 225.409);
  --secondary-foreground: oklch(0.823 0.01 225.127);
  --accent: oklch(0.356 0.02 225.787);
  --accent-foreground: oklch(0.871 0.012 225.142);
  --destructive: oklch(0.65 0.218 34.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.484 0.078 229.936);
  --chart-1: oklch(0.484 0.078 229.936);
  --chart-2: oklch(0.293 0.01 225.409);
  --chart-3: oklch(0.356 0.02 225.787);
  --chart-4: oklch(0.324 0.011 225.427);
  --chart-5: oklch(0.487 0.082 230.362);
}