Negative is a shadcn/ui theme built around a deep green primary color (#213111) with deep green accents (#113111). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#213111) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0a1104black | #fcfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0a1104black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0a1104black | #fcfdfcwhite |
| Primary | #213111black | #213111black |
| Primary foreground | #87c14eyellowgreen | #87c14eyellowgreen |
| Secondary | #313111darkslategray | #313111darkslategray |
| Secondary foreground | #c1c14edarkkhaki | #c1c14edarkkhaki |
| Muted | #f6f6efwhitesmoke | #101009black |
| Muted foreground | #565652dimgray | #adada9darkgray |
| Accent | #113111black | #113111black |
| Accent foreground | #4ec14elimegreen | #4ec14elimegreen |
| Destructive | #861804darkred | #e92907orangered |
| Destructive foreground | #fdc8bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #213111black | #213111black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.78:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.96:1 | AA |
| Muted text | 8.45:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Negative in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.164 0.029 128.81);
--muted: oklch(0.971 0.01 106.58);
--muted-foreground: oklch(0.451 0.005 106.613);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.164 0.029 128.81);
--card: oklch(1 0 180);
--card-foreground: oklch(0.164 0.029 128.81);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.29 0.057 131.193);
--primary-foreground: oklch(0.746 0.158 131.594);
--secondary: oklch(0.305 0.049 108.994);
--secondary-foreground: oklch(0.788 0.137 109.167);
--accent: oklch(0.28 0.067 143.532);
--accent-foreground: oklch(0.719 0.187 143.326);
--destructive: oklch(0.402 0.147 32.124);
--destructive-foreground: oklch(0.877 0.062 29.888);
--ring: oklch(0.29 0.057 131.193);
--chart-1: oklch(0.29 0.057 131.193);
--chart-2: oklch(0.305 0.049 108.994);
--chart-3: oklch(0.28 0.067 143.532);
--chart-4: oklch(0.348 0.058 109.07);
--chart-5: oklch(0.293 0.059 131.367);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 128.473);
--muted: oklch(0.172 0.015 107.833);
--muted-foreground: oklch(0.745 0.005 106.514);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 128.473);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 128.473);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.29 0.057 131.193);
--primary-foreground: oklch(0.746 0.158 131.594);
--secondary: oklch(0.305 0.049 108.994);
--secondary-foreground: oklch(0.788 0.137 109.167);
--accent: oklch(0.28 0.067 143.532);
--accent-foreground: oklch(0.719 0.187 143.326);
--destructive: oklch(0.6 0.227 31.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.29 0.057 131.193);
--chart-1: oklch(0.29 0.057 131.193);
--chart-2: oklch(0.305 0.049 108.994);
--chart-3: oklch(0.28 0.067 143.532);
--chart-4: oklch(0.348 0.058 109.07);
--chart-5: oklch(0.293 0.059 131.367);
}