Negative is a shadcn/ui theme built around a near-black primary color (#03050c) with near-black accents (#050c03). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the near-black primary (#03050c) on a blue-tinted background (#05070f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #05070fblack |
| Foreground | #040710black | #fcfcfdwhite |
| Card | #f8f9fcghostwhite | #070913black |
| Card foreground | #03050cblack | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #070913black |
| Popover foreground | #03050cblack | #ffffffwhite |
| Primary | #03050cblack | #03050cblack |
| Primary foreground | #bbc5edlightsteelblue | #bbc5edlightsteelblue |
| Secondary | #0c0305black | #0c0305black |
| Secondary foreground | #d76a82palevioletred | #d76a82palevioletred |
| Muted | #f5eff1whitesmoke | #100a0bblack |
| Muted foreground | #534b4ddarkslategray | #b4acaedarkgray |
| Accent | #050c03black | #050c03black |
| Accent foreground | #4aad2elimegreen | #4aad2elimegreen |
| Destructive | #aa4013saddlebrown | #dc5318chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #03050cblack | #03050cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 11.94:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 7.47:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 11.94:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 8.84:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Negative in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 273.84);
--foreground: oklch(0.129 0.023 267.301);
--muted: oklch(0.958 0.007 2.254);
--muted-foreground: oklch(0.422 0.011 2.769);
--popover: oklch(0.982 0.004 273.814);
--popover-foreground: oklch(0.117 0.019 266.383);
--card: oklch(0.982 0.004 273.814);
--card-foreground: oklch(0.117 0.019 266.383);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.117 0.019 266.55);
--primary-foreground: oklch(0.829 0.057 272.977);
--secondary: oklch(0.12 0.022 2.429);
--secondary-foreground: oklch(0.659 0.139 7.989);
--accent: oklch(0.143 0.026 137.203);
--accent-foreground: oklch(0.664 0.187 139.805);
--destructive: oklch(0.512 0.149 40.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.117 0.019 266.55);
--chart-1: oklch(0.117 0.019 266.55);
--chart-2: oklch(0.12 0.022 2.429);
--chart-3: oklch(0.143 0.026 137.203);
--chart-4: oklch(0.157 0.033 6.701);
--chart-5: oklch(0.116 0.02 266.043);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.018 268.968);
--foreground: oklch(0.991 0.002 273.848);
--muted: oklch(0.152 0.011 3.941);
--muted-foreground: oklch(0.751 0.009 2.408);
--popover: oklch(0.143 0.022 270.067);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.022 270.067);
--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.117 0.019 266.55);
--primary-foreground: oklch(0.829 0.057 272.977);
--secondary: oklch(0.12 0.022 2.429);
--secondary-foreground: oklch(0.659 0.139 7.989);
--accent: oklch(0.143 0.026 137.203);
--accent-foreground: oklch(0.664 0.187 139.805);
--destructive: oklch(0.619 0.183 39.935);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.117 0.019 266.55);
--chart-1: oklch(0.117 0.019 266.55);
--chart-2: oklch(0.12 0.022 2.429);
--chart-3: oklch(0.143 0.026 137.203);
--chart-4: oklch(0.157 0.033 6.701);
--chart-5: oklch(0.116 0.02 266.043);
}