Oldie for shadcn/ui

Oldie is a shadcn/ui theme built around a muted green primary color (#699174) with muted orange accents (#917469). The light mode uses a neutral background (#f7fcf9). Dark mode keeps the muted green primary (#699174) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fcf9mintcream
#000000black
Foreground
#010903black
#f6f9f7whitesmoke
Card
#f7fcf9mintcream
#000000black
Card foreground
#010903black
#f6f9f7whitesmoke
Popover
#f7fcf9mintcream
#000000black
Popover foreground
#010903black
#f6f9f7whitesmoke
Primary
#699174gray
#699174gray
Primary foreground
#000000black
#000000black
Secondary
#746991slategray
#746991slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d5cde9gainsboro
#1e1632midnightblue
Muted foreground
#4c455edarkslategray
#a8a1badarkgray
Accent
#917469gray
#917469gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d01006firebrick
#f8352aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#699174gray
#699174gray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button5.90:1AA
Secondary button5.03:1AA
Muted text5.94:1AA
Accent4.26:1AA Large
Destructive5.59:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button5.90:1AA
Secondary button5.03:1AA
Muted text6.98:1AA
Accent4.26:1AA Large
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 155.057);
  --foreground: oklch(0.125 0.025 154.479);
  --muted: oklch(0.864 0.039 298.527);
  --muted-foreground: oklch(0.409 0.041 297.535);
  --popover: oklch(0.988 0.007 155.057);
  --popover-foreground: oklch(0.125 0.025 154.479);
  --card: oklch(0.988 0.007 155.057);
  --card-foreground: oklch(0.125 0.025 154.479);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.619 0.062 153.186);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.546 0.063 297.287);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.584 0.04 42.662);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.542 0.217 29.535);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.062 153.186);
  --chart-1: oklch(0.619 0.062 153.186);
  --chart-2: oklch(0.546 0.063 297.287);
  --chart-3: oklch(0.584 0.04 42.662);
  --chart-4: oklch(0.573 0.061 297.449);
  --chart-5: oklch(0.625 0.073 152.811);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.004 155.114);
  --muted: oklch(0.225 0.053 294.812);
  --muted-foreground: oklch(0.723 0.036 298.45);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.004 155.114);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.004 155.114);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.619 0.062 153.186);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.546 0.063 297.287);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.584 0.04 42.662);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.231 28.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.062 153.186);
  --chart-1: oklch(0.619 0.062 153.186);
  --chart-2: oklch(0.546 0.063 297.287);
  --chart-3: oklch(0.584 0.04 42.662);
  --chart-4: oklch(0.573 0.061 297.449);
  --chart-5: oklch(0.625 0.073 152.811);
}