Page Templates: The Floor Plan for UI
Page templates are the floor plan, not the furniture: fixed zones where components slot in. Use them for recurring screens like dashboards so teams stop rebuilding skeletons. The footgun is treating them as giant components, forcing brittle overrides later.
Why it exists
Design systems start with small pieces like buttons and inputs, but products are built as full pages. Without a layer that governs how those pieces assemble into complete screens, every team ends up reinventing the same grids, sidebars, and responsive breakpoints. Page templates exist to stop that repetition by codifying the recurring structural skeletons that show up again and again across a product.
The mental model
Think of a page template as a floor plan rather than the furniture inside. It specifies where rooms go, how wide the hallways are, and where the doors connect, but it does not dictate which couch sits in the living room. In the same way, a template defines regions or slots such as a top navigation area, a sidebar, and a main content zone, while remaining agnostic about the specific components that eventually fill those zones.
How it works
A template is documented as a layout pattern with named placeholders and rules about how they behave across breakpoints. In code, it often surfaces as a higher-order layout component or a page-level file that imports and arranges lower-level components. The design system maintains a library of these templates, each mapped to a recognizable page type, and documents which components are approved for each slot. This creates a contract between design and engineering: the template owns the page architecture, while the contents remain swappable.
When to use it
Reach for a page template whenever you see the same page architecture repeated across multiple features. Dashboard overviews, settings screens, search result listings, and documentation articles are all classic candidates. They are especially powerful in large organizations where several squads ship concurrently and need to keep the product feeling coherent without centralizing every minor decision.
When not to use it
Avoid forcing a one-off marketing campaign or an experimental flow into an existing template just because it exists. When the layout itself is the differentiator, a template becomes a straitjacket rather than a shortcut. Also resist the urge to template at too granular a level; if a pattern is really just a row of cards, it belongs in the component layer, not the page layer.
One canonical example
Consider a documentation site that uses an Article Page template. The template provides a sticky table-of-contents sidebar on the left, a fluid content area in the center, and a related-links sidebar on the right, all wrapped in a consistent top navigation bar. Writers and developers drop in content components without deciding where sidebars sit or how the grid collapses on mobile, yet every article page automatically shares the same responsive behavior and spacing.
Interview question
Which of the following best describes what a page template should own versus what it should leave flexible?
- a.It should define both the page skeleton and the exact components used, so teams don't have to make any layout decisions.
- b.It should define the specific components that fill each zone, while allowing the grid structure to vary by page.
- c.It should define reusable patterns for small groups of components, like a row of cards, to avoid duplicating them across pages.
- d.It should define the structural zones and responsive behavior, while remaining agnostic about the specific components placed inside each zone.Correct
Why? this is the answer
A page template acts as a floor plan that owns structural zones and responsive behavior while remaining agnostic about specific components. Treating it as a giant component that dictates exact contents is the anti-pattern that creates brittle overrides.
Just read this? Test yourself on what you have been reading.
- #design systems
- #page templates
- #layout
- #ui architecture
- #frontend
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on design systems — each one lists the topics its interview covers.
See open roles