Hare for shadcn/ui

Hare is a shadcn/ui theme built around a pink primary color (#c17b9c) with teal accents (#7bc1a0). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#c17b9c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#080205black
#fbf9fasnow
Card
#fdf7fasnow
#030303black
Card foreground
#040102black
#fdfcfcsnow
Popover
#fdf7fasnow
#030303black
Popover foreground
#040102black
#fdfcfcsnow
Primary
#c17b9crosybrown
#c17b9crosybrown
Primary foreground
#070305black
#070305black
Secondary
#7bc1a0mediumaquamarine
#7bc1a0mediumaquamarine
Secondary foreground
#030705black
#030705black
Muted
#e9eceblavender
#131614black
Muted foreground
#4e655adimgray
#9ab1a7darkgray
Accent
#7bc1a0mediumaquamarine
#7bc1a0mediumaquamarine
Accent foreground
#030705black
#030705black
Destructive
#6d0303maroon
#fa3838tomato
Destructive foreground
#fda5a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c17b9crosybrown
#c17b9crosybrown

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.62:1AAA
Primary button6.43:1AA
Secondary button9.63:1AAA
Muted text5.30:1AA
Accent9.63:1AAA
Destructive6.65:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.19:1AAA
Primary button6.43:1AA
Secondary button9.63:1AAA
Muted text8.00:1AAA
Accent9.63:1AAA
Destructive3.69: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.991 0.004 347.011);
  --foreground: oklch(0.105 0.024 346.588);
  --muted: oklch(0.941 0.004 166.805);
  --muted-foreground: oklch(0.484 0.033 164.91);
  --popover: oklch(0.981 0.008 347.116);
  --popover-foreground: oklch(0.083 0.019 346.588);
  --card: oklch(0.981 0.008 347.116);
  --card-foreground: oklch(0.083 0.019 346.588);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.666 0.096 350.529);
  --primary-foreground: oklch(0.11 0.012 346.742);
  --secondary: oklch(0.755 0.085 163.307);
  --secondary-foreground: oklch(0.121 0.011 167.044);
  --accent: oklch(0.755 0.085 163.307);
  --accent-foreground: oklch(0.121 0.011 167.044);
  --destructive: oklch(0.339 0.136 28.794);
  --destructive-foreground: oklch(0.809 0.104 19.57);
  --ring: oklch(0.666 0.096 350.529);
  --chart-1: oklch(0.666 0.096 350.529);
  --chart-2: oklch(0.755 0.085 163.307);
  --chart-3: oklch(0.755 0.085 163.307);
  --chart-4: oklch(0.774 0.079 163.731);
  --chart-5: oklch(0.665 0.104 350.836);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 346.965);
  --muted: oklch(0.196 0.005 166.17);
  --muted-foreground: oklch(0.741 0.03 165.76);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 346.936);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 346.936);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.666 0.096 350.529);
  --primary-foreground: oklch(0.11 0.012 346.742);
  --secondary: oklch(0.755 0.085 163.307);
  --secondary-foreground: oklch(0.121 0.011 167.044);
  --accent: oklch(0.755 0.085 163.307);
  --accent-foreground: oklch(0.121 0.011 167.044);
  --destructive: oklch(0.644 0.229 26.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.666 0.096 350.529);
  --chart-1: oklch(0.666 0.096 350.529);
  --chart-2: oklch(0.755 0.085 163.307);
  --chart-3: oklch(0.755 0.085 163.307);
  --chart-4: oklch(0.774 0.079 163.731);
  --chart-5: oklch(0.665 0.104 350.836);
}