Haversack for shadcn/ui

Haversack is a shadcn/ui theme built around a teal primary color (#86cac7) with yellow accents (#cac786). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#86cac7) on a teal-tinted background (#070e0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e0eblack
Foreground
#031716black
#fcfdfdwhite
Card
#fcfcfcsnow
#081111black
Card foreground
#021211black
#ffffffwhite
Popover
#ffffffwhite
#070e0eblack
Popover foreground
#031716black
#fcfdfdwhite
Primary
#86cac7skyblue
#86cac7skyblue
Primary foreground
#091515black
#091515black
Secondary
#c786caorchid
#c786caorchid
Secondary foreground
#150915black
#150915black
Muted
#e9e7e9lavender
#181618black
Muted foreground
#575158dimgray
#aea7aedarkgray
Accent
#cac786tan
#cac786tan
Accent foreground
#151509black
#151509black
Destructive
#a71f01firebrick
#e42b01orangered
Destructive foreground
#ffe2dbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#86cac7skyblue
#86cac7skyblue

Contrast

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

Light mode
Text on background18.45:1AAA
Text on card18.72:1AAA
Primary button10.00:1AAA
Secondary button7.12:1AAA
Muted text6.26:1AA
Accent10.50:1AAA
Destructive6.01:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.07:1AAA
Primary button10.00:1AAA
Secondary button7.12:1AAA
Muted text7.67:1AAA
Accent10.50:1AAA
Destructive4.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.185 0.027 190.859);
  --muted: oklch(0.93 0.004 324.154);
  --muted-foreground: oklch(0.443 0.014 324.306);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.185 0.027 190.859);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.167 0.024 191.198);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.793 0.069 191.876);
  --primary-foreground: oklch(0.185 0.017 191.743);
  --secondary: oklch(0.709 0.119 325.024);
  --secondary-foreground: oklch(0.164 0.03 325.101);
  --accent: oklch(0.816 0.084 105.546);
  --accent-foreground: oklch(0.191 0.021 105.65);
  --destructive: oklch(0.473 0.175 32.796);
  --destructive-foreground: oklch(0.935 0.033 32.709);
  --ring: oklch(0.793 0.069 191.876);
  --chart-1: oklch(0.793 0.069 191.876);
  --chart-2: oklch(0.709 0.119 325.024);
  --chart-3: oklch(0.816 0.084 105.546);
  --chart-4: oklch(0.734 0.108 324.924);
  --chart-5: oklch(0.799 0.073 191.768);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 192.279);
  --foreground: oklch(0.993 0.001 193.588);
  --muted: oklch(0.203 0.006 324.29);
  --muted-foreground: oklch(0.737 0.012 324.224);
  --popover: oklch(0.155 0.012 192.279);
  --popover-foreground: oklch(0.993 0.001 193.588);
  --card: oklch(0.17 0.014 192.013);
  --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.793 0.069 191.876);
  --primary-foreground: oklch(0.185 0.017 191.743);
  --secondary: oklch(0.709 0.119 325.024);
  --secondary-foreground: oklch(0.164 0.03 325.101);
  --accent: oklch(0.816 0.084 105.546);
  --accent-foreground: oklch(0.191 0.021 105.65);
  --destructive: oklch(0.593 0.223 32.291);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.793 0.069 191.876);
  --chart-1: oklch(0.793 0.069 191.876);
  --chart-2: oklch(0.709 0.119 325.024);
  --chart-3: oklch(0.816 0.084 105.546);
  --chart-4: oklch(0.734 0.108 324.924);
  --chart-5: oklch(0.799 0.073 191.768);
}