Possession for shadcn/ui

Possession is a shadcn/ui theme built around a muted light pink primary color (#eee3e9) with muted light green accents (#e3eee7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#eee3e9) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#ffffffwhite
#070305black
Foreground
#17030eblack
#ffffffwhite
Card
#fcfcfcsnow
#0a0508black
Card foreground
#12020cblack
#ffffffwhite
Popover
#fcfcfcsnow
#0a0508black
Popover foreground
#12020cblack
#ffffffwhite
Primary
#eee3e9linen
#eee3e9linen
Primary foreground
#623c52dimgray
#623c52dimgray
Secondary
#e3eee7lavender
#e3eee7lavender
Secondary foreground
#15231bblack
#15231bblack
Muted
#e0e5e3gainsboro
#1a1f1cblack
Muted foreground
#4f5451darkslategray
#abb0addarkgray
Accent
#e3eee7lavender
#e3eee7lavender
Accent foreground
#15231bblack
#15231bblack
Destructive
#b24506saddlebrown
#e95a07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eee3e9linen
#eee3e9linen

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.76:1AAA
Primary button7.31:1AAA
Secondary button13.65:1AAA
Muted text6.08:1AA
Accent13.65:1AAA
Destructive5.60:1AA
Dark mode
Text on background20.47:1AAA
Text on card20.21:1AAA
Primary button7.31:1AAA
Secondary button13.65:1AAA
Muted text7.63:1AAA
Accent13.65:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.045 345.315);
  --muted: oklch(0.919 0.007 160.841);
  --muted-foreground: oklch(0.441 0.008 160.593);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.132 0.04 343.816);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.04 343.816);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.925 0.015 341.379);
  --primary-foreground: oklch(0.409 0.062 344.305);
  --secondary: oklch(0.938 0.014 160.645);
  --secondary-foreground: oklch(0.24 0.024 158.374);
  --accent: oklch(0.938 0.014 160.645);
  --accent-foreground: oklch(0.24 0.024 158.374);
  --destructive: oklch(0.532 0.155 42.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.925 0.015 341.379);
  --chart-1: oklch(0.925 0.015 341.379);
  --chart-2: oklch(0.938 0.014 160.645);
  --chart-3: oklch(0.938 0.014 160.645);
  --chart-4: oklch(0.959 0.01 160.775);
  --chart-5: oklch(0.924 0.016 341.425);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.012 341.061);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.009 160.026);
  --muted-foreground: oklch(0.752 0.007 160.799);
  --popover: oklch(0.126 0.014 341.061);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.014 341.061);
  --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.925 0.015 341.379);
  --primary-foreground: oklch(0.409 0.062 344.305);
  --secondary: oklch(0.938 0.014 160.645);
  --secondary-foreground: oklch(0.24 0.024 158.374);
  --accent: oklch(0.938 0.014 160.645);
  --accent-foreground: oklch(0.24 0.024 158.374);
  --destructive: oklch(0.646 0.192 42.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.925 0.015 341.379);
  --chart-1: oklch(0.925 0.015 341.379);
  --chart-2: oklch(0.938 0.014 160.645);
  --chart-3: oklch(0.938 0.014 160.645);
  --chart-4: oklch(0.959 0.01 160.775);
  --chart-5: oklch(0.924 0.016 341.425);
}