Harbour for shadcn/ui

Harbour is a shadcn/ui theme built around a green primary color (#378227) with red accents (#822737). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#378227) on a green-tinted background (#071005).

Color palette

TokenLightDark
Background
#fcfefbwhite
#071005black
Foreground
#050c04black
#f9fbf8mintcream
Card
#fcfefbwhite
#071005black
Card foreground
#050c04black
#f9fbf8mintcream
Popover
#fcfefbwhite
#071005black
Popover foreground
#050c04black
#f9fbf8mintcream
Primary
#378227forestgreen
#378227forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#273782darkslateblue
#273782darkslateblue
Secondary foreground
#e4e7f7lavender
#e4e7f7lavender
Muted
#e2e3e9gainsboro
#16171dblack
Muted foreground
#494a50darkslategray
#afb0b6darkgray
Accent
#822737brown
#822737brown
Accent foreground
#f7e4e7mistyrose
#f7e4e7mistyrose
Destructive
#6b1f01maroon
#fe5f20tomato
Destructive foreground
#ffba9flightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#378227forestgreen
#378227forestgreen

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button4.81:1AA
Secondary button8.71:1AAA
Muted text6.90:1AA
Accent7.53:1AAA
Destructive7.05:1AAA
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button4.81:1AA
Secondary button8.71:1AAA
Muted text8.25:1AAA
Accent7.53:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 139.987);
  --foreground: oklch(0.141 0.024 138.432);
  --muted: oklch(0.917 0.008 276.051);
  --muted-foreground: oklch(0.41 0.011 275.818);
  --popover: oklch(0.994 0.004 139.987);
  --popover-foreground: oklch(0.141 0.024 138.432);
  --card: oklch(0.994 0.004 139.987);
  --card-foreground: oklch(0.141 0.024 138.432);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.538 0.146 140.265);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.371 0.126 269.666);
  --secondary-foreground: oklch(0.93 0.022 275.852);
  --accent: oklch(0.416 0.124 13.688);
  --accent-foreground: oklch(0.934 0.022 4.918);
  --destructive: oklch(0.356 0.114 38.722);
  --destructive-foreground: oklch(0.845 0.088 42.493);
  --ring: oklch(0.538 0.146 140.265);
  --chart-1: oklch(0.538 0.146 140.265);
  --chart-2: oklch(0.371 0.126 269.666);
  --chart-3: oklch(0.416 0.124 13.688);
  --chart-4: oklch(0.393 0.136 269.565);
  --chart-5: oklch(0.545 0.152 140.331);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.029 138.714);
  --foreground: oklch(0.987 0.005 139.987);
  --muted: oklch(0.207 0.012 275.353);
  --muted-foreground: oklch(0.758 0.009 276.009);
  --popover: oklch(0.158 0.029 138.714);
  --popover-foreground: oklch(0.987 0.005 139.987);
  --card: oklch(0.158 0.029 138.714);
  --card-foreground: oklch(0.987 0.005 139.987);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.538 0.146 140.265);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.371 0.126 269.666);
  --secondary-foreground: oklch(0.93 0.022 275.852);
  --accent: oklch(0.416 0.124 13.688);
  --accent-foreground: oklch(0.934 0.022 4.918);
  --destructive: oklch(0.686 0.206 38.992);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.538 0.146 140.265);
  --chart-1: oklch(0.538 0.146 140.265);
  --chart-2: oklch(0.371 0.126 269.666);
  --chart-3: oklch(0.416 0.124 13.688);
  --chart-4: oklch(0.393 0.136 269.565);
  --chart-5: oklch(0.545 0.152 140.331);
}