Skip to content
Primer printing platePrimer

Desktop patterns

Use a persistent left navigation area to give an app a stable sense of place. Keep the working area open, readable, and responsive to the current task. The navigation establishes where the user is; it should not become the busiest part of the window.

This handbook draws on the inspected Tally and Fable implementations. It separates their shared conventions from product-specific choices. The reference audit records source revisions, measured dimensions, historical screenshots, and gaps. The desktop foundations define the CSS contract; applications own the components and behavior. Tally and Fable remain reference applications and have not adopted Primer through this work.

The side-navigation specimen demonstrates the comfortable labeled composition with Home, People, and Tools, theme switching, narrow navigation, and a searchable destination picker. It is a reference implementation for inspection, not a shipped component API.

Choose the navigation variant deliberately

Section titled “Choose the navigation variant deliberately”
Variant Use when Reference Avoid when
Icon rail A short, stable set of familiar destinations can be recognized by distinct icons. Labels remain available through accessible names and tooltips. Tally: 48px rail, 36px controls, 16px icons. Destinations have similar icons, names change often, or a hierarchy must remain visible.
Labeled navigation People benefit from reading destination names or seeing saved places and a small hierarchy. Fable: 228px navigation, reduced to 212px at narrower desktop widths. The result becomes an unbounded index of every feature, setting, and object.

Neither variant requires a second row of global destination tabs. Do not repeat the same destinations in both the left navigation and the toolbar. Local view choices, such as a list’s Everyone and Catch up filters, belong with that list.

Wick uses the labeled variant. Its destinations cover different kinds of personal work, so labels carry useful meaning. This is a deliberate revision of the earlier toolbar-only composition; the spacious Home, People, and Tools content remains the reference for page density.

These roles are a reusable Primer recipe, not a claim that Tally or Fable currently use these exact measurements. Their compact reference measurements are recorded separately in the audit.

CSS role after --primer-desktop-navigation- Value Purpose
width 240px Labeled desktop navigation.
width-narrow 220px Smaller desktop navigation without reducing label size.
compact-width 64px Optional icon-rail composition using comfortable targets.
target-size 44px Minimum interactive row or icon-control height. Multiline labels may grow.
icon-size 20px One consistent outline-icon scale.
label-size 14px Readable navigation text, separate from page-body sizing.
inset 12px Space between navigation content and the region’s outer edge.
item-gap 4px Space between related destinations.
group-gap 24px Separation between primary navigation, saved places, and utilities.

Use the narrow width around the desktop profile’s 1050px guideline when it leaves a useful working area. The application chooses when to use a drawer or another narrow-screen navigation; a fixed breakpoint is not a substitute for checking the actual content. An app may support a compact rail, but a collapsed state must be designed and tested, not inferred from the presence of a width token.

  1. Identity and orientation. Keep the app name or mark quiet. Reserve native window-control space before laying out interactive content. A product mark may return Home, but it must not become the only route to Home.
  2. Primary destinations. Use a short, stable order. Five to seven visible destinations are a useful limit for a labeled shell; add another only when its frequency and meaning justify the permanent space. Preserve direct and keyboard access to less frequent views through a named picker such as All tools.
  3. Personal or contextual destinations. Saved places may form one secondary group when they are real user choices. Do not fabricate favorites, recency, unread counts, or empty groups to complete a composition. An object tree belongs here only if browsing that hierarchy is a central job, as in Fable.
  4. Utilities. Keep Settings and app-level utilities near the bottom. Activity may live here when it describes background work rather than the current page. A running-job badge may report real work; idle connection health does not need permanent navigation furniture.

Keep the middle region independently scrollable when content can grow. Identity and utilities should remain reachable in a short window. Use min-height: 0 through the flex or grid hierarchy; do not rely on the entire window scrolling to reach Settings. If utilities cannot fit, the navigation itself must still offer a discoverable scroll route.

Avoid nested accordions for a handful of primary destinations. A section heading should explain a group, not add another label above an obvious list. Use sentence case. Long labels may wrap or use an accessible full name; never make them fit by shrinking all navigation text.

Use a named nav landmark. Use links for actual routes; an application with service-driven view switching may use buttons, but it must preserve the same current-location semantics. Apply aria-current="page" only to the active destination. A toggle uses aria-expanded or aria-pressed according to what it does. Do not use tab semantics for global destinations unless the interaction genuinely implements a tab list and its associated panels.

