Sailing for shadcn/ui

Sailing is a shadcn/ui theme built around a muted deep violet primary color (#1d1924) with muted deep green accents (#202419). The light mode uses a neutral background (#faf8fb). Dark mode keeps the muted deep violet primary (#1d1924) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#faf8fbghostwhite
#020104black
Foreground
#020104black
#faf9fbghostwhite
Card
#faf8fbghostwhite
#020104black
Card foreground
#020104black
#faf9fbghostwhite
Popover
#faf8fbghostwhite
#020104black
Popover foreground
#020104black
#faf9fbghostwhite
Primary
#1d1924black
#1d1924black
Primary foreground
#b5abc4silver
#b5abc4silver
Secondary
#202419black
#202419black
Secondary foreground
#bac4absilver
#bac4absilver
Muted
#dde5d2gainsboro
#262d1adarkslategray
Muted foreground
#40423ddarkslategray
#c0c2bdsilver
Accent
#202419black
#202419black
Accent foreground
#bac4absilver
#bac4absilver
Destructive
#d9100dred
#ec110ered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d1924black
#1d1924black

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.85:1AAA
Secondary button8.73:1AAA
Muted text7.83:1AAA
Accent8.73:1AAA
Destructive5.21:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.85:1AAA
Secondary button8.73:1AAA
Muted text7.94:1AAA
Accent8.73:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 303.574);
  --foreground: oklch(0.078 0.019 304.699);
  --muted: oklch(0.91 0.026 124.065);
  --muted-foreground: oklch(0.377 0.009 123.991);
  --popover: oklch(0.982 0.004 303.574);
  --popover-foreground: oklch(0.078 0.019 304.699);
  --card: oklch(0.982 0.004 303.574);
  --card-foreground: oklch(0.078 0.019 304.699);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.225 0.021 302.264);
  --primary-foreground: oklch(0.758 0.036 302.942);
  --secondary: oklch(0.252 0.02 124.843);
  --secondary-foreground: oklch(0.806 0.035 124.289);
  --accent: oklch(0.252 0.02 124.843);
  --accent-foreground: oklch(0.806 0.035 124.289);
  --destructive: oklch(0.56 0.224 28.977);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.225 0.021 302.264);
  --chart-1: oklch(0.225 0.021 302.264);
  --chart-2: oklch(0.252 0.02 124.843);
  --chart-3: oklch(0.252 0.02 124.843);
  --chart-4: oklch(0.287 0.024 124.92);
  --chart-5: oklch(0.222 0.024 301.996);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.016 304.497);
  --foreground: oklch(0.982 0.004 303.584);
  --muted: oklch(0.284 0.034 125.518);
  --muted-foreground: oklch(0.81 0.007 123.774);
  --popover: oklch(0.081 0.016 304.497);
  --popover-foreground: oklch(0.982 0.004 303.584);
  --card: oklch(0.081 0.016 304.497);
  --card-foreground: oklch(0.982 0.004 303.584);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.225 0.021 302.264);
  --primary-foreground: oklch(0.758 0.036 302.942);
  --secondary: oklch(0.252 0.02 124.843);
  --secondary-foreground: oklch(0.806 0.035 124.289);
  --accent: oklch(0.252 0.02 124.843);
  --accent-foreground: oklch(0.806 0.035 124.289);
  --destructive: oklch(0.597 0.239 29.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.225 0.021 302.264);
  --chart-1: oklch(0.225 0.021 302.264);
  --chart-2: oklch(0.252 0.02 124.843);
  --chart-3: oklch(0.252 0.02 124.843);
  --chart-4: oklch(0.287 0.024 124.92);
  --chart-5: oklch(0.222 0.024 301.996);
}