Pile is a shadcn/ui theme built around a vivid deep teal primary color (#033531) with vivid deep red accents (#350307). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#033531) on a neutral background (#020807).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020807black |
| Foreground | #010404black | #fbfdfdwhite |
| Card | #fcfcfcsnow | #040c0bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #040c0bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #033531darkslategray | #033531darkslategray |
| Primary foreground | #13f1dfaqua | #13f1dfaqua |
| Secondary | #350307black | #350307black |
| Secondary foreground | #f7737elightcoral | #f7737elightcoral |
| Muted | #f4e6e7linen | #190b0cblack |
| Muted foreground | #484747darkslategray | #b8b7b7silver |
| Accent | #350307black | #350307black |
| Accent foreground | #f7737elightcoral | #f7737elightcoral |
| Destructive | #cd510echocolate | #f17b3bcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #033531darkslategray | #033531darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 7.64:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 4.39:1 | AA Large |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 9.59:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 7.65:1 | AAA |
Paste this into your globals.css to use Pile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.013 190.208);
--muted: oklch(0.937 0.015 11.606);
--muted-foreground: oklch(0.398 0.002 11.355);
--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.297 0.05 186.192);
--primary-foreground: oklch(0.863 0.15 184.956);
--secondary: oklch(0.213 0.079 21.911);
--secondary-foreground: oklch(0.715 0.161 16.964);
--accent: oklch(0.213 0.079 21.911);
--accent-foreground: oklch(0.715 0.161 16.964);
--destructive: oklch(0.592 0.171 42.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.297 0.05 186.192);
--chart-1: oklch(0.297 0.05 186.192);
--chart-2: oklch(0.213 0.079 21.911);
--chart-3: oklch(0.213 0.079 21.911);
--chart-4: oklch(0.248 0.093 23.229);
--chart-5: oklch(0.3 0.051 186.081);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 190.391);
--foreground: oklch(0.994 0.002 191.203);
--muted: oklch(0.17 0.024 14.589);
--muted-foreground: oklch(0.78 0.002 11.295);
--popover: oklch(0.143 0.015 190.011);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.015 190.011);
--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.297 0.05 186.192);
--primary-foreground: oklch(0.863 0.15 184.956);
--secondary: oklch(0.213 0.079 21.911);
--secondary-foreground: oklch(0.715 0.161 16.964);
--accent: oklch(0.213 0.079 21.911);
--accent-foreground: oklch(0.715 0.161 16.964);
--destructive: oklch(0.709 0.164 46.361);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.297 0.05 186.192);
--chart-1: oklch(0.297 0.05 186.192);
--chart-2: oklch(0.213 0.079 21.911);
--chart-3: oklch(0.213 0.079 21.911);
--chart-4: oklch(0.248 0.093 23.229);
--chart-5: oklch(0.3 0.051 186.081);
}