Parcel, a shadcn/ui preset
Brick red with Hanken Grotesk, from a skincare shop. It comes from Parcel, one of our website themes.
Fonts: Hanken Grotesk · radius 0.25rem · light and dark · lowest text contrast 6.67:1
npx shadcn@latest add https://www.themes.dev/r/presets/parcel.jsonParcel on six free blocks from themes.dev UI. Scroll inside the preview.
The colours
The main variables, light and dark. The full set of 31 per mode, sidebar and charts included, is in the CSS below.
Light
- background#f7f3eb
- foreground#2e1a10
- primary#8a2a1c
- primary-foreground#f7edd5
- secondary#ede7dc
- muted-foreground#5a4434
- accent#f8e6c3
- border#cec5b0
- destructive#a3261a
- ring#8a2a1c
- chart-1#ff9f8c
- chart-2#d27463
- chart-3#ac594a
- chart-4#8a4236
- chart-5#6d3025
Dark
- background#1d130d
- foreground#f2e6cc
- primary#ff9982
- primary-foreground#150a08
- secondary#2e241d
- muted-foreground#cdb99a
- accent#3a2518
- border#433428
- destructive#ff9a8c
- ring#e8997f
- chart-1#ffa592
- chart-2#e0806f
- chart-3#b96556
- chart-4#944b3e
- chart-5#76382d
Contrast, checked
Every pair shadcn/ui draws text with, measured as WCAG 2 contrast (AA needs 4.5:1) and APCA Lc (we ask 60 for text). Focus rings need 3:1 on the page.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 14.91:1 · Lc 96 | 14.74:1 · Lc 91 |
| Secondary text on the page | muted-foreground on background | 8.21:1 · Lc 84 | 9.56:1 · Lc 65 |
| Text in cards | card-foreground on card | 15.36:1 · Lc 98 | 13.32:1 · Lc 90 |
| Secondary text in cards | muted-foreground on card | 8.45:1 · Lc 86 | 8.64:1 · Lc 64 |
| Menus and popovers | popover-foreground on popover | 15.36:1 · Lc 98 | 13.32:1 · Lc 90 |
| Primary buttons | primary-foreground on primary | 7.44:1 · Lc 82 | 9.41:1 · Lc 63 |
| Links and outline accents | primary on background | 7.82:1 · Lc 82 | 8.81:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 13.43:1 · Lc 90 | 12.31:1 · Lc 89 |
| Text on muted panels | muted-foreground on muted | 7.39:1 · Lc 77 | 7.99:1 · Lc 63 |
| Hovered menu items | accent-foreground on accent | 9.19:1 · Lc 81 | 8.38:1 · Lc 68 |
| Error messages | destructive on background | 6.67:1 · Lc 77 | 8.89:1 · Lc 62 |
| Sidebar | sidebar-foreground on sidebar | 14.39:1 · Lc 94 | 13.78:1 · Lc 91 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 7.44:1 · Lc 82 | 9.41:1 · Lc 63 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 13.43:1 · Lc 90 | 12.31:1 · Lc 89 |
| Focus ring | ring on background | 7.82:1 | 8.07:1 |
Use it
With the shadcn CLI, in a project set up with shadcn init:
npx shadcn@latest add https://www.themes.dev/r/presets/parcel.jsonOr paste the CSS into globals.css (Next.js) or your main stylesheet (Vite, Astro), replacing the :root and .dark values that are there.
Then load the font:
npm i @fontsource-variable/hanken-groteskThe registry item: themes.dev/r/presets/parcel.json. Free to use in any project.
:root {
--radius: 0.25rem;
--background: oklch(0.965 0.012 86.06);
--foreground: oklch(0.242 0.037 47.04);
--card: oklch(0.975 0.01 87.85);
--card-foreground: oklch(0.242 0.037 47.04);
--popover: oklch(0.975 0.01 87.85);
--popover-foreground: oklch(0.242 0.037 47.04);
--primary: oklch(0.43 0.133 31.2);
--primary-foreground: oklch(0.948 0.033 88.06);
--secondary: oklch(0.93 0.016 86.06);
--secondary-foreground: oklch(0.242 0.037 47.04);
--muted: oklch(0.93 0.016 86.06);
--muted-foreground: oklch(0.406 0.04 57.36);
--accent: oklch(0.93 0.05 84.52);
--accent-foreground: oklch(0.363 0.113 31.03);
--destructive: oklch(0.471 0.163 29.86);
--border: oklch(0.825 0.03 86.61);
--input: oklch(0.561 0.051 65.4);
--ring: oklch(0.43 0.133 31.2);
--chart-1: oklch(0.796 0.118 32.33);
--chart-2: oklch(0.66 0.122 31.2);
--chart-3: oklch(0.56 0.112 31.2);
--chart-4: oklch(0.47 0.101 31.2);
--chart-5: oklch(0.39 0.09 31.2);
--sidebar: oklch(0.953 0.012 86.06);
--sidebar-foreground: oklch(0.242 0.037 47.04);
--sidebar-primary: oklch(0.43 0.133 31.2);
--sidebar-primary-foreground: oklch(0.948 0.033 88.06);
--sidebar-accent: oklch(0.93 0.016 86.06);
--sidebar-accent-foreground: oklch(0.242 0.037 47.04);
--sidebar-border: oklch(0.825 0.03 86.61);
--sidebar-ring: oklch(0.43 0.133 31.2);
}
.dark {
--background: oklch(0.198 0.02 56.13);
--foreground: oklch(0.928 0.037 86.17);
--card: oklch(0.241 0.022 56.45);
--card-foreground: oklch(0.928 0.037 86.17);
--popover: oklch(0.241 0.022 56.45);
--popover-foreground: oklch(0.928 0.037 86.17);
--primary: oklch(0.784 0.127 33.55);
--primary-foreground: oklch(0.16 0.02 33.55);
--secondary: oklch(0.268 0.02 56.13);
--secondary-foreground: oklch(0.928 0.037 86.17);
--muted: oklch(0.268 0.02 56.13);
--muted-foreground: oklch(0.795 0.048 78.75);
--accent: oklch(0.287 0.039 52.35);
--accent-foreground: oklch(0.831 0.069 39.9);
--destructive: oklch(0.787 0.124 28.61);
--border: oklch(0.337 0.03 59.75);
--input: oklch(0.626 0.05 75.22);
--ring: oklch(0.756 0.102 38.98);
--chart-1: oklch(0.806 0.111 32.46);
--chart-2: oklch(0.7 0.122 31.2);
--chart-3: oklch(0.6 0.112 31.2);
--chart-4: oklch(0.5 0.101 31.2);
--chart-5: oklch(0.42 0.09 31.2);
--sidebar: oklch(0.228 0.02 56.13);
--sidebar-foreground: oklch(0.928 0.037 86.17);
--sidebar-primary: oklch(0.784 0.127 33.55);
--sidebar-primary-foreground: oklch(0.16 0.02 33.55);
--sidebar-accent: oklch(0.268 0.02 56.13);
--sidebar-accent-foreground: oklch(0.928 0.037 86.17);
--sidebar-border: oklch(0.337 0.03 59.75);
--sidebar-ring: oklch(0.756 0.102 38.98);
}
@theme inline {
--font-sans: "Hanken Grotesk Variable", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Hanken Grotesk Variable", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Parcel started as Parcel, a website theme
Parcel is a complete site for Product brands: every page, the content model and a live demo, built from the same blocks, in Astro and Next.js + Sanity. It comes with UI Pro, from €199 once, with every other theme.
