Quilt Gold Hare for shadcn/ui

Quilt Gold Hare is a shadcn/ui theme built around a yellow primary color (#e9c46a) with teal accents (#2a9d8f). The light mode uses a cyan-tinted background (#426b7c). Dark mode keeps the yellow primary (#e9c46a) on a cyan-tinted background (#264653).

Color palette

TokenLightDark
Background
#426b7cdimgray
#264653darkslategray
Foreground
#f9f7f6whitesmoke
#f9f7f6whitesmoke
Card
#255568darkslategray
#1c3743darkslategray
Card foreground
#f9f7f6whitesmoke
#f9f7f6whitesmoke
Popover
#244858darkslategray
#19323ddarkslategray
Popover foreground
#f9f7f6whitesmoke
#f9f7f6whitesmoke
Primary
#e9c46aburlywood
#e9c46aburlywood
Primary foreground
#212121black
#212121black
Secondary
#f4a261sandybrown
#f4a261sandybrown
Secondary foreground
#212121black
#212121black
Muted
#244858darkslategray
#19323ddarkslategray
Muted foreground
#c6c6c6silver
#c6c6c6silver
Accent
#2a9d8flightseagreen
#2a9d8flightseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e76f51tomato
#e76f51tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2d596bdarkslategray
#2d4853darkslategray
Input
#25414ddarkslategray
#1b2f38darkslategray
Ring
#fa903bcoral
#fa903bcoral

Contrast

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

Light mode
Text on background5.44:1AA
Text on card7.64:1AAA
Primary button9.63:1AAA
Secondary button7.81:1AAA
Muted text5.72:1AA
Accent3.32:1AA Large
Destructive3.09:1AA Large
Dark mode
Text on background9.43:1AAA
Text on card11.67:1AAA
Primary button9.63:1AAA
Secondary button7.81:1AAA
Muted text7.88:1AAA
Accent3.32:1AA Large
Destructive3.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.504 0.053 225.79);
  --foreground: oklch(0.978 0.002 69.626);
  --muted: oklch(0.383 0.05 228.931);
  --muted-foreground: oklch(0.827 0 172.875);
  --popover: oklch(0.382 0.05 228.916);
  --popover-foreground: oklch(0.978 0.002 69.626);
  --card: oklch(0.424 0.06 227.402);
  --card-foreground: oklch(0.978 0.002 69.626);
  --border: oklch(0.44 0.057 226.908);
  --input: oklch(0.359 0.04 228.493);
  --primary: oklch(0.834 0.117 87.428);
  --primary-foreground: oklch(0.249 0 180);
  --secondary: oklch(0.781 0.127 57.854);
  --secondary-foreground: oklch(0.248 0 180);
  --accent: oklch(0.63 0.101 183.038);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.678 0.156 35.185);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.16 55.04);
  --chart-1: oklch(0.834 0.117 87.428);
  --chart-2: oklch(0.781 0.127 57.854);
  --chart-3: oklch(0.63 0.101 183.038);
  --chart-4: oklch(0.799 0.116 58.503);
  --chart-5: oklch(0.838 0.121 87.316);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.375 0.044 226.195);
  --foreground: oklch(0.978 0.002 69.626);
  --muted: oklch(0.301 0.037 228.588);
  --muted-foreground: oklch(0.827 0 172.875);
  --popover: oklch(0.302 0.037 228.319);
  --popover-foreground: oklch(0.978 0.002 69.626);
  --card: oklch(0.322 0.039 226.387);
  --card-foreground: oklch(0.978 0.002 69.626);
  --border: oklch(0.384 0.038 227.614);
  --input: oklch(0.293 0.03 227.635);
  --primary: oklch(0.834 0.117 87.428);
  --primary-foreground: oklch(0.249 0 180);
  --secondary: oklch(0.781 0.127 57.854);
  --secondary-foreground: oklch(0.248 0 180);
  --accent: oklch(0.63 0.101 183.038);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.678 0.156 35.185);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.16 55.04);
  --chart-1: oklch(0.834 0.117 87.428);
  --chart-2: oklch(0.781 0.127 57.854);
  --chart-3: oklch(0.63 0.101 183.038);
  --chart-4: oklch(0.799 0.116 58.503);
  --chart-5: oklch(0.838 0.121 87.316);
}