Selection answers where am I? Focus answers what will the keyboard operate? They must remain independently visible. A selected row can use a quiet fill, a readable paired foreground, and a weight or marker change. Focus uses a solid visible outline on top of that state. Hover must not look like a second active destination.

For icon-only controls, provide an accessible name and a tooltip visible on keyboard focus as well as hover. A control with a visible text label must retain that wording in its accessible name so voice and keyboard users can identify the same action. Tally’s 300ms tooltip delay is a useful reference. Tooltips may include a working shortcut. They must not contain information required to understand an irreversible action.

Keep the window chrome separate from the page

Section titled “Keep the window chrome separate from the page”

The left region answers where to go. The window toolbar provides a small amount of global or current-context control. The page title tells the user what they are working on. Give each one a job.

Tally’s compact 44px header mainly holds global utilities. Fable’s 61px toolbar supplies a breadcrumb and current-document actions while the document keeps its own title. Wick’s 64px native toolbar can retain window dragging and lightweight orientation without repeating its four former top navigation buttons.

Do not turn the toolbar into a permanent row of full filter forms, status badges, breadcrumbs, and explanations. Search or an All tools picker can carry secondary discovery. Put page-specific creation beside the page heading; put row-specific actions beside the row or in a labeled menu.

Native traffic lights, window dragging, title-bar material, application menus, and window lifecycle remain application-owned. A drag region must exclude every button, input, menu, and selectable content region. Browser preview dots are decorative test chrome, never a replacement for native window controls.

Tally’s 32–36px controls support a compact planning workspace. Fable combines compact navigation with generous library and document margins. These observations support different densities for different jobs, not a universal instruction to shrink all controls.

Start Wick’s content with the comfortable profile: 15px working text, 13px supporting text, 44px controls, and 48px minimum single-line rows. Preserve the 36px open-canvas page title and the 1040px maximum content measure. The measure excludes outer page insets. Center content within the remaining workspace, not within the entire window including navigation.

Reduce outer margins and contextual-column width before reducing text or interaction targets. Let multiline rows grow. At small widths, stack or deliberately replace panes rather than compressing a name, form, and detail panel into three narrow columns. Editors and data tables can use the full available width when their job requires it; the reading measure is not a blanket width cap on every workspace.

Empty space is part of the composition. Do not fill it with metrics, configuration summaries, or repeated shortcut cards. Equally, do not make every small tool a giant form: keep related labels, controls, and help close together and separate distinct jobs with more space.

Region or state Primer role Rule
Navigation and window toolbar desktop.sidebar, desktop.toolbar Quiet surrounding chrome; use the neutral open-canvas mapping for Wick.
Main workspace desktop.canvas Broad, uninterrupted reading and working area.
A separate layer desktop.surface Menus, dialogs, and meaningful raised content. Do not wrap every section in it.
Recessed supporting region desktop.inset Fields, tracks, and quiet icon backgrounds where the recess clarifies a control.
Primary and supporting text desktop.text, desktop.muted Use readable semantic roles instead of repeatedly reducing opacity.
Selected item desktop.selection, desktop.selection-text Use the paired foreground and an additional state cue.
Keyboard focus desktop.focus Solid visible indicator on both plain and selected surfaces.
Primary action desktop.accent-fill, desktop.on-accent Reserve emphasis for the action that advances the current job.
Identifiable boundary desktop.border Control edge when the edge is necessary to recognize the control.
Decorative separation desktop.separator One quiet hairline between already identifiable regions.

Tally uses cool neutral layers; Fable uses warm neutral paper and a muted purple accent. The reusable decision is the distinction between chrome, canvas, content, and layers. Do not make either app’s exact hue or font a requirement for every consumer. Wick keeps the approved white/charcoal canvas and violet actions. Neutral chrome must not become a large accent-colored block.

Use one interface family for navigation, controls, menus, and dialogs. Primer’s desktop profile uses the native system stack. Tally’s Geist and Fable’s editorial choices remain app decisions. A document may have an intentional reading font; changing it must not accidentally change the navigation geometry. Let type size, weight, and spacing establish hierarchy before adding borders, icons, or uppercase headings.

Treat light, dark, and system appearances as complete states. Resolve the app’s persisted choice before first paint where possible. Fable’s current light-only source is not a dark-mode reference. Primer’s contrast-tested semantic pairs supply Wick’s dark mode; inspect the complete app in both appearances after adoption.

Keep the primary action visible and nearby. Put occasional actions in a clearly named menu. Use a disclosure when it reveals settings for the same job; use a destination when it changes the job. Do not put a destructive action next to a frequent action merely to avoid a menu.

