Amused for shadcn/ui

Amused is a shadcn/ui theme built around a muted yellow primary color (#9c895e) with neutral gray accents (#dedede). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted yellow primary (#9c895e) on a yellow-tinted background (#0c0903).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0c0903black
Foreground
#0c0904black
#fbfaf9snow
Card
#fdfbf7snow
#0c0903black
Card foreground
#0c0904black
#fbfaf9snow
Popover
#fdfbf7snow
#0c0903black
Popover foreground
#0c0904black
#fbfaf9snow
Primary
#9c895egray
#9c895egray
Primary foreground
#000000black
#000000black
Secondary
#dededegainsboro
#3b362bdarkslategray
Secondary foreground
#464544darkslategray
#d4cfc4lightgrey
Muted
#e6e1d6gainsboro
#292419black
Muted foreground
#53514bdarkslategray
#b4b2acdarkgray
Accent
#dededegainsboro
#3b362bdarkslategray
Accent foreground
#464544darkslategray
#d4cfc4lightgrey
Destructive
#832d01saddlebrown
#fd7430tomato
Destructive foreground
#fed0b8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c895egray
#9c895egray

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button6.18:1AA
Secondary button7.11:1AAA
Muted text6.09:1AA
Accent7.11:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.18:1AA
Secondary button7.73:1AAA
Muted text7.24:1AAA
Accent7.73:1AAA
Destructive7.72:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 87.449);
  --foreground: oklch(0.142 0.015 92.185);
  --muted: oklch(0.911 0.016 87.505);
  --muted-foreground: oklch(0.434 0.009 87.518);
  --popover: oklch(0.988 0.006 87.449);
  --popover-foreground: oklch(0.142 0.015 92.185);
  --card: oklch(0.988 0.006 87.449);
  --card-foreground: oklch(0.142 0.015 92.185);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.064 87.328);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.901 0.001 87.424);
  --secondary-foreground: oklch(0.391 0.002 87.443);
  --accent: oklch(0.901 0.001 87.424);
  --accent-foreground: oklch(0.391 0.002 87.443);
  --destructive: oklch(0.42 0.128 41);
  --destructive-foreground: oklch(0.891 0.062 48.009);
  --ring: oklch(0.638 0.064 87.328);
  --chart-1: oklch(0.638 0.064 87.328);
  --chart-2: oklch(0.901 0.001 87.424);
  --chart-3: oklch(0.901 0.001 87.424);
  --chart-4: oklch(0.924 0.001 87.422);
  --chart-5: oklch(0.644 0.071 87.208);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.018 92.604);
  --foreground: oklch(0.986 0.003 87.434);
  --muted: oklch(0.264 0.022 87.484);
  --muted-foreground: oklch(0.762 0.008 87.474);
  --popover: oklch(0.143 0.018 92.604);
  --popover-foreground: oklch(0.986 0.003 87.434);
  --card: oklch(0.143 0.018 92.604);
  --card-foreground: oklch(0.986 0.003 87.434);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.064 87.328);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.334 0.019 87.566);
  --secondary-foreground: oklch(0.855 0.015 87.505);
  --accent: oklch(0.334 0.019 87.566);
  --accent-foreground: oklch(0.855 0.015 87.505);
  --destructive: oklch(0.714 0.184 43.894);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.638 0.064 87.328);
  --chart-1: oklch(0.638 0.064 87.328);
  --chart-2: oklch(0.334 0.019 87.566);
  --chart-3: oklch(0.334 0.019 87.566);
  --chart-4: oklch(0.366 0.022 87.564);
  --chart-5: oklch(0.644 0.071 87.208);
}