Hare for shadcn/ui

Hare is a shadcn/ui theme built around a deep cyan primary color (#142e39) with neutral gray accents (#cbc3c3). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the deep cyan primary (#142e39) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#020608black
Foreground
#010304black
#f5f9faghostwhite
Card
#f8fbfcghostwhite
#020608black
Card foreground
#010304black
#f5f9faghostwhite
Popover
#f8fbfcghostwhite
#020608black
Popover foreground
#010304black
#f5f9faghostwhite
Primary
#142e39darkslategray
#142e39darkslategray
Primary foreground
#a0cddelightsteelblue
#a0cddelightsteelblue
Secondary
#dededegainsboro
#1c2427black
Secondary foreground
#454545darkslategray
#aebfc6silver
Muted
#ead6d6gainsboro
#152329black
Muted foreground
#463e3edarkslategray
#b9bec1silver
Accent
#cbc3c3silver
#233339darkslategray
Accent foreground
#312b2bdarkslategray
#b9cdd4lightsteelblue
Destructive
#c30909firebrick
#f41515red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#142e39darkslategray
#142e39darkslategray

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button8.27:1AAA
Secondary button7.11:1AAA
Muted text7.49:1AAA
Accent8.02:1AAA
Destructive6.25:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button8.27:1AAA
Secondary button8.35:1AAA
Muted text8.59:1AAA
Accent7.97:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 223.164);
  --foreground: oklch(0.094 0.011 217.016);
  --muted: oklch(0.893 0.022 17.58);
  --muted-foreground: oklch(0.373 0.011 17.656);
  --popover: oklch(0.986 0.003 223.164);
  --popover-foreground: oklch(0.094 0.011 217.016);
  --card: oklch(0.986 0.003 223.164);
  --card-foreground: oklch(0.094 0.011 217.016);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.287 0.038 226.27);
  --primary-foreground: oklch(0.822 0.053 224.058);
  --secondary: oklch(0.9 0 188.746);
  --secondary-foreground: oklch(0.39 0 165.964);
  --accent: oklch(0.823 0.009 17.335);
  --accent-foreground: oklch(0.295 0.009 17.701);
  --destructive: oklch(0.516 0.208 28.825);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.287 0.038 226.27);
  --chart-1: oklch(0.287 0.038 226.27);
  --chart-2: oklch(0.9 0 188.746);
  --chart-3: oklch(0.823 0.009 17.335);
  --chart-4: oklch(0.923 0 153.435);
  --chart-5: oklch(0.288 0.04 226.571);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.012 217.643);
  --foreground: oklch(0.978 0.005 223.178);
  --muted: oklch(0.246 0.023 224.721);
  --muted-foreground: oklch(0.799 0.007 223.221);
  --popover: oklch(0.118 0.012 217.643);
  --popover-foreground: oklch(0.978 0.005 223.178);
  --card: oklch(0.118 0.012 217.643);
  --card-foreground: oklch(0.978 0.005 223.178);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.287 0.038 226.27);
  --primary-foreground: oklch(0.822 0.053 224.058);
  --secondary: oklch(0.252 0.013 223.811);
  --secondary-foreground: oklch(0.795 0.021 223.423);
  --accent: oklch(0.309 0.024 224.323);
  --accent-foreground: oklch(0.835 0.024 223.45);
  --destructive: oklch(0.613 0.244 28.575);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.287 0.038 226.27);
  --chart-1: oklch(0.287 0.038 226.27);
  --chart-2: oklch(0.252 0.013 223.811);
  --chart-3: oklch(0.309 0.024 224.323);
  --chart-4: oklch(0.285 0.016 223.862);
  --chart-5: oklch(0.288 0.04 226.571);
}