Demand for shadcn/ui

Demand is a shadcn/ui theme built around a blue primary color (#9fb9cb) with green accents (#b9cb9f). The light mode uses a neutral background (#f7fafd). Dark mode keeps the blue primary (#9fb9cb) on a blue-tinted background (#04080b).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#04080bblack
Foreground
#040b10black
#fcfdfdwhite
Card
#f2f8fcaliceblue
#050b0fblack
Card foreground
#03080cblack
#ffffffwhite
Popover
#f2f8fcaliceblue
#050b0fblack
Popover foreground
#03080cblack
#ffffffwhite
Primary
#9fb9cblightsteelblue
#9fb9cblightsteelblue
Primary foreground
#141d24black
#141d24black
Secondary
#cb9fb9silver
#cb9fb9silver
Secondary foreground
#24141dblack
#24141dblack
Muted
#f2e3eclinen
#1c0d16black
Muted foreground
#4c3844darkslategray
#c7b3besilver
Accent
#b9cb9fsilver
#b9cb9fsilver
Accent foreground
#1d2414black
#1d2414black
Destructive
#a53d0dsaddlebrown
#e25412chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9fb9cblightsteelblue
#9fb9cblightsteelblue

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.82:1AAA
Primary button8.33:1AAA
Secondary button7.70:1AAA
Muted text8.67:1AAA
Accent9.21:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.77:1AAA
Primary button8.33:1AAA
Secondary button7.70:1AAA
Muted text9.50:1AAA
Accent9.21:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.006 238.442);
  --foreground: oklch(0.145 0.018 235.381);
  --muted: oklch(0.93 0.021 341.523);
  --muted-foreground: oklch(0.368 0.034 343.024);
  --popover: oklch(0.976 0.008 238.483);
  --popover-foreground: oklch(0.131 0.015 231.485);
  --card: oklch(0.976 0.008 238.483);
  --card-foreground: oklch(0.131 0.015 231.485);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.772 0.039 239.123);
  --primary-foreground: oklch(0.227 0.02 239.805);
  --secondary: oklch(0.751 0.063 342.861);
  --secondary-foreground: oklch(0.217 0.032 344.244);
  --accent: oklch(0.817 0.063 126.16);
  --accent-foreground: oklch(0.25 0.032 126.957);
  --destructive: oklch(0.501 0.147 40.783);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.772 0.039 239.123);
  --chart-1: oklch(0.772 0.039 239.123);
  --chart-2: oklch(0.751 0.063 342.861);
  --chart-3: oklch(0.817 0.063 126.16);
  --chart-4: oklch(0.777 0.056 342.61);
  --chart-5: oklch(0.772 0.043 239.206);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.012 232.431);
  --foreground: oklch(0.992 0.001 238.381);
  --muted: oklch(0.184 0.031 344.645);
  --muted-foreground: oklch(0.786 0.028 341.814);
  --popover: oklch(0.145 0.014 236.09);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.145 0.014 236.09);
  --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.772 0.039 239.123);
  --primary-foreground: oklch(0.227 0.02 239.805);
  --secondary: oklch(0.751 0.063 342.861);
  --secondary-foreground: oklch(0.217 0.032 344.244);
  --accent: oklch(0.817 0.063 126.16);
  --accent-foreground: oklch(0.25 0.032 126.957);
  --destructive: oklch(0.63 0.189 40.282);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.772 0.039 239.123);
  --chart-1: oklch(0.772 0.039 239.123);
  --chart-2: oklch(0.751 0.063 342.861);
  --chart-3: oklch(0.817 0.063 126.16);
  --chart-4: oklch(0.777 0.056 342.61);
  --chart-5: oklch(0.772 0.043 239.206);
}