Disappointment for shadcn/ui

Disappointment is a shadcn/ui theme built around a deep purple primary color (#260e2a) with deep pink accents (#2a0e21). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#260e2a) on a neutral background (#070208).

Color palette

TokenLightDark
Background
#ffffffwhite
#070208black
Foreground
#000000black
#fbf9fbsnow
Card
#fcfcfcsnow
#0b030cblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcfcfcsnow
#0b030cblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#260e2ablack
#260e2ablack
Primary foreground
#ce8fdbplum
#ce8fdbplum
Secondary
#170e2ablack
#170e2ablack
Secondary foreground
#a88fdbmediumpurple
#a88fdbmediumpurple
Muted
#ecebf0lavender
#110f14black
Muted foreground
#3f384cdarkslategray
#b9b3c7silver
Accent
#2a0e21black
#2a0e21black
Accent foreground
#db8fc2plum
#db8fc2plum
Destructive
#74190bmaroon
#eb4f37tomato
Destructive foreground
#f8c2b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#260e2ablack
#260e2ablack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.29:1AAA
Secondary button6.72:1AA
Muted text9.39:1AAA
Accent7.37:1AAA
Destructive7.09:1AAA
Dark mode
Text on background19.61:1AAA
Text on card19.86:1AAA
Primary button7.29:1AAA
Secondary button6.72:1AA
Muted text9.35:1AAA
Accent7.37:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.942 0.007 301.375);
  --muted-foreground: oklch(0.357 0.035 299.897);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.214 0.062 320.722);
  --primary-foreground: oklch(0.739 0.126 320.743);
  --secondary: oklch(0.193 0.056 296.138);
  --secondary-foreground: oklch(0.702 0.111 298.847);
  --accent: oklch(0.216 0.056 342.099);
  --accent-foreground: oklch(0.743 0.111 340.072);
  --destructive: oklch(0.369 0.127 31.657);
  --destructive-foreground: oklch(0.859 0.064 28.497);
  --ring: oklch(0.214 0.062 320.722);
  --chart-1: oklch(0.214 0.062 320.722);
  --chart-2: oklch(0.193 0.056 296.138);
  --chart-3: oklch(0.216 0.056 342.099);
  --chart-4: oklch(0.219 0.068 295.574);
  --chart-5: oklch(0.214 0.065 320.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.026 322.483);
  --foreground: oklch(0.983 0.004 320.538);
  --muted: oklch(0.174 0.011 300.518);
  --muted-foreground: oklch(0.778 0.029 300.896);
  --popover: oklch(0.121 0.029 322.153);
  --popover-foreground: oklch(0.992 0.002 320.535);
  --card: oklch(0.121 0.029 322.153);
  --card-foreground: oklch(0.992 0.002 320.535);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.214 0.062 320.722);
  --primary-foreground: oklch(0.739 0.126 320.743);
  --secondary: oklch(0.193 0.056 296.138);
  --secondary-foreground: oklch(0.702 0.111 298.847);
  --accent: oklch(0.216 0.056 342.099);
  --accent-foreground: oklch(0.743 0.111 340.072);
  --destructive: oklch(0.641 0.196 31.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.214 0.062 320.722);
  --chart-1: oklch(0.214 0.062 320.722);
  --chart-2: oklch(0.193 0.056 296.138);
  --chart-3: oklch(0.216 0.056 342.099);
  --chart-4: oklch(0.219 0.068 295.574);
  --chart-5: oklch(0.214 0.065 320.7);
}