Amused for shadcn/ui

Amused is a shadcn/ui theme built around a muted red primary color (#b0a2a0) with muted light red accents (#ded5d4). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted red primary (#b0a2a0) on a red-tinted background (#100604).

Color palette

TokenLightDark
Background
#fefcfbsnow
#100604black
Foreground
#150604black
#fbf9f8snow
Card
#fcf8f8snow
#140705black
Card foreground
#110503black
#fdfcfcsnow
Popover
#fcf8f8snow
#140705black
Popover foreground
#110503black
#fdfcfcsnow
Primary
#b0a2a0darkgray
#b0a2a0darkgray
Primary foreground
#110e0eblack
#110e0eblack
Secondary
#ded5d4gainsboro
#1b1413black
Secondary foreground
#483937darkslategray
#bea5a2darkgray
Muted
#e3dad9gainsboro
#261d1cblack
Muted foreground
#685f5edimgray
#a19897darkgray
Accent
#ded5d4gainsboro
#1b1413black
Accent foreground
#483937darkslategray
#bea5a2darkgray
Destructive
#9b2a0dbrown
#eb3f14orangered
Destructive foreground
#fce4demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b0a2a0darkgray
#b0a2a0darkgray

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.04:1AAA
Primary button7.80:1AAA
Secondary button7.58:1AAA
Muted text4.51:1AA
Accent7.58:1AAA
Destructive6.34:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.30:1AAA
Primary button7.80:1AAA
Secondary button7.88:1AAA
Muted text5.83:1AA
Accent7.88:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 25.008);
  --foreground: oklch(0.148 0.03 30.447);
  --muted: oklch(0.895 0.01 25.083);
  --muted-foreground: oklch(0.495 0.012 25.197);
  --popover: oklch(0.982 0.004 25.026);
  --popover-foreground: oklch(0.135 0.026 31.013);
  --card: oklch(0.982 0.004 25.026);
  --card-foreground: oklch(0.135 0.026 31.013);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.724 0.017 25.191);
  --primary-foreground: oklch(0.168 0.004 25.214);
  --secondary: oklch(0.879 0.01 25.085);
  --secondary-foreground: oklch(0.361 0.021 25.586);
  --accent: oklch(0.879 0.01 25.085);
  --accent-foreground: oklch(0.361 0.021 25.586);
  --destructive: oklch(0.459 0.154 34.286);
  --destructive-foreground: oklch(0.937 0.028 34.301);
  --ring: oklch(0.724 0.017 25.191);
  --chart-1: oklch(0.724 0.017 25.191);
  --chart-2: oklch(0.879 0.01 25.085);
  --chart-3: oklch(0.879 0.01 25.085);
  --chart-4: oklch(0.904 0.008 25.062);
  --chart-5: oklch(0.721 0.022 25.27);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.021 29.618);
  --foreground: oklch(0.983 0.003 25.014);
  --muted: oklch(0.242 0.014 25.578);
  --muted-foreground: oklch(0.686 0.011 25.122);
  --popover: oklch(0.149 0.025 29.049);
  --popover-foreground: oklch(0.992 0.001 25.002);
  --card: oklch(0.149 0.025 29.049);
  --card-foreground: oklch(0.992 0.001 25.002);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.724 0.017 25.191);
  --primary-foreground: oklch(0.168 0.004 25.214);
  --secondary: oklch(0.199 0.012 25.623);
  --secondary-foreground: oklch(0.742 0.03 25.376);
  --accent: oklch(0.199 0.012 25.623);
  --accent-foreground: oklch(0.742 0.03 25.376);
  --destructive: oklch(0.621 0.214 33.973);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.724 0.017 25.191);
  --chart-1: oklch(0.724 0.017 25.191);
  --chart-2: oklch(0.199 0.012 25.623);
  --chart-3: oklch(0.199 0.012 25.623);
  --chart-4: oklch(0.23 0.016 25.708);
  --chart-5: oklch(0.721 0.022 25.27);
}