Demanding for shadcn/ui

Demanding is a shadcn/ui theme built around a deep teal primary color (#0d2620) with muted light teal accents (#cedfdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0d2620) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b0ablack
Foreground
#030c0ablack
#f5faf9mintcream
Card
#ffffffwhite
#040b0ablack
Card foreground
#030c0ablack
#f5faf9mintcream
Popover
#ffffffwhite
#040b0ablack
Popover foreground
#030c0ablack
#f5faf9mintcream
Primary
#0d2620black
#0d2620black
Primary foreground
#40bfa2lightseagreen
#40bfa2lightseagreen
Secondary
#e5ebealavender
#2b2b2bdarkslategray
Secondary foreground
#455955darkslategray
#c4c4c4silver
Muted
#dcefeblavender
#231010black
Muted foreground
#455e58darkslategray
#baa1a1darkgray
Accent
#cedfdbgainsboro
#443c3cdarkslategray
Accent foreground
#304a44darkslategray
#dbd6d6gainsboro
Destructive
#6a1506maroon
#f4593etomato
Destructive foreground
#fab5a8lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d2620black
#0d2620black

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button6.97:1AA
Secondary button6.18:1AA
Muted text5.86:1AA
Accent6.92:1AA
Destructive7.09:1AAA
Dark mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button6.97:1AA
Secondary button8.07:1AAA
Muted text7.54:1AAA
Accent7.47:1AAA
Destructive6.35:1AA

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.144 0.018 180.184);
  --muted: oklch(0.937 0.021 180.325);
  --muted-foreground: oklch(0.46 0.031 178.908);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.018 180.184);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.018 180.184);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.247 0.034 175.961);
  --primary-foreground: oklch(0.728 0.119 174.094);
  --secondary: oklch(0.935 0.007 180.76);
  --secondary-foreground: oklch(0.447 0.026 179.182);
  --accent: oklch(0.889 0.019 180.344);
  --accent-foreground: oklch(0.386 0.033 178.245);
  --destructive: oklch(0.345 0.121 32.373);
  --destructive-foreground: oklch(0.833 0.083 30.157);
  --ring: oklch(0.247 0.034 175.961);
  --chart-1: oklch(0.247 0.034 175.961);
  --chart-2: oklch(0.935 0.007 180.76);
  --chart-3: oklch(0.889 0.019 180.344);
  --chart-4: oklch(0.957 0.004 180.831);
  --chart-5: oklch(0.25 0.035 175.675);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.014 180.644);
  --foreground: oklch(0.981 0.006 180.791);
  --muted: oklch(0.201 0.032 20.266);
  --muted-foreground: oklch(0.731 0.029 17.831);
  --popover: oklch(0.141 0.014 180.644);
  --popover-foreground: oklch(0.981 0.006 180.791);
  --card: oklch(0.141 0.014 180.644);
  --card-foreground: oklch(0.981 0.006 180.791);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.247 0.034 175.961);
  --primary-foreground: oklch(0.728 0.119 174.094);
  --secondary: oklch(0.29 0 180);
  --secondary-foreground: oklch(0.821 0 171.87);
  --accent: oklch(0.364 0.011 17.653);
  --accent-foreground: oklch(0.881 0.005 17.253);
  --destructive: oklch(0.666 0.194 32.275);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.247 0.034 175.961);
  --chart-1: oklch(0.247 0.034 175.961);
  --chart-2: oklch(0.29 0 180);
  --chart-3: oklch(0.364 0.011 17.653);
  --chart-4: oklch(0.321 0 180);
  --chart-5: oklch(0.25 0.035 175.675);
}