Screen header

Three zones on every device: where you came from, where you are, what you can do here.

Rules

Abstracted from Apple's navigation bar (iOS HIG; the same zones as a macOS window toolbar): leading = where you came from, center = where you are, trailing = what you can do here.

ZoneMobile top bar (setMobileHeader → MobileTopNavView)Desktop content header (sidebar present, no top bar)
LeadingBelow a domain root: back chevron to the parent. On a domain root: the sidebar menu.Below a domain root: <PageBackLink>. On a domain root: nothing.
CenterThe screen's titleDomain root: a large title (page-title) left-aligned. Deeper: the item's name as the title.
TrailingThe primary action as an icon (create = "+"), at most twoThe same action as a page-level md button (btn btn-tinted btn-md, see Buttons) or an icon button
  1. A domain root has no back affordance: the sidebar or tab bar is its "up" (Navigation → Going up one level). A root that links "back" to another product is a bug, not a shortcut.
  2. Create is the trailing "+", never a filled, shadowed button that outweighs the content it adds to. An empty list promotes create to its centered primary button ("Create your first X"). A grid of the user's own items may use a leading "+" tile instead (the home Hub card): one or the other per surface, never both.
  3. "⋯" only for two or more secondary actions. A one-item overflow menu adds a tap and hides the only action; put that action in the zone directly.
  4. One header per screen. On mobile the top bar carries the title, so the content column does not repeat it. Hub screens keep the top bar at every width: there the bar's center title is the screen's one <h1> (centerTitleIsHeading, marked data-screen-title) on desktop too, so the hub has no separate desktop content header; the rule is one pure function, resolveHubScreen / hubScreenTitleIsHeading (pkgs/util), excluding page detail (its Tiptap body may hold h1s) and sheets with their own header. Checked rendered by check-rendered-gutter --identity.
  5. Button sizes in the trailing zone follow the button system's size scale; the two rules are kept in step.
  6. The bar's controls are size-bar-control (48px), and its padding is fixed px; only the title is text. A control is not text, so it does not grow with the reader's text size, and 48px already clears the 44px target. Why: three rem circles plus rem padding came to about 350px at 200% text, wider than a 320 screen before any title, so the hub name vanished and the trailing "⋯" ran off the edge. A trailing control is nav-circle, btn-bar, or a pill held to the token, never a hand-sized copy. Inside the title pill the icon, gap and padding are px too, so the row's width goes to the name.
  7. Under 22em the title takes its own row beneath the controls. An em media query, so it follows text size: a 320 screen at default text, or 390 at 150%, wraps; 768 never does. The DOM order is menu, title, actions in both states, and CSS order alone moves the title to its own row, so a screen reader reaches the page's name right after the menu; the title is still the screen's one <h1> where it is the heading. A bar with no title never wraps. Content below clears the bar by its MEASURED height: MobileTopNavView writes it to --shell-mobile-top, and a layout never shadows that value with a constant, or a two-row bar covers the page's first line.

Live specimens

Mobile top barLeading: where you came from. Center: where you are. Trailing: what you can do.
Weekend market notes
Desktop content headerNo top bar: the parent link, a large title, and the action as a tinted md button.

Weekend market notes