Docket, a shadcn/ui preset
Near-black on white with Inter, from a legal practice. It comes from Docket, one of our website themes.
Fonts: Inter · radius 0.625rem · light and dark · lowest text contrast 5.85:1
npx shadcn@latest add https://www.themes.dev/r/presets/docket.jsonDocket 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#ffffff
- foreground#2b2b26
- primary#111111
- primary-foreground#ffffff
- secondary#f6f2f3
- muted-foreground#5d5f58
- accent#e6f1ea
- border#e4e4df
- destructive#b42318
- ring#2b2b26
- chart-1#c1c1c1
- chart-2#929292
- chart-3#747474
- chart-4#5b5b5b
- chart-5#454545
Dark
- background#141412
- foreground#ecebe5
- primary#f2f1ec
- primary-foreground#111111
- secondary#242420
- muted-foreground#b9b8ae
- accent#1a2e21
- border#2e2e29
- destructive#ff9788
- ring#ecebe5
- chart-1#c4c4c4
- chart-2#9e9e9e
- chart-3#808080
- chart-4#636363
- chart-5#4d4d4d
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.24:1 · Lc 101 | 15.45:1 · Lc 94 |
| Secondary text on the page | muted-foreground on background | 6.49:1 · Lc 82 | 9.24:1 · Lc 63 |
| Text in cards | card-foreground on card | 14.24:1 · Lc 101 | 14.44:1 · Lc 93 |
| Secondary text in cards | muted-foreground on card | 6.49:1 · Lc 82 | 8.64:1 · Lc 62 |
| Menus and popovers | popover-foreground on popover | 14.24:1 · Lc 101 | 14.44:1 · Lc 93 |
| Primary buttons | primary-foreground on primary | 18.87:1 · Lc 107 | 16.71:1 · Lc 97 |
| Links and outline accents | primary on background | 18.87:1 · Lc 105 | 16.35:1 · Lc 98 |
| Secondary buttons | secondary-foreground on secondary | 12.84:1 · Lc 94 | 12.99:1 · Lc 92 |
| Text on muted panels | muted-foreground on muted | 5.85:1 · Lc 75 | 7.77:1 · Lc 61 |
| Hovered menu items | accent-foreground on accent | 6.50:1 · Lc 76 | 8.25:1 · Lc 67 |
| Error messages | destructive on background | 6.58:1 · Lc 81 | 8.81:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 13.76:1 · Lc 99 | 14.48:1 · Lc 93 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 18.87:1 · Lc 107 | 16.71:1 · Lc 97 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 12.84:1 · Lc 94 | 12.99:1 · Lc 92 |
| Focus ring | ring on background | 14.24:1 | 15.45: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/docket.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/interThe registry item: themes.dev/r/presets/docket.json. Free to use in any project.
:root {
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.287 0.009 106.95);
--card: oklch(1 0 0);
--card-foreground: oklch(0.287 0.009 106.95);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.287 0.009 106.95);
--primary: oklch(0.178 0 0);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.965 0.004 0);
--secondary-foreground: oklch(0.287 0.009 106.95);
--muted: oklch(0.965 0.004 0);
--muted-foreground: oklch(0.481 0.011 119.81);
--accent: oklch(0.948 0.015 158.24);
--accent-foreground: oklch(0.437 0.093 152.97);
--destructive: oklch(0.5 0.182 29.51);
--border: oklch(0.917 0.007 106.53);
--input: oklch(0.609 0.012 118.18);
--ring: oklch(0.287 0.009 106.95);
--chart-1: oklch(0.81 0 0);
--chart-2: oklch(0.66 0 0);
--chart-3: oklch(0.56 0 0);
--chart-4: oklch(0.47 0 0);
--chart-5: oklch(0.39 0 0);
--sidebar: oklch(0.988 0 0);
--sidebar-foreground: oklch(0.287 0.009 106.95);
--sidebar-primary: oklch(0.178 0 0);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.965 0.004 0);
--sidebar-accent-foreground: oklch(0.287 0.009 106.95);
--sidebar-border: oklch(0.917 0.007 106.53);
--sidebar-ring: oklch(0.287 0.009 106.95);
}
.dark {
--background: oklch(0.19 0.004 106.77);
--foreground: oklch(0.939 0.008 98.88);
--card: oklch(0.221 0.006 106.86);
--card-foreground: oklch(0.939 0.008 98.88);
--popover: oklch(0.221 0.006 106.86);
--popover-foreground: oklch(0.939 0.008 98.88);
--primary: oklch(0.958 0.007 97.35);
--primary-foreground: oklch(0.178 0 0);
--secondary: oklch(0.26 0.008 106.77);
--secondary-foreground: oklch(0.939 0.008 98.88);
--muted: oklch(0.26 0.008 106.77);
--muted-foreground: oklch(0.78 0.013 101.56);
--accent: oklch(0.28 0.035 154.92);
--accent-foreground: oklch(0.809 0.094 154.79);
--destructive: oklch(0.781 0.128 29.18);
--border: oklch(0.299 0.009 106.92);
--input: oklch(0.581 0.012 100.97);
--ring: oklch(0.939 0.008 98.88);
--chart-1: oklch(0.82 0 0);
--chart-2: oklch(0.7 0 0);
--chart-3: oklch(0.6 0 0);
--chart-4: oklch(0.5 0 0);
--chart-5: oklch(0.42 0 0);
--sidebar: oklch(0.22 0.004 106.77);
--sidebar-foreground: oklch(0.939 0.008 98.88);
--sidebar-primary: oklch(0.958 0.007 97.35);
--sidebar-primary-foreground: oklch(0.178 0 0);
--sidebar-accent: oklch(0.26 0.008 106.77);
--sidebar-accent-foreground: oklch(0.939 0.008 98.88);
--sidebar-border: oklch(0.299 0.009 106.92);
--sidebar-ring: oklch(0.939 0.008 98.88);
}
@theme inline {
--font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Docket started as Docket, a website theme
Docket is a complete site for Restaurants, bistros and cafés: 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.
