Demanding for shadcn/ui

Demanding is a shadcn/ui theme built around a yellow primary color (#847b24) with purple accents (#7b2484). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#847b24) on a yellow-tinted background (#0c0b03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0b03black
Foreground
#131206black
#ffffffwhite
Card
#ffffffwhite
#0c0b03black
Card foreground
#131206black
#ffffffwhite
Popover
#ffffffwhite
#0c0b03black
Popover foreground
#131206black
#ffffffwhite
Primary
#847b24olivedrab
#847b24olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#24847bteal
#24847bteal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d3dfdegainsboro
#202c2bdarkslategray
Muted foreground
#616b6adimgray
#949e9ddarkgray
Accent
#7b2484rebeccapurple
#7b2484rebeccapurple
Accent foreground
#f5e3f7lavender
#f5e3f7lavender
Destructive
#943205saddlebrown
#e94f07orangered
Destructive foreground
#fdddcebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#847b24olivedrab
#847b24olivedrab

Contrast

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

Light mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button4.35:1AA Large
Secondary button4.50:1AA
Muted text4.01:1AA Large
Accent7.10:1AAA
Destructive6.01:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button4.35:1AA Large
Secondary button4.50:1AA
Muted text5.22:1AA
Accent7.10:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.18 0.023 103.101);
  --muted: oklch(0.894 0.013 189.737);
  --muted-foreground: oklch(0.519 0.013 189.521);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.18 0.023 103.101);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.18 0.023 103.101);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.573 0.105 102.874);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.557 0.087 185.232);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.436 0.166 323.565);
  --accent-foreground: oklch(0.936 0.033 322.768);
  --destructive: oklch(0.457 0.141 39.843);
  --destructive-foreground: oklch(0.92 0.042 46.398);
  --ring: oklch(0.573 0.105 102.874);
  --chart-1: oklch(0.573 0.105 102.874);
  --chart-2: oklch(0.557 0.087 185.232);
  --chart-3: oklch(0.436 0.166 323.565);
  --chart-4: oklch(0.593 0.094 185.184);
  --chart-5: oklch(0.58 0.109 102.817);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.02 104.207);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.283 0.017 188.671);
  --muted-foreground: oklch(0.691 0.012 189.687);
  --popover: oklch(0.149 0.02 104.207);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.02 104.207);
  --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.573 0.105 102.874);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.557 0.087 185.232);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.436 0.166 323.565);
  --accent-foreground: oklch(0.936 0.033 322.768);
  --destructive: oklch(0.632 0.201 38.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.105 102.874);
  --chart-1: oklch(0.573 0.105 102.874);
  --chart-2: oklch(0.557 0.087 185.232);
  --chart-3: oklch(0.436 0.166 323.565);
  --chart-4: oklch(0.593 0.094 185.184);
  --chart-5: oklch(0.58 0.109 102.817);
}