Porcelain is a shadcn/ui theme built around a neutral gray primary color (#8a847b) with neutral gray accents (#7b818a). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the neutral gray primary (#8a847b) on an orange-tinted background (#0e0b07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #0e0b07black |
| Foreground | #100b05black | #ffffffwhite |
| Card | #fcfaf8snow | #110e08black |
| Card foreground | #0c0804black | #ffffffwhite |
| Popover | #fdfdfcwhite | #0e0b07black |
| Popover foreground | #100b05black | #ffffffwhite |
| Primary | #8a847bgray | #8a847bgray |
| Primary foreground | #000000black | #000000black |
| Secondary | #7b818agray | #7b818agray |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2e7eelavender | #11161dblack |
| Muted foreground | #414244darkslategray | #bbbcbesilver |
| Accent | #7b818agray | #7b818agray |
| Accent foreground | #000000black | #000000black |
| Destructive | #a83e05saddlebrown | #f97c39coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a847bgray | #8a847bgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 5.63:1 | AA |
| Secondary button | 5.31:1 | AA |
| Muted text | 8.07:1 | AAA |
| Accent | 5.31:1 | AA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 5.63:1 | AA |
| Secondary button | 5.31:1 | AA |
| Muted text | 9.58:1 | AAA |
| Accent | 5.31:1 | AA |
| Destructive | 7.97:1 | AAA |
Paste this into your globals.css to use Porcelain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 78.307);
--foreground: oklch(0.154 0.016 81.069);
--muted: oklch(0.926 0.012 258.342);
--muted-foreground: oklch(0.379 0.003 258.333);
--popover: oklch(0.993 0.002 78.307);
--popover-foreground: oklch(0.154 0.016 81.069);
--card: oklch(0.986 0.003 78.302);
--card-foreground: oklch(0.139 0.014 84.267);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.614 0.015 78.214);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.6 0.015 258.361);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.6 0.015 258.361);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.507 0.151 41.764);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.614 0.015 78.214);
--chart-1: oklch(0.614 0.015 78.214);
--chart-2: oklch(0.6 0.015 258.361);
--chart-3: oklch(0.6 0.015 258.361);
--chart-4: oklch(0.626 0.014 258.358);
--chart-5: oklch(0.618 0.023 78.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.011 80.099);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.018 258.348);
--muted-foreground: oklch(0.796 0.003 258.321);
--popover: oklch(0.151 0.011 80.099);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.165 0.013 78.216);
--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.614 0.015 78.214);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.6 0.015 258.361);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.6 0.015 258.361);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.72 0.172 46.049);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.614 0.015 78.214);
--chart-1: oklch(0.614 0.015 78.214);
--chart-2: oklch(0.6 0.015 258.361);
--chart-3: oklch(0.6 0.015 258.361);
--chart-4: oklch(0.626 0.014 258.358);
--chart-5: oklch(0.618 0.023 78.142);
}