Need is a shadcn/ui theme built around a vivid deep green primary color (#464f07) with vivid deep indigo accents (#11074f). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the vivid deep green primary (#464f07) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #101203black | #f9faf5whitesmoke |
| Card | #fbfcf8snow | #000000black |
| Card foreground | #101203black | #f9faf5whitesmoke |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #101203black | #f9faf5whitesmoke |
| Primary | #464f07darkolivegreen | #464f07darkolivegreen |
| Primary foreground | #d4ec36greenyellow | #d4ec36greenyellow |
| Secondary | #11074fmidnightblue | #11074fmidnightblue |
| Secondary foreground | #a194f5mediumpurple | #a194f5mediumpurple |
| Muted | #cfcbe7thistle | #1c1834midnightblue |
| Muted foreground | #55545fdimgray | #a2a0abdarkgray |
| Accent | #11074fmidnightblue | #11074fmidnightblue |
| Accent foreground | #a194f5mediumpurple | #a194f5mediumpurple |
| Destructive | #b50f0dfirebrick | #f24340tomato |
| Destructive foreground | #fef6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #464f07darkolivegreen | #464f07darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.35:1 | AAA |
| Text on card | 18.35:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 6.89:1 | AA |
| Muted text | 4.72:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 6.47:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.63:1 | AA |
| Secondary button | 6.89:1 | AA |
| Muted text | 6.60:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Need in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 112.641);
--foreground: oklch(0.174 0.032 115.169);
--muted: oklch(0.854 0.038 291.692);
--muted-foreground: oklch(0.451 0.017 291.81);
--popover: oklch(0.989 0.005 112.641);
--popover-foreground: oklch(0.174 0.032 115.169);
--card: oklch(0.989 0.005 112.641);
--card-foreground: oklch(0.174 0.032 115.169);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.406 0.09 117.635);
--primary-foreground: oklch(0.896 0.193 117.323);
--secondary: oklch(0.217 0.12 275.799);
--secondary-foreground: oklch(0.717 0.14 288.476);
--accent: oklch(0.217 0.12 275.799);
--accent-foreground: oklch(0.717 0.14 288.476);
--destructive: oklch(0.491 0.194 28.809);
--destructive-foreground: oklch(0.979 0.009 18.509);
--ring: oklch(0.406 0.09 117.635);
--chart-1: oklch(0.406 0.09 117.635);
--chart-2: oklch(0.217 0.12 275.799);
--chart-3: oklch(0.217 0.12 275.799);
--chart-4: oklch(0.24 0.136 274.881);
--chart-5: oklch(0.411 0.092 117.753);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.006 112.667);
--muted: oklch(0.231 0.052 287.724);
--muted-foreground: oklch(0.712 0.015 292.133);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.006 112.667);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.006 112.667);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.406 0.09 117.635);
--primary-foreground: oklch(0.896 0.193 117.323);
--secondary: oklch(0.217 0.12 275.799);
--secondary-foreground: oklch(0.717 0.14 288.476);
--accent: oklch(0.217 0.12 275.799);
--accent-foreground: oklch(0.717 0.14 288.476);
--destructive: oklch(0.64 0.212 26.277);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.406 0.09 117.635);
--chart-1: oklch(0.406 0.09 117.635);
--chart-2: oklch(0.217 0.12 275.799);
--chart-3: oklch(0.217 0.12 275.799);
--chart-4: oklch(0.24 0.136 274.881);
--chart-5: oklch(0.411 0.092 117.753);
}