Amusing for shadcn/ui

Amusing is a shadcn/ui theme built around a deep violet primary color (#160a29) with neutral gray accents (#e3e2e4). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the deep violet primary (#160a29) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#000000black
Foreground
#090311black
#faf8fbghostwhite
Card
#f7f4fbghostwhite
#030303black
Card foreground
#06030dblack
#fcfcfdwhite
Popover
#f7f4fbghostwhite
#030303black
Popover foreground
#06030dblack
#fcfcfdwhite
Primary
#160a29black
#160a29black
Primary foreground
#a783e2mediumpurple
#a783e2mediumpurple
Secondary
#e3e2e4gainsboro
#16131bblack
Secondary foreground
#4a484bdarkslategray
#aca1bfdarkgray
Muted
#efeef1whitesmoke
#0f0e11black
Muted foreground
#4b4851darkslategray
#b1aeb7darkgray
Accent
#e3e2e4gainsboro
#16131bblack
Accent foreground
#4a484bdarkslategray
#aca1bfdarkgray
Destructive
#cf0b07firebrick
#f72f2bcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160a29black
#160a29black

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card18.75:1AAA
Primary button6.30:1AA
Secondary button7.02:1AAA
Muted text7.77:1AAA
Accent7.02:1AAA
Destructive5.68:1AA
Dark mode
Text on background19.88:1AAA
Text on card20.16:1AAA
Primary button6.30:1AA
Secondary button7.54:1AAA
Muted text8.80:1AAA
Accent7.54:1AAA
Destructive3.88: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.98 0.006 303.542);
  --foreground: oklch(0.123 0.035 302.92);
  --muted: oklch(0.952 0.003 303.587);
  --muted-foreground: oklch(0.408 0.016 303.068);
  --popover: oklch(0.971 0.01 303.491);
  --popover-foreground: oklch(0.111 0.03 304.432);
  --card: oklch(0.971 0.01 303.491);
  --card-foreground: oklch(0.111 0.03 304.432);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.182 0.062 297.585);
  --primary-foreground: oklch(0.683 0.14 300.408);
  --secondary: oklch(0.915 0.002 303.614);
  --secondary-foreground: oklch(0.406 0.005 303.454);
  --accent: oklch(0.915 0.002 303.614);
  --accent-foreground: oklch(0.406 0.005 303.454);
  --destructive: oklch(0.539 0.217 29.103);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0.062 297.585);
  --chart-1: oklch(0.182 0.062 297.585);
  --chart-2: oklch(0.915 0.002 303.614);
  --chart-3: oklch(0.915 0.002 303.614);
  --chart-4: oklch(0.938 0.001 303.621);
  --chart-5: oklch(0.181 0.064 297.195);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.004 303.576);
  --muted: oklch(0.166 0.005 303.172);
  --muted-foreground: oklch(0.756 0.014 303.375);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 303.608);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 303.608);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.182 0.062 297.585);
  --primary-foreground: oklch(0.683 0.14 300.408);
  --secondary: oklch(0.193 0.018 302.246);
  --secondary-foreground: oklch(0.728 0.045 302.731);
  --accent: oklch(0.193 0.018 302.246);
  --accent-foreground: oklch(0.728 0.045 302.731);
  --destructive: oklch(0.632 0.234 27.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0.062 297.585);
  --chart-1: oklch(0.182 0.062 297.585);
  --chart-2: oklch(0.193 0.018 302.246);
  --chart-3: oklch(0.193 0.018 302.246);
  --chart-4: oklch(0.223 0.023 302.086);
  --chart-5: oklch(0.181 0.064 297.195);
}