Elderly for shadcn/ui

Elderly is a shadcn/ui theme built around a red primary color (#693b35) with orange accents (#695535). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#693b35) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080302black
#fbf9f9snow
Card
#fcfcfcsnow
#030303black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#693b35saddlebrown
#693b35saddlebrown
Primary foreground
#f0e2e0mistyrose
#f0e2e0mistyrose
Secondary
#693549dimgray
#693549dimgray
Secondary foreground
#f0e0e6mistyrose
#f0e0e6mistyrose
Muted
#eddee4gainsboro
#211218black
Muted foreground
#735963dimgray
#a68c96rosybrown
Accent
#695535darkolivegreen
#695535darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#922b01saddlebrown
#fd6326tomato
Destructive foreground
#fed7c7bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#693b35saddlebrown
#693b35saddlebrown

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.34:1AAA
Primary button7.30:1AAA
Secondary button7.48:1AAA
Muted text4.83:1AA
Accent7.10:1AAA
Destructive6.13:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.19:1AAA
Primary button7.30:1AAA
Secondary button7.48:1AAA
Muted text5.85:1AA
Accent7.10:1AAA
Destructive6.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.016 32.221);
  --muted: oklch(0.914 0.019 352.178);
  --muted-foreground: oklch(0.493 0.038 353.677);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.085 0.013 32.221);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.013 32.221);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.407 0.066 28.319);
  --primary-foreground: oklch(0.924 0.015 26.553);
  --secondary: oklch(0.402 0.078 356.867);
  --secondary-foreground: oklch(0.922 0.018 352.148);
  --accent: oklch(0.462 0.054 78.702);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.444 0.146 37.551);
  --destructive-foreground: oklch(0.908 0.049 42.738);
  --ring: oklch(0.407 0.066 28.319);
  --chart-1: oklch(0.407 0.066 28.319);
  --chart-2: oklch(0.402 0.078 356.867);
  --chart-3: oklch(0.462 0.054 78.702);
  --chart-4: oklch(0.429 0.084 356.943);
  --chart-5: oklch(0.407 0.073 28.559);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 26.455);
  --muted: oklch(0.205 0.028 355.291);
  --muted-foreground: oklch(0.667 0.035 353.034);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.992 0.001 26.448);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 26.448);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.407 0.066 28.319);
  --primary-foreground: oklch(0.924 0.015 26.553);
  --secondary: oklch(0.402 0.078 356.867);
  --secondary-foreground: oklch(0.922 0.018 352.148);
  --accent: oklch(0.462 0.054 78.702);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.69 0.2 39.467);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.407 0.066 28.319);
  --chart-1: oklch(0.407 0.066 28.319);
  --chart-2: oklch(0.402 0.078 356.867);
  --chart-3: oklch(0.462 0.054 78.702);
  --chart-4: oklch(0.429 0.084 356.943);
  --chart-5: oklch(0.407 0.073 28.559);
}