Aged for shadcn/ui

Aged is a shadcn/ui theme built around a muted deep purple primary color (#543b52) with muted light purple accents (#d2b1d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#543b52) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d020cblack
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#0d020cblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0d020cblack
#ffffffwhite
Primary
#543b52darkslategray
#543b52darkslategray
Primary foreground
#e6dbe5gainsboro
#e6dbe5gainsboro
Secondary
#dccbdbthistle
#322a31darkslategray
Secondary foreground
#462f44darkslategray
#cbc2cbsilver
Muted
#e7e4e7gainsboro
#1b181bblack
Muted foreground
#504950darkslategray
#b6afb6darkgray
Accent
#d2b1d0thistle
#463544darkslategray
Accent foreground
#341e32darkslategray
#dcd0dbgainsboro
Destructive
#c8270efirebrick
#f15037tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#543b52darkslategray
#543b52darkslategray

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button7.35:1AAA
Secondary button7.77:1AAA
Muted text6.91:1AA
Accent7.95:1AAA
Destructive5.58:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.35:1AAA
Secondary button8.01:1AAA
Muted text8.20:1AAA
Accent7.63:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.035 329.979);
  --muted: oklch(0.922 0.004 328.111);
  --muted-foreground: oklch(0.414 0.015 328.441);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.035 329.979);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.035 329.979);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.389 0.049 329.296);
  --primary-foreground: oklch(0.903 0.017 328.259);
  --secondary: oklch(0.861 0.029 328.407);
  --secondary-foreground: oklch(0.341 0.049 329.453);
  --accent: oklch(0.799 0.056 328.767);
  --accent-foreground: oklch(0.271 0.048 329.764);
  --destructive: oklch(0.54 0.199 31.433);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.389 0.049 329.296);
  --chart-1: oklch(0.389 0.049 329.296);
  --chart-2: oklch(0.861 0.029 328.407);
  --chart-3: oklch(0.799 0.056 328.767);
  --chart-4: oklch(0.886 0.023 328.338);
  --chart-5: oklch(0.388 0.057 329.499);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.214 0.006 328.352);
  --muted-foreground: oklch(0.761 0.013 328.242);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.389 0.049 329.296);
  --primary-foreground: oklch(0.903 0.017 328.259);
  --secondary: oklch(0.297 0.016 328.608);
  --secondary-foreground: oklch(0.825 0.015 328.253);
  --accent: oklch(0.353 0.035 329.061);
  --accent-foreground: oklch(0.871 0.019 328.288);
  --destructive: oklch(0.65 0.202 31.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.389 0.049 329.296);
  --chart-1: oklch(0.389 0.049 329.296);
  --chart-2: oklch(0.297 0.016 328.608);
  --chart-3: oklch(0.353 0.035 329.061);
  --chart-4: oklch(0.326 0.018 328.627);
  --chart-5: oklch(0.388 0.057 329.499);
}