Requirement is a shadcn/ui theme built around a deep green primary color (#156a30) with deep purple accents (#6a154f). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#156a30) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #040b06black |
| Foreground | #040b06black | #ffffffwhite |
| Card | #f6fdf9mintcream | #050f08black |
| Card foreground | #030804black | #ffffffwhite |
| Popover | #fbfefcwhite | #040b06black |
| Popover foreground | #040b06black | #ffffffwhite |
| Primary | #156a30forestgreen | #156a30forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6a154fpurple | #6a154fpurple |
| Secondary foreground | #f2bfe2pink | #f2bfe2pink |
| Muted | #e1d6ddgainsboro | #291e26black |
| Muted foreground | #4b494adarkslategray | #b6b4b5silver |
| Accent | #6a154fpurple | #6a154fpurple |
| Accent foreground | #f2bfe2pink | #f2bfe2pink |
| Destructive | #91300dsaddlebrown | #eb602dchocolate |
| Destructive foreground | #fbdfd5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #156a30forestgreen | #156a30forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 6.65:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.25:1 | AA |
Paste this into your globals.css to use Requirement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 156.465);
--foreground: oklch(0.14 0.019 156.082);
--muted: oklch(0.887 0.015 336.893);
--muted-foreground: oklch(0.408 0.003 336.682);
--popover: oklch(0.994 0.005 156.465);
--popover-foreground: oklch(0.14 0.019 156.082);
--card: oklch(0.989 0.01 156.368);
--card-foreground: oklch(0.122 0.017 156.194);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.463 0.12 148.968);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.365 0.134 343.962);
--secondary-foreground: oklch(0.861 0.074 338.152);
--accent: oklch(0.365 0.134 343.962);
--accent-foreground: oklch(0.861 0.074 338.152);
--destructive: oklch(0.449 0.137 38.002);
--destructive-foreground: oklch(0.924 0.034 41.067);
--ring: oklch(0.463 0.12 148.968);
--chart-1: oklch(0.463 0.12 148.968);
--chart-2: oklch(0.365 0.134 343.962);
--chart-3: oklch(0.365 0.134 343.962);
--chart-4: oklch(0.395 0.146 344.101);
--chart-5: oklch(0.468 0.124 148.683);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.018 156.116);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.021 338.105);
--muted-foreground: oklch(0.772 0.002 336.615);
--popover: oklch(0.14 0.018 156.116);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.022 155.167);
--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.463 0.12 148.968);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.365 0.134 343.962);
--secondary-foreground: oklch(0.861 0.074 338.152);
--accent: oklch(0.365 0.134 343.962);
--accent-foreground: oklch(0.861 0.074 338.152);
--destructive: oklch(0.66 0.184 39.023);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.463 0.12 148.968);
--chart-1: oklch(0.463 0.12 148.968);
--chart-2: oklch(0.365 0.134 343.962);
--chart-3: oklch(0.365 0.134 343.962);
--chart-4: oklch(0.395 0.146 344.101);
--chart-5: oklch(0.468 0.124 148.683);
}