Granite Black Porcupine is a shadcn/ui theme built around a neutral gray primary color (#303136) with neutral gray accents (#323036). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#303136) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04050bblack |
| Foreground | #040511black | #ffffffwhite |
| Card | #ffffffwhite | #04050bblack |
| Card foreground | #040511black | #ffffffwhite |
| Popover | #ffffffwhite | #04050bblack |
| Popover foreground | #040511black | #ffffffwhite |
| Primary | #303136darkslategray | #303136darkslategray |
| Primary foreground | #c9cacflightgrey | #c9cacflightgrey |
| Secondary | #303436darkslategray | #303436darkslategray |
| Secondary foreground | #c9cdcflightgrey | #c9cdcflightgrey |
| Muted | #eff0f0whitesmoke | #0f1010black |
| Muted foreground | #444546darkslategray | #b9babbsilver |
| Accent | #323036darkslategray | #323036darkslategray |
| Accent foreground | #cbc9cflightgrey | #cbc9cflightgrey |
| Destructive | #702200maroon | #eb4600orangered |
| Destructive foreground | #ffbfa3lightpink | #ffffffwhite |
| Border | #e2e3e9gainsboro | #16171dblack |
| Input | #e2e3e9gainsboro | #16171dblack |
| Ring | #303136darkslategray | #303136darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 9.83:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Granite Black Porcupine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.028 272.038);
--muted: oklch(0.954 0.001 232.599);
--muted-foreground: oklch(0.39 0.001 232.632);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.028 272.038);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.028 272.038);
--border: oklch(0.916 0.009 279.192);
--input: oklch(0.916 0.009 279.192);
--primary: oklch(0.315 0.008 278.952);
--primary-foreground: oklch(0.84 0.006 279.231);
--secondary: oklch(0.321 0.006 232.831);
--secondary-foreground: oklch(0.845 0.004 232.653);
--accent: oklch(0.315 0.009 302.478);
--accent-foreground: oklch(0.84 0.007 302.797);
--destructive: oklch(0.37 0.118 39.446);
--destructive-foreground: oklch(0.856 0.083 44.229);
--ring: oklch(0.315 0.008 278.952);
--chart-1: oklch(0.315 0.008 278.952);
--chart-2: oklch(0.321 0.006 232.831);
--chart-3: oklch(0.315 0.009 302.478);
--chart-4: oklch(0.351 0.006 232.838);
--chart-5: oklch(0.311 0.013 278.693);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.016 274.831);
--foreground: oklch(1 0 180);
--muted: oklch(0.17 0.002 232.745);
--muted-foreground: oklch(0.789 0.001 232.601);
--popover: oklch(0.119 0.016 274.831);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.016 274.831);
--card-foreground: oklch(1 0 180);
--border: oklch(0.205 0.013 278.283);
--input: oklch(0.205 0.013 278.283);
--primary: oklch(0.315 0.008 278.952);
--primary-foreground: oklch(0.84 0.006 279.231);
--secondary: oklch(0.321 0.006 232.831);
--secondary-foreground: oklch(0.845 0.004 232.653);
--accent: oklch(0.315 0.009 302.478);
--accent-foreground: oklch(0.84 0.007 302.797);
--destructive: oklch(0.627 0.21 37.051);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.315 0.008 278.952);
--chart-1: oklch(0.315 0.008 278.952);
--chart-2: oklch(0.321 0.006 232.831);
--chart-3: oklch(0.315 0.009 302.478);
--chart-4: oklch(0.351 0.006 232.838);
--chart-5: oklch(0.311 0.013 278.693);
}