Aged for shadcn/ui

Aged is a shadcn/ui theme built around a green primary color (#638c45) with green accents (#458c4b). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#638c45) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#020401black
#f7f9f5whitesmoke
Card
#fcfcfcsnow
#050703black
Card foreground
#000000black
#fafbf9snow
Popover
#ffffffwhite
#020401black
Popover foreground
#020401black
#f7f9f5whitesmoke
Primary
#638c45olivedrab
#638c45olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#868c45olivedrab
#868c45olivedrab
Secondary foreground
#000000black
#000000black
Muted
#e4e5d6gainsboro
#28291ablack
Muted foreground
#474747darkslategray
#b8b8b8silver
Accent
#458c4bseagreen
#458c4bseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7b0c0amaroon
#ec1b18crimson
Destructive foreground
#fabebdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#638c45olivedrab
#638c45olivedrab

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button3.91:1AA Large
Secondary button5.85:1AA
Muted text7.31:1AAA
Accent4.10:1AA Large
Destructive6.95:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.46:1AAA
Primary button3.91:1AA Large
Secondary button5.85:1AA
Muted text7.47:1AAA
Accent4.10:1AA Large
Destructive4.42: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.099 0.015 130.416);
  --muted: oklch(0.918 0.02 110.659);
  --muted-foreground: oklch(0.399 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.015 130.416);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.593 0.11 133.637);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.619 0.095 113.084);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.578 0.121 145.485);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.372 0.143 28.392);
  --destructive-foreground: oklch(0.855 0.069 19.719);
  --ring: oklch(0.593 0.11 133.637);
  --chart-1: oklch(0.593 0.11 133.637);
  --chart-2: oklch(0.619 0.095 113.084);
  --chart-3: oklch(0.578 0.121 145.485);
  --chart-4: oklch(0.652 0.101 113.101);
  --chart-5: oklch(0.6 0.119 133.819);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.013 130.602);
  --foreground: oklch(0.98 0.006 131.774);
  --muted: oklch(0.274 0.027 112.018);
  --muted-foreground: oklch(0.781 0 180);
  --popover: oklch(0.098 0.013 130.602);
  --popover-foreground: oklch(0.98 0.006 131.774);
  --card: oklch(0.124 0.016 130.602);
  --card-foreground: oklch(0.987 0.004 131.757);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.593 0.11 133.637);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.619 0.095 113.084);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.578 0.121 145.485);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.601 0.235 28.665);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.593 0.11 133.637);
  --chart-1: oklch(0.593 0.11 133.637);
  --chart-2: oklch(0.619 0.095 113.084);
  --chart-3: oklch(0.578 0.121 145.485);
  --chart-4: oklch(0.652 0.101 113.101);
  --chart-5: oklch(0.6 0.119 133.819);
}