Couleur hafahafa for shadcn/ui

Couleur hafahafa is a shadcn/ui theme built around a muted teal primary color (#527e7a) with muted light teal accents (#cad8d2). The light mode uses a neutral background (#cfd5d2). Dark mode keeps the muted teal primary (#376551) on a neutral background (#313935).

Color palette

TokenLightDark
Background
#cfd5d2lightgrey
#313935darkslategray
Foreground
#05100bblack
#fcfdfdwhite
Card
#e9e9e9lavender
#3c423fdarkslategray
Card foreground
#05100bblack
#fcfdfdwhite
Popover
#fcfdfdwhite
#757575gray
Popover foreground
#05100bblack
#fcfdfdwhite
Primary
#527e7adimgray
#376551darkslategray
Primary foreground
#c7bfbfsilver
#ffffffwhite
Secondary
#dfe2e1gainsboro
#222a27darkslategray
Secondary foreground
#434c48darkslategray
#b9c6c0silver
Muted
#f1f3f2whitesmoke
#0c0e0dblack
Muted foreground
#556d62dimgray
#92aaa0darkgray
Accent
#cad8d2lightgrey
#293d34darkslategray
Accent foreground
#304139darkslategray
#c2d6cdlightgrey
Destructive
#abcbbesilver
#fe712atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e2e4e3gainsboro
#202221black
Input
#e2e4e3gainsboro
#202221black
Ring
#099558seagreen
#099558seagreen

Contrast

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

Light mode
Text on background12.94:1AAA
Text on card15.99:1AAA
Primary button2.50:1Fail
Secondary button6.80:1AA
Muted text5.03:1AA
Accent7.35:1AAA
Destructive1.74:1Fail
Dark mode
Text on background11.68:1AAA
Text on card10.08:1AAA
Primary button6.65:1AA
Secondary button8.31:1AAA
Muted text7.84:1AAA
Accent7.63:1AAA
Destructive7.58:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.866 0.007 168.51);
  --foreground: oklch(0.158 0.02 166.564);
  --muted: oklch(0.963 0.002 168.68);
  --muted-foreground: oklch(0.511 0.032 166.855);
  --popover: oklch(0.994 0.002 168.672);
  --popover-foreground: oklch(0.158 0.02 166.564);
  --card: oklch(0.935 0 165.069);
  --card-foreground: oklch(0.158 0.02 166.564);
  --border: oklch(0.917 0.003 168.65);
  --input: oklch(0.917 0.003 168.65);
  --primary: oklch(0.561 0.049 188.418);
  --primary-foreground: oklch(0.811 0.01 17.359);
  --secondary: oklch(0.91 0.004 168.595);
  --secondary-foreground: oklch(0.406 0.013 167.834);
  --accent: oklch(0.87 0.017 168.18);
  --accent-foreground: oklch(0.356 0.025 166.583);
  --destructive: oklch(0.816 0.039 168.073);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.591 0.141 156.04);
  --chart-1: oklch(0.561 0.049 188.418);
  --chart-2: oklch(0.91 0.004 168.595);
  --chart-3: oklch(0.87 0.017 168.18);
  --chart-4: oklch(0.933 0.003 168.633);
  --chart-5: oklch(0.567 0.055 188.16);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.335 0.013 167.62);
  --foreground: oklch(0.993 0.002 168.679);
  --muted: oklch(0.159 0.003 168.221);
  --muted-foreground: oklch(0.716 0.03 167.522);
  --popover: oklch(0.563 0 164.055);
  --popover-foreground: oklch(0.993 0.002 168.679);
  --card: oklch(0.373 0.009 168.016);
  --card-foreground: oklch(0.993 0.002 168.679);
  --border: oklch(0.251 0.004 168.229);
  --input: oklch(0.251 0.004 168.229);
  --primary: oklch(0.468 0.061 164.237);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.277 0.012 167.422);
  --secondary-foreground: oklch(0.814 0.016 168.176);
  --accent: oklch(0.339 0.029 166.064);
  --accent-foreground: oklch(0.858 0.024 167.936);
  --destructive: oklch(0.71 0.19 43.38);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.591 0.141 156.04);
  --chart-1: oklch(0.468 0.061 164.237);
  --chart-2: oklch(0.277 0.012 167.422);
  --chart-3: oklch(0.339 0.029 166.064);
  --chart-4: oklch(0.309 0.014 167.36);
  --chart-5: oklch(0.474 0.067 163.787);
}