Harpooner for shadcn/ui

Harpooner is a shadcn/ui theme built around a blue primary color (#3d5f99) with indigo accents (#493d99). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#3d5f99) on a blue-tinted background (#06090f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06090fblack
Foreground
#010409black
#f8f9fcghostwhite
Card
#f7f9fdghostwhite
#070b13black
Card foreground
#010205black
#fbfcfdwhite
Popover
#f7f9fdghostwhite
#070b13black
Popover foreground
#010205black
#fbfcfdwhite
Primary
#3d5f99darkslateblue
#3d5f99darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3d8d99steelblue
#3d8d99steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#cee5e9gainsboro
#162d31darkslategray
Muted foreground
#4d5556darkslategray
#a9b1b2darkgray
Accent
#493d99darkslateblue
#493d99darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b90909firebrick
#f52929crimson
Destructive foreground
#fff5f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3d5f99darkslateblue
#3d5f99darkslateblue

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.67:1AAA
Primary button6.38:1AA
Secondary button3.84:1AA Large
Muted text5.82:1AA
Accent8.69:1AAA
Destructive6.31:1AA
Dark mode
Text on background18.94:1AAA
Text on card19.16:1AAA
Primary button6.38:1AA
Secondary button3.84:1AA Large
Muted text6.58:1AA
Accent8.69:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 261.513);
  --foreground: oklch(0.104 0.02 249.109);
  --muted: oklch(0.906 0.025 207.846);
  --muted-foreground: oklch(0.443 0.011 207.851);
  --popover: oklch(0.982 0.006 261.512);
  --popover-foreground: oklch(0.083 0.016 249.109);
  --card: oklch(0.982 0.006 261.512);
  --card-foreground: oklch(0.083 0.016 249.109);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.487 0.102 260.701);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.599 0.079 208.937);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.426 0.145 284.519);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.496 0.2 28.799);
  --destructive-foreground: oklch(0.978 0.01 17.327);
  --ring: oklch(0.487 0.102 260.701);
  --chart-1: oklch(0.487 0.102 260.701);
  --chart-2: oklch(0.599 0.079 208.937);
  --chart-3: oklch(0.426 0.145 284.519);
  --chart-4: oklch(0.629 0.084 208.958);
  --chart-5: oklch(0.486 0.109 260.646);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.015 257.201);
  --foreground: oklch(0.983 0.004 261.513);
  --muted: oklch(0.282 0.03 208.269);
  --muted-foreground: oklch(0.754 0.01 207.882);
  --popover: oklch(0.15 0.018 259.624);
  --popover-foreground: oklch(0.991 0.002 261.514);
  --card: oklch(0.15 0.018 259.624);
  --card-foreground: oklch(0.991 0.002 261.514);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.487 0.102 260.701);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.599 0.079 208.937);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.426 0.145 284.519);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.235 27.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.102 260.701);
  --chart-1: oklch(0.487 0.102 260.701);
  --chart-2: oklch(0.599 0.079 208.937);
  --chart-3: oklch(0.426 0.145 284.519);
  --chart-4: oklch(0.629 0.084 208.958);
  --chart-5: oklch(0.486 0.109 260.646);
}