Blackness is a shadcn/ui theme built around a light red primary color (#f8f2f3) with muted light red accents (#c8bcbe). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#f8f2f3) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040102black |
| Foreground | #040102black | #f9f6f6whitesmoke |
| Card | #fcfcfcsnow | #070304black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fcfcfcsnow | #070304black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #f8f2f3whitesmoke | #f8f2f3whitesmoke |
| Primary foreground | #783f49sienna | #783f49sienna |
| Secondary | #dad8d8gainsboro | #2a2728darkslategray |
| Secondary foreground | #423e3edarkslategray | #c4bfc0silver |
| Muted | #dbd7d7gainsboro | #282425darkslategray |
| Muted foreground | #4a3f41darkslategray | #c0b5b6silver |
| Accent | #c8bcbesilver | #3b3032darkslategray |
| Accent foreground | #2d2526darkslategray | #d4c9cblightgrey |
| Destructive | #a23a10saddlebrown | #eb6733tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8f2f3whitesmoke | #f8f2f3whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Blackness in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.016 6.105);
--muted: oklch(0.882 0.004 5.575);
--muted-foreground: oklch(0.381 0.016 6.489);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.965 0.007 5.635);
--primary-foreground: oklch(0.442 0.079 10.225);
--secondary: oklch(0.883 0.003 5.524);
--secondary-foreground: oklch(0.367 0.005 5.825);
--accent: oklch(0.805 0.014 5.9);
--accent-foreground: oklch(0.273 0.013 6.618);
--destructive: oklch(0.491 0.147 38.987);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.965 0.007 5.635);
--chart-1: oklch(0.965 0.007 5.635);
--chart-2: oklch(0.883 0.003 5.524);
--chart-3: oklch(0.805 0.014 5.9);
--chart-4: oklch(0.907 0.002 5.507);
--chart-5: oklch(0.965 0.008 5.653);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.011 5.894);
--foreground: oklch(0.975 0.003 5.542);
--muted: oklch(0.266 0.006 6.012);
--muted-foreground: oklch(0.782 0.013 5.87);
--popover: oklch(0.107 0.014 5.894);
--popover-foreground: oklch(0.983 0.002 5.51);
--card: oklch(0.107 0.014 5.894);
--card-foreground: oklch(0.983 0.002 5.51);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.965 0.007 5.635);
--primary-foreground: oklch(0.442 0.079 10.225);
--secondary: oklch(0.277 0.005 5.905);
--secondary-foreground: oklch(0.81 0.006 5.628);
--accent: oklch(0.322 0.017 6.829);
--accent-foreground: oklch(0.846 0.012 5.818);
--destructive: oklch(0.669 0.176 40.52);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.965 0.007 5.635);
--chart-1: oklch(0.965 0.007 5.635);
--chart-2: oklch(0.277 0.005 5.905);
--chart-3: oklch(0.322 0.017 6.829);
--chart-4: oklch(0.308 0.006 5.925);
--chart-5: oklch(0.965 0.008 5.653);
}