Shipper for shadcn/ui

Shipper is a shadcn/ui theme built around a deep violet primary color (#291a56) with muted violet accents (#b4b0bf). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the deep violet primary (#291a56) on a violet-tinted background (#06040c).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#06040cblack
Foreground
#080416black
#fcfcfdwhite
Card
#f5f3fcghostwhite
#08050fblack
Card foreground
#070311black
#ffffffwhite
Popover
#f5f3fcghostwhite
#08050fblack
Popover foreground
#070311black
#ffffffwhite
Primary
#291a56midnightblue
#291a56midnightblue
Primary foreground
#c5b8ealightsteelblue
#c5b8ealightsteelblue
Secondary
#ceced0lightgrey
#1a1a1ablack
Secondary foreground
#353437darkslategray
#b3b3b3darkgray
Muted
#d9d7e0gainsboro
#281f1fblack
Muted foreground
#4f4e50darkslategray
#b1afafdarkgray
Accent
#b4b0bfsilver
#332e2edarkslategray
Accent foreground
#1d1c22black
#cdc6c6silver
Destructive
#ce1403firebrick
#fc3d2corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#291a56midnightblue
#291a56midnightblue

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.51:1AAA
Primary button8.29:1AAA
Secondary button7.84:1AAA
Muted text5.79:1AA
Accent8.00:1AAA
Destructive5.63:1AA
Dark mode
Text on background19.90:1AAA
Text on card20.21:1AAA
Primary button8.29:1AAA
Secondary button8.34:1AAA
Muted text7.35:1AAA
Accent7.97:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 297.673);
  --foreground: oklch(0.129 0.042 294.147);
  --muted: oklch(0.883 0.013 297.566);
  --muted-foreground: oklch(0.426 0.003 297.715);
  --popover: oklch(0.968 0.013 297.593);
  --popover-foreground: oklch(0.118 0.037 295.687);
  --card: oklch(0.968 0.013 297.593);
  --card-foreground: oklch(0.118 0.037 295.687);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.276 0.104 289.288);
  --primary-foreground: oklch(0.81 0.07 296.259);
  --secondary: oklch(0.851 0.003 297.768);
  --secondary-foreground: oklch(0.328 0.004 297.62);
  --accent: oklch(0.766 0.02 297.349);
  --accent-foreground: oklch(0.229 0.012 296.896);
  --destructive: oklch(0.54 0.214 30.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.276 0.104 289.288);
  --chart-1: oklch(0.276 0.104 289.288);
  --chart-2: oklch(0.851 0.003 297.768);
  --chart-3: oklch(0.766 0.02 297.349);
  --chart-4: oklch(0.875 0.002 297.779);
  --chart-5: oklch(0.274 0.109 288.584);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.022 297.406);
  --foreground: oklch(0.992 0.001 297.811);
  --muted: oklch(0.251 0.014 18.159);
  --muted-foreground: oklch(0.756 0.002 17.197);
  --popover: oklch(0.127 0.025 296.425);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.025 296.425);
  --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.276 0.104 289.288);
  --primary-foreground: oklch(0.81 0.07 296.259);
  --secondary: oklch(0.216 0 180);
  --secondary-foreground: oklch(0.765 0 172.405);
  --accent: oklch(0.306 0.008 17.624);
  --accent-foreground: oklch(0.832 0.007 17.301);
  --destructive: oklch(0.65 0.228 29.761);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.276 0.104 289.288);
  --chart-1: oklch(0.276 0.104 289.288);
  --chart-2: oklch(0.216 0 180);
  --chart-3: oklch(0.306 0.008 17.624);
  --chart-4: oklch(0.248 0 173.29);
  --chart-5: oklch(0.274 0.109 288.584);
}