Hover-revealed row controls must also appear with :focus-within; provide a visible equivalent for touch and coarse pointers. Fable’s preview controls are a useful example of keyboard-aware disclosure. The ability to discover an action must not depend on a precise pointer.

A control’s label should describe the result: Add person, Save video, Log check-in. A disclosure should name what it opens: Download settings, Filters, All details. Do not expose implementation concepts such as service methods or background transport in ordinary product flows.

Use the list for scanning and selection. Use a nearby detail column for the selected object’s useful context and next actions. Keep selection visible while reading the detail. A separator and space are usually enough; avoid a card inside a card inside a side panel.

Wick’s People view follows this pattern: readable names and supporting information, one selected person, then notes and check-in actions beside the list. All details opens the complete record; Edit opens its editor. Opening a person must not itself mutate the record. Logging a check-in may prepare an editable date, but saving remains explicit and Cancel must preserve the original record.

When the pair no longer fits, show detail as an intentional replacement or accessible overlay with a clear return action. Preserve list selection, query, and scroll position. An inline detail region is not a modal: do not trap focus or mark it aria-modal. An overlay that blocks the workspace must implement the modal contract below.

Start with the fields required for the immediate result. Keep optional settings in a labeled disclosure with a summary when its values matter. A video tool can begin with a URL and Save video; destination and browser choices can stay under Download settings. A collapsed tool still needs a readable name and a clear open affordance.

Associate every label with its field. A neighboring Choose button is an action, not part of the input’s accessible name. Pressing Enter should submit a single-purpose form when valid. Explain validation beside the field, retain entered values on failure, and prevent duplicate submission while the operation is pending.

Show a queued or running result where the user started it and provide a route to Activity for ongoing work. Starting an operation must not unexpectedly change the current destination. Cancellation is a distinct outcome from success and error.

State Required behavior Avoid
Opening a workspace Keep stable navigation and a concise status. Use skeletons only when they reflect the eventual content. A full dashboard of placeholder cards unrelated to the destination.
No personal history Explain the empty state and offer a useful route, such as Explore Wick. Fictional recent items presented as the user’s history.
No search results Keep the query visible and offer clear/reset or a relevant create action. Replacing the whole navigation or suggesting the data disappeared.
Work in progress Identify the operation, disable only conflicting controls, and keep other navigation usable where safe. Blocking the entire app for a background job.
Failed read Say what could not load and offer retry without destroying existing context. A silent blank list that could mean there are no records.
Failed save or conflict Keep the draft, show a persistent actionable message, and prevent navigation from silently losing work. A short-lived toast as the only evidence that writing was not saved.
Cancelled action Restore the initiating context without a success claim. Treating a dismissed native Save dialog as an export.
Success Confirm the concrete result near the action; retain the user’s current context. A permanent success banner or confetti for routine work.

Fable’s explicit unsaved-writing and conflict guards are a useful source pattern. Its persistent Saved on this device footer describes that app’s storage model; it is not a reason to give every app a permanent connection-status footer. Use live regions for meaningful updates without announcing every background refresh.

A modal has an accessible name, receives focus, contains Tab and Shift-Tab, and restores focus to its opener when dismissed. Escape closes the top dismissible layer only. Keep the underlying page and its navigation from consuming shortcuts while the modal owns input. If the initiating control disappears, return focus to a logical surviving location.

Use a dialog for a focused decision, a full editor, or a consequential confirmation. Keep a simple read-only detail inline when space allows. A destructive confirmation names the object and scope and makes the safe exit clear. Closing a picker, editor, or native Save panel is not approval to proceed.

A menu implements menu keyboard behavior; a list of ordinary links does not need a menu role. A navigation drawer covering content must manage focus and expose its open state. Fable’s useDialog and adaptive PagePreview contain useful focus-management examples; its navigation drawer itself is not a complete accessibility reference.

Keep shortcut definitions, native menu accelerators, tooltips, and help consistent. In Wick, the existing Home/Data/People/Tools number shortcuts remain valid after moving their controls to the left. CmdK still opens All tools; Cmd-comma opens Settings. Do not add a shortcut hint unless it works while the relevant page or embedded editor has focus. Unmodified shortcuts must not consume normal typing.

Do not shrink the whole desktop UI to preserve the same columns. First reduce page insets, then remove nonessential companion space, then switch the navigation mechanic. Tally uses bottom navigation; Fable uses an overlay drawer. Choose the mechanic for the app’s hierarchy, not to make every app look identical at every width.

