Shipyard for shadcn/ui

Shipyard is a shadcn/ui theme built around a pink primary color (#861956) with blue accents (#195686). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the pink primary (#861956) on a pink-tinted background (#0f050b).

Color palette

TokenLightDark
Background
#fdf7fasnow
#0f050bblack
Foreground
#040103black
#ffffffwhite
Card
#fcf3f8lavenderblush
#13060eblack
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7fasnow
#0f050bblack
Popover foreground
#040103black
#ffffffwhite
Primary
#861956purple
#861956purple
Primary foreground
#f8d8eamistyrose
#f8d8eamistyrose
Secondary
#568619olivedrab
#568619olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eef4e7linen
#13180bblack
Muted foreground
#676d5fdimgray
#9aa092darkgray
Accent
#195686teal
#195686teal
Accent foreground
#d8eaf8lavender
#d8eaf8lavender
Destructive
#c02c07firebrick
#f64013orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#861956purple
#861956purple

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.26:1AAA
Primary button7.02:1AAA
Secondary button4.37:1AA Large
Muted text4.75:1AA
Accent6.25:1AA
Destructive5.82:1AA
Dark mode
Text on background20.04:1AAA
Text on card19.78:1AAA
Primary button7.02:1AAA
Secondary button4.37:1AA Large
Muted text6.70:1AA
Accent6.25:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 342.01);
  --foreground: oklch(0.083 0.02 341.836);
  --muted: oklch(0.958 0.018 125.998);
  --muted-foreground: oklch(0.526 0.023 126.336);
  --popover: oklch(0.981 0.008 342.01);
  --popover-foreground: oklch(0.083 0.02 341.836);
  --card: oklch(0.972 0.013 342.114);
  --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.42 0.154 351.573);
  --primary-foreground: oklch(0.914 0.042 342.875);
  --secondary: oklch(0.564 0.143 131.062);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.44 0.099 246.26);
  --accent-foreground: oklch(0.928 0.027 240.686);
  --destructive: oklch(0.528 0.189 33.432);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.42 0.154 351.573);
  --chart-1: oklch(0.42 0.154 351.573);
  --chart-2: oklch(0.564 0.143 131.062);
  --chart-3: oklch(0.44 0.099 246.26);
  --chart-4: oklch(0.603 0.154 131.134);
  --chart-5: oklch(0.423 0.158 352.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.025 343.758);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.026 127.665);
  --muted-foreground: oklch(0.697 0.022 126.157);
  --popover: oklch(0.137 0.025 343.758);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.028 345.119);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.42 0.154 351.573);
  --primary-foreground: oklch(0.914 0.042 342.875);
  --secondary: oklch(0.564 0.143 131.062);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.44 0.099 246.26);
  --accent-foreground: oklch(0.928 0.027 240.686);
  --destructive: oklch(0.642 0.224 33.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.42 0.154 351.573);
  --chart-1: oklch(0.42 0.154 351.573);
  --chart-2: oklch(0.564 0.143 131.062);
  --chart-3: oklch(0.44 0.099 246.26);
  --chart-4: oklch(0.603 0.154 131.134);
  --chart-5: oklch(0.423 0.158 352.027);
}