Amusing for shadcn/ui

Amusing is a shadcn/ui theme built around a purple primary color (#d695c5) with cyan accents (#95c5d6). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the purple primary (#d695c5) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#040103black
Foreground
#0d020ablack
#ffffffwhite
Card
#faf5f9whitesmoke
#080207black
Card foreground
#090107black
#ffffffwhite
Popover
#faf5f9whitesmoke
#080207black
Popover foreground
#090107black
#ffffffwhite
Primary
#d695c5plum
#d695c5plum
Primary foreground
#281022black
#281022black
Secondary
#c5d695tan
#c5d695tan
Secondary foreground
#222810black
#222810black
Muted
#e0e7cbgainsboro
#2d3418darkslategray
Muted foreground
#454936darkslategray
#c4c9b6silver
Accent
#95c5d6skyblue
#95c5d6skyblue
Accent foreground
#102228black
#102228black
Destructive
#bd0e05firebrick
#fa382eorangered
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d695c5plum
#d695c5plum

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.07:1AAA
Primary button7.51:1AAA
Secondary button9.71:1AAA
Muted text7.27:1AAA
Accent8.77:1AAA
Destructive6.11:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.53:1AAA
Primary button7.51:1AAA
Secondary button9.71:1AAA
Muted text7.61:1AAA
Accent8.77:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 333.971);
  --foreground: oklch(0.12 0.036 335.544);
  --muted: oklch(0.915 0.038 118.57);
  --muted-foreground: oklch(0.396 0.031 119.255);
  --popover: oklch(0.974 0.008 334.019);
  --popover-foreground: oklch(0.104 0.031 334.852);
  --card: oklch(0.974 0.008 334.019);
  --card-foreground: oklch(0.104 0.031 334.852);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.747 0.101 335.998);
  --primary-foreground: oklch(0.217 0.051 337.496);
  --secondary: oklch(0.847 0.088 119.711);
  --secondary-foreground: oklch(0.265 0.042 120.921);
  --accent: oklch(0.796 0.056 220.384);
  --accent-foreground: oklch(0.24 0.027 221.548);
  --destructive: oklch(0.505 0.202 29.583);
  --destructive-foreground: oklch(0.979 0.01 21.018);
  --ring: oklch(0.747 0.101 335.998);
  --chart-1: oklch(0.747 0.101 335.998);
  --chart-2: oklch(0.847 0.088 119.711);
  --chart-3: oklch(0.796 0.056 220.384);
  --chart-4: oklch(0.863 0.079 119.476);
  --chart-5: oklch(0.746 0.107 336.137);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.019 334.628);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.312 0.047 120.714);
  --muted-foreground: oklch(0.826 0.027 118.397);
  --popover: oklch(0.107 0.024 334.628);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.107 0.024 334.628);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.747 0.101 335.998);
  --primary-foreground: oklch(0.217 0.051 337.496);
  --secondary: oklch(0.847 0.088 119.711);
  --secondary-foreground: oklch(0.265 0.042 120.921);
  --accent: oklch(0.796 0.056 220.384);
  --accent-foreground: oklch(0.24 0.027 221.548);
  --destructive: oklch(0.643 0.229 28.589);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.747 0.101 335.998);
  --chart-1: oklch(0.747 0.101 335.998);
  --chart-2: oklch(0.847 0.088 119.711);
  --chart-3: oklch(0.796 0.056 220.384);
  --chart-4: oklch(0.863 0.079 119.476);
  --chart-5: oklch(0.746 0.107 336.137);
}