Handbill, a shadcn/ui preset
Deep wine red on a paper white, from a theatre and events theme. It comes from Handbill, one of our website themes.
Fonts: Manrope · radius 0rem · light and dark · lowest text contrast 6.64:1
npx shadcn@latest add https://www.themes.dev/r/presets/handbill.jsonHandbill 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#2b1d19
- primary#6b1d2a
- primary-foreground#ffffff
- secondary#ede7dc
- muted-foreground#5e4b45
- accent#f6e3e0
- border#e1d5c1
- destructive#a3261b
- ring#6b1d2a
- chart-1#ffa3aa
- chart-2#c8787e
- chart-3#a35d63
- chart-4#83464b
- chart-5#673338
Dark
- background#1b1311
- foreground#f3e8d8
- primary#eba7a9
- primary-foreground#2a1216
- secondary#2e2220
- muted-foreground#cdbbae
- accent#3a2224
- border#3a2b27
- destructive#ff9788
- ring#eba7a9
- chart-1#ffa6ad
- chart-2#d6848a
- chart-3#b0696e
- chart-4#8d4e54
- chart-5#703b40
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.67:1 · Lc 96 | 15.10:1 · Lc 93 |
| Secondary text on the page | muted-foreground on background | 7.38:1 · Lc 81 | 9.88:1 · Lc 67 |
| Text in cards | card-foreground on card | 15.20:1 · Lc 99 | 14.03:1 · Lc 92 |
| Secondary text in cards | muted-foreground on card | 7.64:1 · Lc 84 | 9.18:1 · Lc 66 |
| Menus and popovers | popover-foreground on popover | 15.20:1 · Lc 99 | 14.03:1 · Lc 92 |
| Primary buttons | primary-foreground on primary | 11.43:1 · Lc 99 | 8.90:1 · Lc 64 |
| Links and outline accents | primary on background | 10.33:1 · Lc 88 | 9.28:1 · Lc 64 |
| Secondary buttons | secondary-foreground on secondary | 13.21:1 · Lc 89 | 12.66:1 · Lc 91 |
| Text on muted panels | muted-foreground on muted | 6.64:1 · Lc 74 | 8.28:1 · Lc 65 |
| Hovered menu items | accent-foreground on accent | 10.68:1 · Lc 85 | 9.37:1 · Lc 74 |
| Error messages | destructive on background | 6.64:1 · Lc 77 | 8.73:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 14.16:1 · Lc 94 | 14.13:1 · Lc 92 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 11.43:1 · Lc 99 | 8.90:1 · Lc 64 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 13.21:1 · Lc 89 | 12.66:1 · Lc 91 |
| Focus ring | ring on background | 10.33:1 | 9.28: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/handbill.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/manropeThe registry item: themes.dev/r/presets/handbill.json. Free to use in any project.
:root {
--radius: 0rem;
--background: oklch(0.965 0.012 84.59);
--foreground: oklch(0.247 0.023 36.56);
--card: oklch(0.977 0.01 84.58);
--card-foreground: oklch(0.247 0.023 36.56);
--popover: oklch(0.977 0.01 84.58);
--popover-foreground: oklch(0.247 0.023 36.56);
--primary: oklch(0.361 0.11 15.05);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.93 0.016 84.59);
--secondary-foreground: oklch(0.247 0.023 36.56);
--muted: oklch(0.93 0.016 84.59);
--muted-foreground: oklch(0.431 0.028 38.25);
--accent: oklch(0.93 0.021 28.34);
--accent-foreground: oklch(0.321 0.096 14.78);
--destructive: oklch(0.472 0.163 29.57);
--border: oklch(0.878 0.03 80.98);
--input: oklch(0.584 0.031 45.87);
--ring: oklch(0.361 0.11 15.05);
--chart-1: oklch(0.809 0.109 15);
--chart-2: oklch(0.66 0.101 15.05);
--chart-3: oklch(0.56 0.092 15.05);
--chart-4: oklch(0.47 0.084 15.05);
--chart-5: oklch(0.39 0.075 15.05);
--sidebar: oklch(0.953 0.012 84.59);
--sidebar-foreground: oklch(0.247 0.023 36.56);
--sidebar-primary: oklch(0.361 0.11 15.05);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.93 0.016 84.59);
--sidebar-accent-foreground: oklch(0.247 0.023 36.56);
--sidebar-border: oklch(0.878 0.03 80.98);
--sidebar-ring: oklch(0.361 0.11 15.05);
}
.dark {
--background: oklch(0.196 0.014 34.4);
--foreground: oklch(0.935 0.024 77.46);
--card: oklch(0.229 0.017 31.36);
--card-foreground: oklch(0.935 0.024 77.46);
--popover: oklch(0.229 0.017 31.36);
--popover-foreground: oklch(0.935 0.024 77.46);
--primary: oklch(0.794 0.081 17.09);
--primary-foreground: oklch(0.219 0.04 10.3);
--secondary: oklch(0.266 0.018 34.4);
--secondary-foreground: oklch(0.935 0.024 77.46);
--muted: oklch(0.266 0.018 34.4);
--muted-foreground: oklch(0.804 0.027 58.2);
--accent: oklch(0.284 0.037 14.26);
--accent-foreground: oklch(0.86 0.051 18.2);
--destructive: oklch(0.781 0.128 29.18);
--border: oklch(0.305 0.024 35.41);
--input: oklch(0.59 0.032 48.15);
--ring: oklch(0.794 0.081 17.09);
--chart-1: oklch(0.815 0.105 14.7);
--chart-2: oklch(0.7 0.101 15.05);
--chart-3: oklch(0.6 0.092 15.05);
--chart-4: oklch(0.5 0.084 15.05);
--chart-5: oklch(0.42 0.075 15.05);
--sidebar: oklch(0.226 0.014 34.4);
--sidebar-foreground: oklch(0.935 0.024 77.46);
--sidebar-primary: oklch(0.794 0.081 17.09);
--sidebar-primary-foreground: oklch(0.219 0.04 10.3);
--sidebar-accent: oklch(0.266 0.018 34.4);
--sidebar-accent-foreground: oklch(0.935 0.024 77.46);
--sidebar-border: oklch(0.305 0.024 35.41);
--sidebar-ring: oklch(0.794 0.081 17.09);
}
@theme inline {
--font-sans: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Handbill started as Handbill, a website theme
Handbill is a complete site for Concert halls, theatres and venues: 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.
