Decade for shadcn/ui

Decade is a shadcn/ui theme built around a muted yellow primary color (#867656) with muted blue accents (#566686). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted yellow primary (#867656) on a yellow-tinted background (#100c05).

Color palette

TokenLightDark
Background
#fcfbf8snow
#100c05black
Foreground
#000000black
#fdfdfcwhite
Card
#fcfbf8snow
#100c05black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfbf8snow
#100c05black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#867656dimgray
#867656dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#566686dimgray
#566686dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6d8dbgainsboro
#242529darkslategray
Muted foreground
#575e6bdimgray
#949ba8darkgray
Accent
#566686dimgray
#566686dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#931c01darkred
#fe380borangered
Destructive foreground
#ffd1c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#867656dimgray
#867656dimgray

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button4.44:1AA Large
Secondary button5.80:1AA
Muted text4.56:1AA
Accent5.80:1AA
Destructive6.31:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.16:1AAA
Primary button4.44:1AA Large
Secondary button5.80:1AA
Muted text5.46:1AA
Accent5.80:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 84.563);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.881 0.005 264.532);
  --muted-foreground: oklch(0.48 0.022 264.339);
  --popover: oklch(0.987 0.004 84.563);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.004 84.563);
  --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.571 0.05 84.311);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.509 0.055 263.896);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.509 0.055 263.896);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.431 0.158 33.068);
  --destructive-foreground: oklch(0.898 0.053 32.799);
  --ring: oklch(0.571 0.05 84.311);
  --chart-1: oklch(0.571 0.05 84.311);
  --chart-2: oklch(0.509 0.055 263.896);
  --chart-3: oklch(0.509 0.055 263.896);
  --chart-4: oklch(0.533 0.058 263.889);
  --chart-5: oklch(0.576 0.057 84.186);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.018 87.091);
  --foreground: oklch(0.993 0.002 84.555);
  --muted: oklch(0.266 0.007 264.446);
  --muted-foreground: oklch(0.688 0.02 264.433);
  --popover: oklch(0.156 0.018 87.091);
  --popover-foreground: oklch(0.993 0.002 84.555);
  --card: oklch(0.156 0.018 87.091);
  --card-foreground: oklch(0.993 0.002 84.555);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.571 0.05 84.311);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.509 0.055 263.896);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.509 0.055 263.896);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.236 32.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.571 0.05 84.311);
  --chart-1: oklch(0.571 0.05 84.311);
  --chart-2: oklch(0.509 0.055 263.896);
  --chart-3: oklch(0.509 0.055 263.896);
  --chart-4: oklch(0.533 0.058 263.889);
  --chart-5: oklch(0.576 0.057 84.186);
}