Wick keeps labeled navigation available at its native minimum window width and switches to a native HTML dialog for navigation at browser viewport widths of 760px or less. The drawer has a named opener, focus entry and containment, Escape/backdrop dismissal, and focus restoration. Choosing a destination closes it. There is no desktop collapse control in this adoption; a compact rail remains an optional composition for another application.

Content responds to the workspace left after navigation: Home stacks its columns and People replaces the list with its selected detail when that workspace is 760px or narrower. That is a content-container decision, distinct from the navigation drawer’s viewport breakpoint. It prevents a 900px window with a visible sidebar from squeezing a wide-screen content layout into the remaining space.

Maintain approximately 44px targets for coarse pointers. Tooltips do not replace labels on touch. Check long names, large text, 200% zoom, reduced motion, and short window heights. Scrolling should occur in the intended content regions without clipping focus rings or making the utility section unreachable.

Existing Wick area Apply from the shared pattern Preserve
Window shell Labeled left navigation with comfortable roles; 64px native toolbar with app identity and quiet current-location text. Native window controls, dragging exclusions, close-to-hide and background-job lifecycle.
Main destinations Home, Data, People, Tools in the first group; Music in a second group separated by space; a searchable picker above for the complete set; Activity and Settings below. A secondary destination opened through All tools appears temporarily as the selected Current place row after Music. Every existing destination, direct navigation, one visible current destination, native shortcuts. The picker itself is not falsely marked as the active page.
Data A clearly named holding area for imported Notion records, with a short explanation of its temporary purpose. Existing imported tables, records, and saved navigation.
Home Open recent-content rows with artwork, a restrained Saved places column, generous page insets. Genuine saved preferences and navigation history; explicit empty-history state.
People List plus contextual detail, progressive editor actions, clear selection. Full record editing, filters, pagination, cancellation, and no incidental record writes.
Tools Plain disclosure rows and focused forms, optional settings under meaningful labels. Existing job validation, native folder choices, cancellation, and Activity access.
Secondary workspaces Shared chrome and typography with app-owned layouts suited to their content. Studio editors, wide data views, existing safeguards and keyboard ownership.
Appearance Neutral navigation and open-canvas surfaces in light/dark; one restrained accent. Persisted appearance choice and readable state colors.

The stylesheet does not implement this map. Wick owns its React navigation, pane layout, focus handling, and native host. Tally and Fable can later adopt the same decisions selectively without importing Wick’s components or changing their product hierarchy.

Use one clearly fictional fixture across a wide window, the supported narrow desktop window, a short window, and a 390px browser viewport. Review both appearances, keyboard navigation, and long labels. Record source verification separately from runtime verification.

  • Every destination remains reachable. Exactly one current destination is identified, including a secondary destination opened through All tools.
  • Left navigation and toolbar do not duplicate global destinations. Utilities remain reachable without scrolling the page body.
  • Navigation uses the shared measurements; content retains comfortable spacing rather than inheriting Tally’s compact form sizes.
  • Selected, hovered, focused, disabled, and running states are distinct. Focus remains visible on a selected row.
  • Names wrap or have an accessible full form. Content width is measured inside the space left by navigation.
  • Opening, closing, or changing navigation preserves drafts and does not cancel background work.
  • Picker and dialog dismissal restores focus; shortcuts yield to typing, active dialogs, and embedded editors as intended.
  • Narrow navigation opens, closes, and returns focus correctly; touch users can discover every essential action.
  • Lists, details, disclosures, and forms work with keyboard alone. Cancelling edits or native dialogs performs no unintended write.
  • Empty, loading, failed-read, failed-save, conflict, cancelled, and success states remain truthful and actionable.
  • Light/dark, theme preference, zoom, and reduced motion are checked in the consuming app, not only in a token specimen.
  • Native lifecycle checks and hands-on native menu/dialog inspection are recorded separately; unavailable permissions are an evidence limit.

See design review for recording results, desktop reference audit for the source trail, and desktop foundations for delivery and token verification.

Use the desktop artwork and icon pattern for decorative page covers, destination artwork and an established interface icon library. This is app-owned composition on Primer foundations. Wick’s direct sidebar navigation remains independent of imagery.

See page surfaces and flat sections for the shared outer-page and inner-section composition.

Use workspace hierarchy and rhythm for shared page/section/item typography, consistent section breaks, state-aware primary actions and messages that collapse when empty.