Skip to content
Primer printing platePrimer

Page surfaces and flat sections

Use one outer page surface to establish the working area inside the window. This pattern comes from Fable’s document presentation and Wick’s operational views. It applies to reading, tables, charts and forms with different content widths.

Import desktop foundations and opt in with data-primer-surface="page". Mark structural sections within it with data-primer-surface="section". These are CSS composition hooks, not Web Components. Applications retain markup, layout, scrolling and behavior. The page defines section properties for existing app selectors during migration.

Separate sections with headings and the shared section gap. Add a hairline only when it clarifies a change of task. Avoid repeated borders, shadows, rounded corners and horizontal padding within a page. Tables use the available width and modest row padding; prose can retain a readable measure. One page scroll area is preferred; independent scrolling is appropriate for maps and code review.

Keep boundaries for inputs, dialogs, popovers, warnings, independently selectable cards, diagram nodes and actionable summaries. Do not flatten every descendant or remove focus/selected styling. Home destination cards can retain their own boundary because each is a separate navigation target.

Fable and Tally can adopt these hooks incrementally while retaining their themes. The page surface uses Primer semantic roles; applications should map those roles before adoption. This does not change either app automatically.

Review light/dark, wide/short/narrow windows, table overflow, keyboard focus, dialogs, empty/error states and long labels. Verify covers and headings remain on the same outer surface, and that sticky action areas retain an opaque background.