Black is a shadcn/ui theme built around a pink primary color (#d936a0) with green accents (#36d96f). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the pink primary (#d936a0) on a pink-tinted background (#10040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #10040cblack |
| Foreground | #170310black | #fdfcfdwhite |
| Card | #fdfbfdsnow | #10040cblack |
| Card foreground | #170310black | #fdfcfdwhite |
| Popover | #fdfbfdsnow | #10040cblack |
| Popover foreground | #170310black | #fdfcfdwhite |
| Primary | #d936a0mediumvioletred | #d936a0mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #36d96fmediumseagreen | #36d96fmediumseagreen |
| Secondary foreground | #0b381adarkgreen | #0b381adarkgreen |
| Muted | #e0e6e2gainsboro | #191f1bblack |
| Muted foreground | #434c46darkslategray | #b3bcb6silver |
| Accent | #36d96fmediumseagreen | #36d96fmediumseagreen |
| Accent foreground | #0b381adarkgreen | #0b381adarkgreen |
| Destructive | #cd180efirebrick | #f0372dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d936a0mediumvioletred | #d936a0mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 4.22:1 | AA Large |
| Secondary button | 7.06:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 5.62:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 4.22:1 | AA Large |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.58:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Black in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 338.04);
--foreground: oklch(0.146 0.048 342.242);
--muted: oklch(0.92 0.009 157.772);
--muted-foreground: oklch(0.406 0.014 157.219);
--popover: oklch(0.991 0.003 338.04);
--popover-foreground: oklch(0.146 0.048 342.242);
--card: oklch(0.991 0.003 338.04);
--card-foreground: oklch(0.146 0.048 342.242);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.612 0.221 345.851);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.779 0.197 150.025);
--secondary-foreground: oklch(0.301 0.071 150.912);
--accent: oklch(0.779 0.197 150.025);
--accent-foreground: oklch(0.301 0.071 150.912);
--destructive: oklch(0.54 0.211 29.409);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.612 0.221 345.851);
--chart-1: oklch(0.612 0.221 345.851);
--chart-2: oklch(0.779 0.197 150.025);
--chart-3: oklch(0.779 0.197 150.025);
--chart-4: oklch(0.79 0.188 150.797);
--chart-5: oklch(0.616 0.227 346.193);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.031 340.35);
--foreground: oklch(0.992 0.002 338.031);
--muted: oklch(0.233 0.013 156.761);
--muted-foreground: oklch(0.786 0.012 157.654);
--popover: oklch(0.136 0.031 340.35);
--popover-foreground: oklch(0.992 0.002 338.031);
--card: oklch(0.136 0.031 340.35);
--card-foreground: oklch(0.992 0.002 338.031);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.612 0.221 345.851);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.779 0.197 150.025);
--secondary-foreground: oklch(0.301 0.071 150.912);
--accent: oklch(0.779 0.197 150.025);
--accent-foreground: oklch(0.301 0.071 150.912);
--destructive: oklch(0.626 0.222 28.535);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.612 0.221 345.851);
--chart-1: oklch(0.612 0.221 345.851);
--chart-2: oklch(0.779 0.197 150.025);
--chart-3: oklch(0.779 0.197 150.025);
--chart-4: oklch(0.79 0.188 150.797);
--chart-5: oklch(0.616 0.227 346.193);
}