Amused for shadcn/ui

Amused is a shadcn/ui theme built around a muted deep red primary color (#1c1717) with muted deep cyan accents (#171c1c). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#1c1717) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0504black
Foreground
#000000black
#f9f6f6whitesmoke
Card
#fefbfbsnow
#0b0504black
Card foreground
#000000black
#f9f6f6whitesmoke
Popover
#fefbfbsnow
#0b0504black
Popover foreground
#000000black
#f9f6f6whitesmoke
Primary
#1c1717black
#1c1717black
Primary foreground
#bbacaadarkgray
#bbacaadarkgray
Secondary
#171c1cblack
#171c1cblack
Secondary foreground
#aab9bbsilver
#aab9bbsilver
Muted
#eef6f7whitesmoke
#081111black
Muted foreground
#4a6164dimgray
#9bb3b5darkgray
Accent
#171c1cblack
#171c1cblack
Accent foreground
#aab9bbsilver
#aab9bbsilver
Destructive
#6d2c08saddlebrown
#ef6f2achocolate
Destructive foreground
#f9c8aepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c1717black
#1c1717black

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button8.08:1AAA
Secondary button8.52:1AAA
Muted text6.01:1AA
Accent8.52:1AAA
Destructive6.92:1AA
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button8.08:1AAA
Secondary button8.52:1AAA
Muted text8.67:1AAA
Accent8.52:1AAA
Destructive6.95:1AA

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.003 25.018);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.967 0.009 204.919);
  --muted-foreground: oklch(0.475 0.028 204.692);
  --popover: oklch(0.991 0.003 25.018);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 25.018);
  --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.212 0.008 25.352);
  --primary-foreground: oklch(0.756 0.018 25.196);
  --secondary: oklch(0.22 0.008 204.77);
  --secondary-foreground: oklch(0.775 0.017 204.838);
  --accent: oklch(0.22 0.008 204.77);
  --accent-foreground: oklch(0.775 0.017 204.838);
  --destructive: oklch(0.38 0.103 44.024);
  --destructive-foreground: oklch(0.87 0.066 49.772);
  --ring: oklch(0.212 0.008 25.352);
  --chart-1: oklch(0.212 0.008 25.352);
  --chart-2: oklch(0.22 0.008 204.77);
  --chart-3: oklch(0.22 0.008 204.77);
  --chart-4: oklch(0.254 0.01 204.757);
  --chart-5: oklch(0.211 0.011 25.475);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 28.477);
  --foreground: oklch(0.976 0.003 25.012);
  --muted: oklch(0.167 0.013 204.568);
  --muted-foreground: oklch(0.749 0.026 204.769);
  --popover: oklch(0.125 0.013 28.477);
  --popover-foreground: oklch(0.976 0.003 25.012);
  --card: oklch(0.125 0.013 28.477);
  --card-foreground: oklch(0.976 0.003 25.012);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.212 0.008 25.352);
  --primary-foreground: oklch(0.756 0.018 25.196);
  --secondary: oklch(0.22 0.008 204.77);
  --secondary-foreground: oklch(0.775 0.017 204.838);
  --accent: oklch(0.22 0.008 204.77);
  --accent-foreground: oklch(0.775 0.017 204.838);
  --destructive: oklch(0.685 0.176 44.981);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.212 0.008 25.352);
  --chart-1: oklch(0.212 0.008 25.352);
  --chart-2: oklch(0.22 0.008 204.77);
  --chart-3: oklch(0.22 0.008 204.77);
  --chart-4: oklch(0.254 0.01 204.757);
  --chart-5: oklch(0.211 0.011 25.475);
}