Parcel is a shadcn/ui theme built around an indigo primary color (#4c34d5) with muted light indigo accents (#d7d5e2). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the indigo primary (#4c34d5) on an indigo-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #06050bblack |
| Foreground | #060410black | #f9f9fbghostwhite |
| Card | #f9f8fcghostwhite | #07060eblack |
| Card foreground | #05030cblack | #fcfcfdwhite |
| Popover | #f9f8fcghostwhite | #07060eblack |
| Popover foreground | #05030cblack | #fcfcfdwhite |
| Primary | #4c34d5slateblue | #4c34d5slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e9e9edlavender | #2d2d2fdarkslategray |
| Secondary foreground | #4c495adarkslategray | #c6c6c8silver |
| Muted | #dfdfe2gainsboro | #1d1d20black |
| Muted foreground | #4b4a55darkslategray | #acaab5darkgray |
| Accent | #d7d5e2gainsboro | #41404adarkslategray |
| Accent foreground | #39364fdarkslategray | #dcdce0gainsboro |
| Destructive | #760905maroon | #f5170fred |
| Destructive foreground | #fcb3b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c34d5slateblue | #4c34d5slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Parcel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 293.26);
--foreground: oklch(0.123 0.028 290.604);
--muted: oklch(0.904 0.005 293.202);
--muted-foreground: oklch(0.413 0.018 292.461);
--popover: oklch(0.981 0.005 293.212);
--popover-foreground: oklch(0.111 0.024 291.382);
--card: oklch(0.981 0.005 293.212);
--card-foreground: oklch(0.111 0.024 291.382);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.469 0.23 279.571);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.934 0.005 293.196);
--secondary-foreground: oklch(0.416 0.027 292.057);
--accent: oklch(0.877 0.019 292.906);
--accent-foreground: oklch(0.347 0.044 290.811);
--destructive: oklch(0.359 0.14 29.231);
--destructive-foreground: oklch(0.835 0.085 21.261);
--ring: oklch(0.469 0.23 279.571);
--chart-1: oklch(0.469 0.23 279.571);
--chart-2: oklch(0.934 0.005 293.196);
--chart-3: oklch(0.877 0.019 292.906);
--chart-4: oklch(0.959 0.003 293.239);
--chart-5: oklch(0.467 0.238 278.637);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.016 292.212);
--foreground: oklch(0.983 0.002 293.272);
--muted: oklch(0.232 0.007 292.733);
--muted-foreground: oklch(0.744 0.016 292.905);
--popover: oklch(0.13 0.019 291.661);
--popover-foreground: oklch(0.992 0.001 293.289);
--card: oklch(0.13 0.019 291.661);
--card-foreground: oklch(0.992 0.001 293.289);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.469 0.23 279.571);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.298 0.003 293.098);
--secondary-foreground: oklch(0.827 0.003 293.235);
--accent: oklch(0.377 0.016 292.48);
--accent-foreground: oklch(0.895 0.006 293.173);
--destructive: oklch(0.615 0.245 29.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.469 0.23 279.571);
--chart-1: oklch(0.469 0.23 279.571);
--chart-2: oklch(0.298 0.003 293.098);
--chart-3: oklch(0.377 0.016 292.48);
--chart-4: oklch(0.328 0.004 293.091);
--chart-5: oklch(0.467 0.238 278.637);
}