Demanding for shadcn/ui

Demanding is a shadcn/ui theme built around a muted deep purple primary color (#191017) with muted deep pink accents (#191012). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted deep purple primary (#191017) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#12020fblack
#fdfcfdwhite
Card
#fefbfewhite
#000000black
Card foreground
#12020fblack
#fdfcfdwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#12020fblack
#fdfcfdwhite
Primary
#191017black
#191017black
Primary foreground
#c19ab9darkgray
#c19ab9darkgray
Secondary
#161019black
#161019black
Secondary foreground
#b59ac1darkgray
#b59ac1darkgray
Muted
#ede4f1lavender
#170e1bblack
Muted foreground
#413d42darkslategray
#c0bdc2silver
Accent
#191012black
#191012black
Accent foreground
#c19aa6rosybrown
#c19aa6rosybrown
Destructive
#b21d06firebrick
#f94a2ftomato
Destructive foreground
#feeeeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#191017black
#191017black

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.62:1AAA
Secondary button7.45:1AAA
Muted text8.62:1AAA
Accent7.52:1AAA
Destructive6.07:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.62:1AAA
Secondary button7.45:1AAA
Muted text10.13:1AAA
Accent7.52:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 332.085);
  --foreground: oklch(0.135 0.044 334.865);
  --muted: oklch(0.93 0.019 315.947);
  --muted-foreground: oklch(0.366 0.01 315.926);
  --popover: oklch(0.991 0.005 332.085);
  --popover-foreground: oklch(0.135 0.044 334.865);
  --card: oklch(0.991 0.005 332.085);
  --card-foreground: oklch(0.135 0.044 334.865);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.187 0.022 333.654);
  --primary-foreground: oklch(0.731 0.063 333.228);
  --secondary: oklch(0.184 0.022 315.583);
  --secondary-foreground: oklch(0.723 0.063 315.707);
  --accent: oklch(0.185 0.017 359.242);
  --accent-foreground: oklch(0.725 0.049 358.537);
  --destructive: oklch(0.491 0.186 31.289);
  --destructive-foreground: oklch(0.961 0.018 28.039);
  --ring: oklch(0.187 0.022 333.654);
  --chart-1: oklch(0.187 0.022 333.654);
  --chart-2: oklch(0.184 0.022 315.583);
  --chart-3: oklch(0.185 0.017 359.242);
  --chart-4: oklch(0.215 0.029 315.522);
  --chart-5: oklch(0.187 0.025 333.852);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 332.019);
  --muted: oklch(0.182 0.029 315.436);
  --muted-foreground: oklch(0.802 0.008 315.985);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 332.019);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 332.019);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.187 0.022 333.654);
  --primary-foreground: oklch(0.731 0.063 333.228);
  --secondary: oklch(0.184 0.022 315.583);
  --secondary-foreground: oklch(0.723 0.063 315.707);
  --accent: oklch(0.185 0.017 359.242);
  --accent-foreground: oklch(0.725 0.049 358.537);
  --destructive: oklch(0.656 0.215 31.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.187 0.022 333.654);
  --chart-1: oklch(0.187 0.022 333.654);
  --chart-2: oklch(0.184 0.022 315.583);
  --chart-3: oklch(0.185 0.017 359.242);
  --chart-4: oklch(0.215 0.029 315.522);
  --chart-5: oklch(0.187 0.025 333.852);
}