Skip to content

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.json
Edit in the generator

Docket 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.

WherePairLightDark
Body textforeground on background14.24:1 · Lc 10115.45:1 · Lc 94
Secondary text on the pagemuted-foreground on background6.49:1 · Lc 829.24:1 · Lc 63
Text in cardscard-foreground on card14.24:1 · Lc 10114.44:1 · Lc 93
Secondary text in cardsmuted-foreground on card6.49:1 · Lc 828.64:1 · Lc 62
Menus and popoverspopover-foreground on popover14.24:1 · Lc 10114.44:1 · Lc 93
Primary buttonsprimary-foreground on primary18.87:1 · Lc 10716.71:1 · Lc 97
Links and outline accentsprimary on background18.87:1 · Lc 10516.35:1 · Lc 98
Secondary buttonssecondary-foreground on secondary12.84:1 · Lc 9412.99:1 · Lc 92
Text on muted panelsmuted-foreground on muted5.85:1 · Lc 757.77:1 · Lc 61
Hovered menu itemsaccent-foreground on accent6.50:1 · Lc 768.25:1 · Lc 67
Error messagesdestructive on background6.58:1 · Lc 818.81:1 · Lc 61
Sidebarsidebar-foreground on sidebar13.76:1 · Lc 9914.48:1 · Lc 93
Sidebar active itemsidebar-primary-foreground on sidebar-primary18.87:1 · Lc 10716.71:1 · Lc 97
Sidebar hoversidebar-accent-foreground on sidebar-accent12.84:1 · Lc 9412.99:1 · Lc 92
Focus ringring on background14.24:115.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.json

Or 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/inter

The registry item: themes.dev/r/presets/docket.json. Free to use in any project.

globals.css
: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.

More shadcn/ui presets

All 37 presets