Happening for shadcn/ui

Happening is a shadcn/ui theme built around a muted deep pink primary color (#332429) with muted pink accents (#c6a4b0). The light mode uses a neutral background (#fcf7f9). Dark mode keeps the muted deep pink primary (#332429) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fcf7f9snow
#040102black
Foreground
#100509black
#ffffffwhite
Card
#fbf4f6lavenderblush
#080204black
Card foreground
#0c0306black
#ffffffwhite
Popover
#fcf7f9snow
#040102black
Popover foreground
#100509black
#ffffffwhite
Primary
#332429darkslategray
#332429darkslategray
Primary foreground
#cfbac1silver
#cfbac1silver
Secondary
#d5c3c9thistle
#181617black
Secondary foreground
#3c2a30darkslategray
#b3adafdarkgray
Muted
#ede8ealinen
#171214black
Muted foreground
#665259dimgray
#ad99a0darkgray
Accent
#c6a4b0darkgray
#2a2325darkslategray
Accent foreground
#23161ablack
#c5babesilver
Destructive
#a61c0cfirebrick
#f15341tomato
Destructive foreground
#fde9e7linen
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#332429darkslategray
#332429darkslategray

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.75:1AAA
Primary button8.05:1AAA
Secondary button7.96:1AAA
Muted text5.94:1AA
Accent7.77:1AAA
Destructive6.44:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.55:1AAA
Primary button8.05:1AAA
Secondary button8.16:1AAA
Muted text6.93:1AA
Accent8.17:1AAA
Destructive6.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 353.74);
  --foreground: oklch(0.135 0.025 354.987);
  --muted: oklch(0.935 0.006 353.765);
  --muted-foreground: oklch(0.46 0.029 355.309);
  --popover: oklch(0.982 0.006 353.74);
  --popover-foreground: oklch(0.135 0.025 354.987);
  --card: oklch(0.973 0.009 353.826);
  --card-foreground: oklch(0.121 0.022 353.45);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.279 0.025 356.065);
  --primary-foreground: oklch(0.808 0.026 354.48);
  --secondary: oklch(0.834 0.022 354.333);
  --secondary-foreground: oklch(0.308 0.029 356.163);
  --accent: oklch(0.753 0.043 355.157);
  --accent-foreground: oklch(0.217 0.022 356.393);
  --destructive: oklch(0.468 0.175 30.518);
  --destructive-foreground: oklch(0.951 0.022 25.191);
  --ring: oklch(0.279 0.025 356.065);
  --chart-1: oklch(0.279 0.025 356.065);
  --chart-2: oklch(0.834 0.022 354.333);
  --chart-3: oklch(0.753 0.043 355.157);
  --chart-4: oklch(0.859 0.019 354.197);
  --chart-5: oklch(0.278 0.03 356.494);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.016 353.183);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.009 354.97);
  --muted-foreground: oklch(0.703 0.026 354.604);
  --popover: oklch(0.083 0.016 353.183);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.02 353.183);
  --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.279 0.025 356.065);
  --primary-foreground: oklch(0.808 0.026 354.48);
  --secondary: oklch(0.203 0.003 354.021);
  --secondary-foreground: oklch(0.753 0.008 353.873);
  --accent: oklch(0.264 0.011 354.766);
  --accent-foreground: oklch(0.798 0.014 354.077);
  --destructive: oklch(0.654 0.197 29.652);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.279 0.025 356.065);
  --chart-1: oklch(0.279 0.025 356.065);
  --chart-2: oklch(0.203 0.003 354.021);
  --chart-3: oklch(0.264 0.011 354.766);
  --chart-4: oklch(0.235 0.004 354.068);
  --chart-5: oklch(0.278 0.03 356.494);
}