Elderly Sauterne for shadcn/ui

Elderly Sauterne is a shadcn/ui theme built around a yellow primary color (#c5a459) with muted teal accents (#5a726c). The light mode uses a yellow-tinted background (#efe9dc). Dark mode keeps the yellow primary (#c5a459) on an orange-tinted background (#221e1c).

Color palette

TokenLightDark
Background
#efe9dcantiquewhite
#221e1cblack
Foreground
#382d24darkslategray
#f2ede3linen
Card
#f6f5f4whitesmoke
#2d2925darkslategray
Card foreground
#302821darkslategray
#f2ede3linen
Popover
#f2f0eewhitesmoke
#322e29darkslategray
Popover foreground
#302821darkslategray
#f2ede3linen
Primary
#c5a459darkkhaki
#c5a459darkkhaki
Primary foreground
#241e19black
#241e19black
Secondary
#c6b295tan
#a98c60darkkhaki
Secondary foreground
#302821darkslategray
#241e19black
Muted
#e3e1ddgainsboro
#3d3834darkslategray
Muted foreground
#72655adimgray
#c0b7a5darkgray
Accent
#5a726cdimgray
#5e7872dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d14f2echocolate
#c94b2cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#cdc8c1silver
#4d4742darkslategray
Input
#cdc8c1silver
#4d4742darkslategray
Ring
#c5a459darkkhaki
#c5a459darkkhaki

Contrast

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

Light mode
Text on background11.09:1AAA
Text on card13.29:1AAA
Primary button6.93:1AA
Secondary button7.04:1AAA
Muted text4.32:1AA Large
Accent5.16:1AA
Destructive4.32:1AA Large
Dark mode
Text on background14.13:1AAA
Text on card12.42:1AAA
Primary button6.93:1AA
Secondary button5.18:1AA
Muted text5.84:1AA
Accent4.76:1AA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.936 0.019 87.513);
  --foreground: oklch(0.305 0.023 59.188);
  --muted: oklch(0.911 0.006 81.512);
  --muted-foreground: oklch(0.516 0.024 63.456);
  --popover: oklch(0.956 0.003 78.302);
  --popover-foreground: oklch(0.285 0.017 63.264);
  --card: oklch(0.971 0.002 81.514);
  --card-foreground: oklch(0.285 0.017 63.264);
  --border: oklch(0.835 0.011 78.269);
  --input: oklch(0.835 0.011 78.269);
  --primary: oklch(0.733 0.102 86.612);
  --primary-foreground: oklch(0.241 0.013 63.336);
  --secondary: oklch(0.774 0.046 77.945);
  --secondary-foreground: oklch(0.285 0.017 63.264);
  --accent: oklch(0.531 0.03 178.129);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.597 0.172 35.08);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.102 86.612);
  --chart-1: oklch(0.733 0.102 86.612);
  --chart-2: oklch(0.774 0.046 77.945);
  --chart-3: oklch(0.531 0.03 178.129);
  --chart-4: oklch(0.711 0.042 63.256);
  --chart-5: oklch(0.385 0.025 59.331);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.239 0.007 63.688);
  --foreground: oklch(0.948 0.015 84.584);
  --muted: oklch(0.343 0.01 63.716);
  --muted-foreground: oklch(0.782 0.027 84.59);
  --popover: oklch(0.303 0.01 63.639);
  --popover-foreground: oklch(0.948 0.015 84.584);
  --card: oklch(0.282 0.009 63.653);
  --card-foreground: oklch(0.948 0.015 84.584);
  --border: oklch(0.402 0.012 63.699);
  --input: oklch(0.402 0.012 63.699);
  --primary: oklch(0.733 0.102 86.612);
  --primary-foreground: oklch(0.241 0.013 63.336);
  --secondary: oklch(0.657 0.07 77.191);
  --secondary-foreground: oklch(0.241 0.013 63.336);
  --accent: oklch(0.55 0.032 178.119);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.579 0.166 35.087);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.102 86.612);
  --chart-1: oklch(0.733 0.102 86.612);
  --chart-2: oklch(0.657 0.07 77.191);
  --chart-3: oklch(0.55 0.032 178.119);
  --chart-4: oklch(0.575 0.041 63.071);
  --chart-5: oklch(0.948 0.015 84.584);
}