Hay Coral for shadcn/ui

Hay Coral is a shadcn/ui theme built around a yellow primary color (#d6cda9) with purple accents (#cda9d6). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#d6cda9) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfcf7snow
#040301black
Foreground
#0d0b02black
#fbfaf9snow
Card
#fdfcf7snow
#040301black
Card foreground
#0d0b02black
#fbfaf9snow
Popover
#fdfcf7snow
#040301black
Popover foreground
#0d0b02black
#fbfaf9snow
Primary
#d6cda9silver
#d6cda9silver
Primary foreground
#342e19darkslategray
#342e19darkslategray
Secondary
#a9d6cdlightblue
#a9d6cdlightblue
Secondary foreground
#19342edarkslategray
#19342edarkslategray
Muted
#e6eae9lavender
#151918black
Muted foreground
#5d5f5fdimgray
#a0a2a1darkgray
Accent
#cda9d6plum
#cda9d6plum
Accent foreground
#2e1934darkslategray
#2e1934darkslategray
Destructive
#8d0b02darkred
#fc4336tomato
Destructive foreground
#fec7c3pink
#ffffffwhite
Border
#e6e5e0gainsboro
#1f1e19black
Input
#e6e5e0gainsboro
#1f1e19black
Ring
#d6cda9silver
#d6cda9silver

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button8.45:1AAA
Secondary button8.35:1AAA
Muted text5.30:1AA
Accent7.83:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button8.45:1AAA
Secondary button8.35:1AAA
Muted text6.90:1AA
Accent7.83:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 95.106);
  --foreground: oklch(0.148 0.022 99.245);
  --muted: oklch(0.934 0.005 183.051);
  --muted-foreground: oklch(0.485 0.002 183.046);
  --popover: oklch(0.989 0.006 95.106);
  --popover-foreground: oklch(0.148 0.022 99.245);
  --card: oklch(0.989 0.006 95.106);
  --card-foreground: oklch(0.148 0.022 99.245);
  --border: oklch(0.921 0.007 95.127);
  --input: oklch(0.921 0.007 95.127);
  --primary: oklch(0.845 0.049 95.598);
  --primary-foreground: oklch(0.302 0.036 95.771);
  --secondary: oklch(0.841 0.048 181.52);
  --secondary-foreground: oklch(0.3 0.035 179.412);
  --accent: oklch(0.781 0.073 319.464);
  --accent-foreground: oklch(0.254 0.057 319.399);
  --destructive: oklch(0.408 0.161 30.111);
  --destructive-foreground: oklch(0.877 0.064 23.169);
  --ring: oklch(0.845 0.049 95.598);
  --chart-1: oklch(0.845 0.049 95.598);
  --chart-2: oklch(0.841 0.048 181.52);
  --chart-3: oklch(0.781 0.073 319.464);
  --chart-4: oklch(0.86 0.043 181.765);
  --chart-5: oklch(0.849 0.053 95.629);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.012 99.182);
  --foreground: oklch(0.986 0.002 95.058);
  --muted: oklch(0.209 0.006 182.314);
  --muted-foreground: oklch(0.709 0.002 183.098);
  --popover: oklch(0.1 0.012 99.182);
  --popover-foreground: oklch(0.986 0.002 95.058);
  --card: oklch(0.1 0.012 99.182);
  --card-foreground: oklch(0.986 0.002 95.058);
  --border: oklch(0.235 0.01 95.486);
  --input: oklch(0.235 0.01 95.486);
  --primary: oklch(0.845 0.049 95.598);
  --primary-foreground: oklch(0.302 0.036 95.771);
  --secondary: oklch(0.841 0.048 181.52);
  --secondary-foreground: oklch(0.3 0.035 179.412);
  --accent: oklch(0.781 0.073 319.464);
  --accent-foreground: oklch(0.254 0.057 319.399);
  --destructive: oklch(0.656 0.223 28.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.049 95.598);
  --chart-1: oklch(0.845 0.049 95.598);
  --chart-2: oklch(0.841 0.048 181.52);
  --chart-3: oklch(0.781 0.073 319.464);
  --chart-4: oklch(0.86 0.043 181.765);
  --chart-5: oklch(0.849 0.053 95.629);
}