Blackness is a shadcn/ui theme built around a muted deep orange primary color (#231d1a) with neutral gray accents (#d2d1d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#231d1a) on an orange-tinted background (#0a0705).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0705black |
| Foreground | #040201black | #ffffffwhite |
| Card | #ffffffwhite | #0a0705black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0705black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #231d1ablack | #231d1ablack |
| Primary foreground | #c3b3acsilver | #c3b3acsilver |
| Secondary | #d2d1d0lightgrey | #1a1614black |
| Secondary foreground | #3a3736darkslategray | #baaca6darkgray |
| Muted | #dfdad7gainsboro | #282220black |
| Muted foreground | #5d514cdimgray | #b3a8a2darkgray |
| Accent | #d2d1d0lightgrey | #1a1614black |
| Accent foreground | #3a3736darkslategray | #baaca6darkgray |
| Destructive | #7a0b05maroon | #e11409red |
| Destructive foreground | #fcb9b6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #231d1ablack | #231d1ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 7.72:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.86: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.091 0.009 54.269);
--muted: oklch(0.891 0.007 46.77);
--muted-foreground: oklch(0.445 0.018 46.452);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.091 0.009 54.269);
--card: oklch(1 0 180);
--card-foreground: oklch(0.091 0.009 54.269);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.237 0.012 46.352);
--primary-foreground: oklch(0.779 0.021 46.574);
--secondary: oklch(0.861 0.002 46.825);
--secondary-foreground: oklch(0.341 0.004 46.734);
--accent: oklch(0.861 0.002 46.825);
--accent-foreground: oklch(0.341 0.004 46.734);
--destructive: oklch(0.371 0.144 29.542);
--destructive-foreground: oklch(0.847 0.078 22.259);
--ring: oklch(0.237 0.012 46.352);
--chart-1: oklch(0.237 0.012 46.352);
--chart-2: oklch(0.861 0.002 46.825);
--chart-3: oklch(0.861 0.002 46.825);
--chart-4: oklch(0.884 0.002 46.831);
--chart-5: oklch(0.237 0.014 46.269);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.01 51.839);
--foreground: oklch(1 0 180);
--muted: oklch(0.258 0.009 46.481);
--muted-foreground: oklch(0.739 0.015 46.631);
--popover: oklch(0.131 0.01 51.839);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.01 51.839);
--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.237 0.012 46.352);
--primary-foreground: oklch(0.779 0.021 46.574);
--secondary: oklch(0.204 0.008 46.473);
--secondary-foreground: oklch(0.755 0.019 46.591);
--accent: oklch(0.204 0.008 46.473);
--accent-foreground: oklch(0.755 0.019 46.591);
--destructive: oklch(0.577 0.23 29.497);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.237 0.012 46.352);
--chart-1: oklch(0.237 0.012 46.352);
--chart-2: oklch(0.204 0.008 46.473);
--chart-3: oklch(0.204 0.008 46.473);
--chart-4: oklch(0.237 0.01 46.437);
--chart-5: oklch(0.237 0.014 46.269);
}