Aged for shadcn/ui

Aged is a shadcn/ui theme built around a muted light yellow primary color (#d3cfc5) with muted light violet accents (#cfc5d3). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted light yellow primary (#d3cfc5) on a yellow-tinted background (#0b0904).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0b0904black
Foreground
#040301black
#ffffffwhite
Card
#fdfbf7snow
#0b0904black
Card foreground
#040301black
#ffffffwhite
Popover
#fdfbf7snow
#0b0904black
Popover foreground
#040301black
#ffffffwhite
Primary
#d3cfc5lightgrey
#d3cfc5lightgrey
Primary foreground
#3a362cdarkslategray
#3a362cdarkslategray
Secondary
#c5d3cflightgrey
#c5d3cflightgrey
Secondary foreground
#2c3a36darkslategray
#2c3a36darkslategray
Muted
#e5ebe9lavender
#141a18black
Muted foreground
#506d64dimgray
#92afa7darkgray
Accent
#cfc5d3thistle
#cfc5d3thistle
Accent foreground
#362c3adarkslategray
#362c3adarkslategray
Destructive
#811709maroon
#ef371forangered
Destructive foreground
#fbc8c1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3cfc5lightgrey
#d3cfc5lightgrey

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button7.74:1AAA
Secondary button7.70:1AAA
Muted text4.68:1AA
Accent7.96:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.74:1AAA
Secondary button7.70:1AAA
Muted text7.49:1AAA
Accent7.96:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 88.829);
  --foreground: oklch(0.1 0.014 95.017);
  --muted: oklch(0.935 0.006 177.52);
  --muted-foreground: oklch(0.508 0.036 175.496);
  --popover: oklch(0.989 0.006 88.829);
  --popover-foreground: oklch(0.1 0.014 95.017);
  --card: oklch(0.989 0.006 88.829);
  --card-foreground: oklch(0.1 0.014 95.017);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.855 0.015 88.894);
  --primary-foreground: oklch(0.334 0.018 89.013);
  --secondary: oklch(0.855 0.016 177.149);
  --secondary-foreground: oklch(0.335 0.02 175.844);
  --accent: oklch(0.836 0.023 316.53);
  --accent-foreground: oklch(0.31 0.029 316.335);
  --destructive: oklch(0.392 0.142 31.036);
  --destructive-foreground: oklch(0.875 0.059 27.038);
  --ring: oklch(0.855 0.015 88.894);
  --chart-1: oklch(0.855 0.015 88.894);
  --chart-2: oklch(0.855 0.016 177.149);
  --chart-3: oklch(0.836 0.023 316.53);
  --chart-4: oklch(0.877 0.014 177.249);
  --chart-5: oklch(0.857 0.018 88.912);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 92.853);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.009 176.438);
  --muted-foreground: oklch(0.73 0.033 176.328);
  --popover: oklch(0.14 0.013 92.853);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.013 92.853);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.855 0.015 88.894);
  --primary-foreground: oklch(0.334 0.018 89.013);
  --secondary: oklch(0.855 0.016 177.149);
  --secondary-foreground: oklch(0.335 0.02 175.844);
  --accent: oklch(0.836 0.023 316.53);
  --accent-foreground: oklch(0.31 0.029 316.335);
  --destructive: oklch(0.623 0.223 31.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.855 0.015 88.894);
  --chart-1: oklch(0.855 0.015 88.894);
  --chart-2: oklch(0.855 0.016 177.149);
  --chart-3: oklch(0.836 0.023 316.53);
  --chart-4: oklch(0.877 0.014 177.249);
  --chart-5: oklch(0.857 0.018 88.912);
}