Demanding for shadcn/ui

Demanding is a shadcn/ui theme built around a vivid light green primary color (#e3fda0) with vivid light green accents (#b4fda0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#e3fda0) on a green-tinted background (#090b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#090b04black
Foreground
#060802black
#f8f9f6whitesmoke
Card
#fcfcfcsnow
#0c0f05black
Card foreground
#030401black
#fafbf9snow
Popover
#ffffffwhite
#090b04black
Popover foreground
#060802black
#f8f9f6whitesmoke
Primary
#e3fda0palegoldenrod
#e3fda0palegoldenrod
Primary foreground
#040500black
#040500black
Secondary
#fde9a0navajowhite
#fde9a0navajowhite
Secondary foreground
#695302saddlebrown
#695302saddlebrown
Muted
#f6f4efwhitesmoke
#100f09black
Muted foreground
#4a4840darkslategray
#bfbdb5silver
Accent
#b4fda0palegreen
#b4fda0palegreen
Accent foreground
#010500black
#010500black
Destructive
#be3904firebrick
#fa5d1eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3fda0palegoldenrod
#e3fda0palegoldenrod

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.11:1AAA
Primary button18.32:1AAA
Secondary button6.10:1AA
Muted text8.33:1AAA
Accent17.11:1AAA
Destructive5.57:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.61:1AAA
Primary button18.32:1AAA
Secondary button6.10:1AA
Muted text10.21:1AAA
Accent17.11:1AAA
Destructive6.64: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.13 0.021 119.275);
  --muted: oklch(0.967 0.007 93.946);
  --muted-foreground: oklch(0.4 0.013 94.178);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.021 119.275);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.016 119.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.954 0.121 121.599);
  --primary-foreground: oklch(0.108 0.025 119.264);
  --secondary: oklch(0.934 0.094 94.493);
  --secondary-foreground: oklch(0.451 0.091 90.45);
  --accent: oklch(0.924 0.142 139.036);
  --accent-foreground: oklch(0.103 0.029 135.986);
  --destructive: oklch(0.537 0.177 37.04);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.954 0.121 121.599);
  --chart-1: oklch(0.954 0.121 121.599);
  --chart-2: oklch(0.934 0.094 94.493);
  --chart-3: oklch(0.924 0.142 139.036);
  --chart-4: oklch(0.943 0.08 94.482);
  --chart-5: oklch(0.957 0.124 121.664);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.018 119.44);
  --foreground: oklch(0.981 0.005 119.387);
  --muted: oklch(0.167 0.011 94.446);
  --muted-foreground: oklch(0.798 0.011 94.007);
  --popover: oklch(0.145 0.018 119.44);
  --popover-foreground: oklch(0.981 0.005 119.387);
  --card: oklch(0.162 0.021 120.692);
  --card-foreground: oklch(0.987 0.003 119.359);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.954 0.121 121.599);
  --primary-foreground: oklch(0.108 0.025 119.264);
  --secondary: oklch(0.934 0.094 94.493);
  --secondary-foreground: oklch(0.451 0.091 90.45);
  --accent: oklch(0.924 0.142 139.036);
  --accent-foreground: oklch(0.103 0.029 135.986);
  --destructive: oklch(0.678 0.204 38.909);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.954 0.121 121.599);
  --chart-1: oklch(0.954 0.121 121.599);
  --chart-2: oklch(0.934 0.094 94.493);
  --chart-3: oklch(0.924 0.142 139.036);
  --chart-4: oklch(0.943 0.08 94.482);
  --chart-5: oklch(0.957 0.124 121.664);
}