Positive is a shadcn/ui theme built around a deep green primary color (#161a05) with deep green accents (#0b1a05). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#161a05) on a green-tinted background (#0a0c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #0a0c04black |
| Foreground | #0e1104black | #fbfbf9snow |
| Card | #f9faf4whitesmoke | #0e1005black |
| Card foreground | #0b0c03black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #0a0c04black |
| Popover foreground | #0e1104black | #fbfbf9snow |
| Primary | #161a05black | #161a05black |
| Primary foreground | #a9c624yellowgreen | #a9c624yellowgreen |
| Secondary | #1a1305black | #1a1305black |
| Secondary foreground | #c69324goldenrod | #c69324goldenrod |
| Muted | #f5f3f0whitesmoke | #0f0e0ablack |
| Muted foreground | #4b4a49darkslategray | #b6b5b4silver |
| Accent | #0b1a05black | #0b1a05black |
| Accent foreground | #58c624limegreen | #58c624limegreen |
| Destructive | #731702maroon | #fa4219orangered |
| Destructive foreground | #fdb9aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161a05black | #161a05black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.52:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 9.12:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 7.98:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 9.12:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 9.44:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Positive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 114.927);
--foreground: oklch(0.168 0.027 116.959);
--muted: oklch(0.965 0.005 86.027);
--muted-foreground: oklch(0.41 0.002 86.024);
--popover: oklch(0.989 0.006 114.927);
--popover-foreground: oklch(0.168 0.027 116.959);
--card: oklch(0.984 0.008 114.98);
--card-foreground: oklch(0.15 0.023 116.041);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.207 0.038 118.176);
--primary-foreground: oklch(0.778 0.176 120.295);
--secondary: oklch(0.192 0.029 86.205);
--secondary-foreground: oklch(0.695 0.133 81.304);
--accent: oklch(0.197 0.045 136.086);
--accent-foreground: oklch(0.734 0.215 138.35);
--destructive: oklch(0.364 0.129 33.646);
--destructive-foreground: oklch(0.846 0.082 33.014);
--ring: oklch(0.207 0.038 118.176);
--chart-1: oklch(0.207 0.038 118.176);
--chart-2: oklch(0.192 0.029 86.205);
--chart-3: oklch(0.197 0.045 136.086);
--chart-4: oklch(0.236 0.038 84.332);
--chart-5: oklch(0.209 0.04 118.266);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.02 115.75);
--foreground: oklch(0.987 0.003 114.879);
--muted: oklch(0.163 0.008 86.083);
--muted-foreground: oklch(0.774 0.002 86.014);
--popover: oklch(0.147 0.02 115.75);
--popover-foreground: oklch(0.987 0.003 114.879);
--card: oklch(0.165 0.023 116.688);
--card-foreground: oklch(0.994 0.001 114.851);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.207 0.038 118.176);
--primary-foreground: oklch(0.778 0.176 120.295);
--secondary: oklch(0.192 0.029 86.205);
--secondary-foreground: oklch(0.695 0.133 81.304);
--accent: oklch(0.197 0.045 136.086);
--accent-foreground: oklch(0.734 0.215 138.35);
--destructive: oklch(0.651 0.225 33.385);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.038 118.176);
--chart-1: oklch(0.207 0.038 118.176);
--chart-2: oklch(0.192 0.029 86.205);
--chart-3: oklch(0.197 0.045 136.086);
--chart-4: oklch(0.236 0.038 84.332);
--chart-5: oklch(0.209 0.04 118.266);
}