Everyday Chinese Porcelain is a shadcn/ui theme built around a blue primary color (#395f7f) with indigo accents (#393c7f). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#395f7f) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #03080cblack | #f6f7f8whitesmoke |
| Card | #fcfcfcsnow | #020508black |
| Card foreground | #020508black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #010304black |
| Popover foreground | #03080cblack | #f6f7f8whitesmoke |
| Primary | #395f7fdarkslateblue | #395f7fdarkslateblue |
| Primary foreground | #f1f5f9whitesmoke | #f1f5f9whitesmoke |
| Secondary | #397f7bseagreen | #397f7bseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0ebeblavender | #141f1fblack |
| Muted foreground | #4e5655darkslategray | #a9b1b1darkgray |
| Accent | #393c7fdarkslateblue | #393c7fdarkslateblue |
| Accent foreground | #f1f1f9whitesmoke | #f1f1f9whitesmoke |
| Destructive | #7f3005saddlebrown | #f6732ctomato |
| Destructive foreground | #fcd1bapeachpuff | #000000black |
| Border | #e5e6e6gainsboro | #1b1c1dblack |
| Input | #e5e6e6gainsboro | #1b1c1dblack |
| Ring | #395f7fdarkslateblue | #395f7fdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 4.68:1 | AA |
| Muted text | 6.20:1 | AA |
| Accent | 8.76:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 4.68:1 | AA |
| Muted text | 7.69:1 | AAA |
| Accent | 8.76:1 | AAA |
| Destructive | 7.42:1 | AAA |
Paste this into your globals.css to use Everyday Chinese Porcelain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.014 235.221);
--muted: oklch(0.932 0.013 193.342);
--muted-foreground: oklch(0.445 0.01 193.147);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.014 235.221);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.113 0.012 234.522);
--border: oklch(0.923 0.001 242.212);
--input: oklch(0.923 0.001 242.212);
--primary: oklch(0.472 0.067 244.598);
--primary-foreground: oklch(0.968 0.007 242.283);
--secondary: oklch(0.55 0.07 190.902);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.391 0.11 277.763);
--accent-foreground: oklch(0.961 0.01 283.793);
--destructive: oklch(0.418 0.12 42.86);
--destructive-foreground: oklch(0.893 0.057 49.899);
--ring: oklch(0.472 0.067 244.598);
--chart-1: oklch(0.472 0.067 244.598);
--chart-2: oklch(0.55 0.07 190.902);
--chart-3: oklch(0.391 0.11 277.763);
--chart-4: oklch(0.582 0.075 190.882);
--chart-5: oklch(0.472 0.072 244.86);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.01 234.652);
--foreground: oklch(0.977 0.002 242.216);
--muted: oklch(0.23 0.017 192.171);
--muted-foreground: oklch(0.755 0.009 193.367);
--popover: oklch(0.09 0.01 234.652);
--popover-foreground: oklch(0.977 0.002 242.216);
--card: oklch(0.114 0.012 234.652);
--card-foreground: oklch(0.985 0.001 242.209);
--border: oklch(0.226 0.002 242.313);
--input: oklch(0.226 0.002 242.313);
--primary: oklch(0.472 0.067 244.598);
--primary-foreground: oklch(0.968 0.007 242.283);
--secondary: oklch(0.55 0.07 190.902);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.391 0.11 277.763);
--accent-foreground: oklch(0.961 0.01 283.793);
--destructive: oklch(0.702 0.179 45.096);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.472 0.067 244.598);
--chart-1: oklch(0.472 0.067 244.598);
--chart-2: oklch(0.55 0.07 190.902);
--chart-3: oklch(0.391 0.11 277.763);
--chart-4: oklch(0.582 0.075 190.882);
--chart-5: oklch(0.472 0.072 244.86);
}