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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 9.02:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 5.55:1 | AA |
| Text on background | 19.87:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 9.02:1 | AAA |
| Muted text | 9.22:1 | AAA |
| Accent | 6.72:1 | AA |
| Destructive | 4.61:1 | AA |
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);
}