Madam for shadcn/ui

Madam is a shadcn/ui theme built around a light cyan primary color (#cce3e5) with muted light cyan accents (#dee7e8). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the light cyan primary (#cce3e5) on a cyan-tinted background (#050f10).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#050f10black
Foreground
#010404black
#f9fafbghostwhite
Card
#f7fcfdghostwhite
#050f10black
Card foreground
#010404black
#f9fafbghostwhite
Popover
#f7fcfdghostwhite
#050f10black
Popover foreground
#010404black
#f9fafbghostwhite
Primary
#cce3e5gainsboro
#cce3e5gainsboro
Primary foreground
#2b5155darkslategray
#2b5155darkslategray
Secondary
#dee7e8gainsboro
#333333darkslategray
Secondary foreground
#3d5557darkslategray
#cccccclightgrey
Muted
#f1f3f3whitesmoke
#0e0c0cblack
Muted foreground
#5a6b6cdimgray
#a59393rosybrown
Accent
#dee7e8gainsboro
#333333darkslategray
Accent foreground
#3d5557darkslategray
#cccccclightgrey
Destructive
#742402maroon
#fc6727tomato
Destructive foreground
#fec3aalightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cce3e5gainsboro
#cce3e5gainsboro

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button6.52:1AA
Secondary button6.34:1AA
Muted text5.02:1AA
Accent6.34:1AA
Destructive6.84:1AA
Dark mode
Text on background18.59:1AAA
Text on card18.59:1AAA
Primary button6.52:1AA
Secondary button7.86:1AAA
Muted text6.69:1AA
Accent7.86:1AAA
Destructive7.08:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 203.529);
  --foreground: oklch(0.1 0.013 200.571);
  --muted: oklch(0.963 0.002 203.564);
  --muted-foreground: oklch(0.514 0.02 203.275);
  --popover: oklch(0.988 0.006 203.529);
  --popover-foreground: oklch(0.1 0.013 200.571);
  --card: oklch(0.988 0.006 203.529);
  --card-foreground: oklch(0.1 0.013 200.571);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.025 203.351);
  --primary-foreground: oklch(0.409 0.044 203.187);
  --secondary: oklch(0.922 0.01 203.483);
  --secondary-foreground: oklch(0.431 0.03 203.14);
  --accent: oklch(0.922 0.01 203.483);
  --accent-foreground: oklch(0.431 0.03 203.14);
  --destructive: oklch(0.38 0.119 39.425);
  --destructive-foreground: oklch(0.863 0.076 44.29);
  --ring: oklch(0.9 0.025 203.351);
  --chart-1: oklch(0.9 0.025 203.351);
  --chart-2: oklch(0.922 0.01 203.483);
  --chart-3: oklch(0.922 0.01 203.483);
  --chart-4: oklch(0.943 0.007 203.511);
  --chart-5: oklch(0.902 0.027 203.334);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.017 202.365);
  --foreground: oklch(0.986 0.001 203.568);
  --muted: oklch(0.156 0.003 17.485);
  --muted-foreground: oklch(0.678 0.021 17.692);
  --popover: oklch(0.158 0.017 202.365);
  --popover-foreground: oklch(0.986 0.001 203.568);
  --card: oklch(0.158 0.017 202.365);
  --card-foreground: oklch(0.986 0.001 203.568);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.025 203.351);
  --primary-foreground: oklch(0.409 0.044 203.187);
  --secondary: oklch(0.321 0 180);
  --secondary-foreground: oklch(0.845 0 164.055);
  --accent: oklch(0.321 0 180);
  --accent-foreground: oklch(0.845 0 164.055);
  --destructive: oklch(0.693 0.196 40.704);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.9 0.025 203.351);
  --chart-1: oklch(0.9 0.025 203.351);
  --chart-2: oklch(0.321 0 180);
  --chart-3: oklch(0.321 0 180);
  --chart-4: oklch(0.351 0 167.471);
  --chart-5: oklch(0.902 0.027 203.334);
}