Demand for shadcn/ui

Demand is a shadcn/ui theme built around a deep green primary color (#101406) with deep purple accents (#140610). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#101406) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#030401black
#f8f9f6whitesmoke
Card
#fbfcf8snow
#030303black
Card foreground
#000000black
#fafbf9snow
Popover
#fdfefbwhite
#000000black
Popover foreground
#030401black
#f8f9f6whitesmoke
Primary
#101406black
#101406black
Primary foreground
#8fb332yellowgreen
#8fb332yellowgreen
Secondary
#061014black
#061014black
Secondary foreground
#74bbd8skyblue
#74bbd8skyblue
Muted
#e0e8eblavender
#141c1fblack
Muted foreground
#3e4446darkslategray
#b9bec1silver
Accent
#140610black
#140610black
Accent foreground
#d874bborchid
#d874bborchid
Destructive
#cf160cfirebrick
#e7180dred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#101406black
#101406black

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.39:1AAA
Primary button7.70:1AAA
Secondary button9.02:1AAA
Muted text7.96:1AAA
Accent6.72:1AA
Destructive5.55:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.92:1AAA
Primary button7.70:1AAA
Secondary button9.02:1AAA
Muted text9.22:1AAA
Accent6.72:1AA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 119.358);
  --foreground: oklch(0.103 0.016 119.276);
  --muted: oklch(0.926 0.009 223.232);
  --muted-foreground: oklch(0.382 0.008 223.373);
  --popover: oklch(0.995 0.003 119.358);
  --popover-foreground: oklch(0.103 0.016 119.276);
  --card: oklch(0.989 0.006 119.412);
  --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.182 0.029 121.687);
  --primary-foreground: oklch(0.716 0.157 124.218);
  --secondary: oklch(0.164 0.018 223.693);
  --secondary-foreground: oklch(0.757 0.082 225.271);
  --accent: oklch(0.15 0.034 338.279);
  --accent-foreground: oklch(0.693 0.152 338.857);
  --destructive: oklch(0.544 0.214 29.45);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0.029 121.687);
  --chart-1: oklch(0.182 0.029 121.687);
  --chart-2: oklch(0.164 0.018 223.693);
  --chart-3: oklch(0.15 0.034 338.279);
  --chart-4: oklch(0.204 0.026 225.883);
  --chart-5: oklch(0.183 0.03 121.766);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.004 119.373);
  --muted: oklch(0.219 0.013 223.928);
  --muted-foreground: oklch(0.799 0.007 223.221);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.004 119.373);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.003 119.35);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.182 0.029 121.687);
  --primary-foreground: oklch(0.716 0.157 124.218);
  --secondary: oklch(0.164 0.018 223.693);
  --secondary-foreground: oklch(0.757 0.082 225.271);
  --accent: oklch(0.15 0.034 338.279);
  --accent-foreground: oklch(0.693 0.152 338.857);
  --destructive: oklch(0.59 0.233 29.467);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.182 0.029 121.687);
  --chart-1: oklch(0.182 0.029 121.687);
  --chart-2: oklch(0.164 0.018 223.693);
  --chart-3: oklch(0.15 0.034 338.279);
  --chart-4: oklch(0.204 0.026 225.883);
  --chart-5: oklch(0.183 0.03 121.766);
}