# Layout and hierarchy {#c3}

> Chapter 3 of the App Design Guide 3.0.0. Index: https://www.designguide.dev/llms.txt

Layout tells a person where to look first and what to do next. These rules cover the hero, primary button, text, space, alignment, density, promos, and fine print.

## Hero and reading order {#s3-1}

### 3.1 Give each screen one hero  {#give-each-screen-one-hero}

Default

**Rule:** Show one number or one object at the largest size, with one secondary caption under it.

**Why:** The eye lands on the largest item first, so one hero answers the main question at a glance.  **When not:** A screen of equal choices, such as a plan picker, has no single hero.

- Keep the hero number to 9 characters or fewer.
- Keep the caption to 4 words or fewer.
- Put supporting detail below the hero in smaller text.

**Picture:** Do: One large number and one small caption lead the screen. Don't: 5 numbers share one size, so nothing leads.

### 3.2 Make the owned object the hero  {#make-the-owned-object-the-hero}

Default

**Rule:** Show the thing the person owns, such as a booking or a file, large at the top of its screen.

**Why:** A large object says "this is yours" in one image.

- Put the object first, then its details, then its actions.
- Use the same layout for every owned object of one kind.
- Let the object's own color or shape show whose it is.

**Picture:** Do: The reservation is the hero. Its details sit under it. Don't: 4 plain rows hide what the person booked.

### 3.3 Match reading order to importance  {#match-reading-order-to-importance}

Default · Adapts

**Rule:** Order content by importance, with the most important first, from top to bottom.

**Wide screen:** On a wide screen, read from the list pane to the detail pane, and keep the status first in the detail. (Triggers: Width 840+)

**Why:** People read top down and stop when they find what they need.

- Put the status or result first.
- Put the next action second.
- Put details and history last.

**Picture:** Do: Status first, then the items, then the action. Don't: The status sits under the list, easy to miss. Size pair (Phone, 375; Window, 1280): The phone reads top to bottom. The window reads from the order list to the status pane.

### 3.4 Show the deciding number with the action  {#show-the-deciding-number-with-the-action}

Default

**Rule:** Put the number that drives a decision at a large size on the same screen as the action.

**Why:** A person who must open a second screen for the number may decide without it or leave.  **When not:** A long or complex number can show a short form with a link to the detail.

- Show the exact value, not a range (see [9.6](https://www.designguide.dev/r/write-exact-dates-not-ranges.md)).
- Place the number above the primary button.
- Update the number as the person changes the input.

**Picture:** Do: The size of the upload sits above the button. Don't: The size hides behind a small icon.

**See:** [9.6 Write exact dates, not ranges](https://www.designguide.dev/r/write-exact-dates-not-ranges.md)

## Type, alignment, and sizes {#s3-2}

### 3.5 Use 2 weights and up to 4 sizes  {#use-2-weights-and-up-to-4-sizes}

Default

**Rule:** Use regular and bold only, and set text in no more than 4 sizes: hero, title, body, and caption.

**Why:** A small, fixed scale shows rank at a glance. Extra sizes blur the order.  **When not:** A data-heavy tool can add one small size for table text.

- Use size and weight, not color, to show rank.
- Use the sizes in the table of Rule [3.22](https://www.designguide.dev/r/use-one-step-scale-for-space-and-size.md).
- A tool for a pointer may use 14 px body text.

**Picture:** Do: 4 sizes: hero, title, body, and caption. Don't: The same text in 5 styles has no clear start.

**See:** [3.22 Use one step scale for space and size](https://www.designguide.dev/r/use-one-step-scale-for-space-and-size.md)

### 3.6 Align content to one left edge  {#align-content-to-one-left-edge}

Default

**Rule:** Start every title, label, field, and row at the same left edge, and center only a short, single item.

**Why:** One edge gives the eye a straight line. Mixed alignment slows reading.  **When not:** A short result screen, such as a success message, can center its content.

- End-align numbers in a table column.
- Keep the same left margin of 16 px on every phone screen.

**Picture:** Do: Title, labels, and fields share one left edge. Don't: A centered title sits above left-aligned fields.

## Space and grouping {#s3-3}

### 3.7 Group by space first  {#group-by-space-first}

Default

**Rule:** Separate groups with empty space and a short secondary heading, and do not box each group.

**Why:** Space shows which items belong together without adding lines.

- Use the gaps in Rule [3.22](https://www.designguide.dev/r/use-one-step-scale-for-space-and-size.md).
- Use the same gap between all groups.

**Picture:** Do: 2 groups, each with a heading, separated by space. Don't: One flat list. Pickup and items look like one kind of thing.

**See:** [3.22 Use one step scale for space and size](https://www.designguide.dev/r/use-one-step-scale-for-space-and-size.md)

### 3.8 Use a card for one unit  {#use-a-card-for-one-unit}

Default

**Rule:** Wrap content in a card only when it forms one unit that the person reads or selects as a whole.

**Why:** A card says these parts are one thing. If every row has a card, the signal means nothing.

- Put one card around a goal, a plan, or a booking.
- Do not put a card inside a card.

**Picture:** Do: One card holds the goal. Rows stay plain. Don't: Same goal card, but each row has a card too.

### 3.9 Use a divider only between blocks  {#use-a-divider-only-between-blocks}

Default

**Rule:** Draw a divider only between 2 blocks that do different jobs, such as normal settings and a danger zone.

**Why:** Lines add weight. Keep one for the place where a firm break helps.  **When not:** A dense table can use a thin line between rows so the eye keeps its place.

- Do not put a line under every row.
- Do not add a line and a card border to one group.

**Picture:** Do: One divider separates the settings from Delete account. Don't: A line under every row hides the one real break.

## Parallel facts and choices {#s3-4}

### 3.10 Use equal tiles for parallel facts  {#use-equal-tiles-for-parallel-facts}

Default · Adapts

**Rule:** Show parallel facts as equal tiles, each with a label, a big number, and a state word.

**Wide screen:** On a wide screen, show up to 4 equal tiles in one row. (Triggers: Width 840+)

**Why:** The eye compares tiles in a grid. Color never carries a state alone.

- Use 2 tiles per row on a phone.
- Put the state in a word, not only a color.
- Add a change and its period when the number moves (see [10.5](https://www.designguide.dev/r/give-each-kpi-a-label-number-and-change.md)).

**Picture:** Do: Each tile has a label, a number, and a state word. Don't: A paragraph hides the numbers, so the eye cannot compare. Size pair (Phone, 375; Window, 1280): Same 4 tiles. The grid adds columns as the window widens.

**See:** [10.5 Give each KPI a label, number, and change](https://www.designguide.dev/r/give-each-kpi-a-label-number-and-change.md)

### 3.11 Put the same facts in the same slots  {#put-the-same-facts-in-the-same-slots}

Default

**Rule:** When people compare choices, show the same facts in the same order and the same place on every choice.

**Why:** The eye compares by position. When facts move, the person rereads every line.

- Fix the slots: name, seats, area, wait.
- Write "None" when a slot has no value.

**Picture:** Do: Both tables list seats, area, and wait in the same order. Don't: The second card lists wait first, then seats, then area.

## Actions {#s3-5}

### 3.12 Show one primary button per screen  {#show-one-primary-button-per-screen}

Default

**Rule:** Give one button the filled primary style on each screen, and make every other action quieter.

**Why:** 2 loud buttons compete, and people hesitate. See [1.5](https://www.designguide.dev/r/one-primary-button.md) for the principle.  **When not:** A screen with 2 equal paths, such as a sign-in choice, can show 2 equal buttons.

- Make the primary action the likeliest next step.
- In a dialog, put the primary right of the secondary.
- Put the primary on top when buttons stack.

**Picture:** Do: One filled button. 2 quieter ones. Don't: 3 filled buttons compete.

**See:** [1.5 One primary button](https://www.designguide.dev/r/one-primary-button.md)

### 3.13 Anchor the primary button at the bottom  {#anchor-the-primary-button-at-the-bottom}

Default · Adapts

**Rule:** On a one-task phone screen, anchor the primary button at the bottom, full width, as the only item with that look.

**Wide screen:** On a wide screen, put the primary button at the end of the form or dialog footer, at its own width. (Triggers: Width 840+, Fine pointer)

**Why:** The thumb reaches the bottom edge with no stretch, and a full-width bar is the easiest target.  **When not:** A screen with a keyboard open keeps the button above the keyboard.

- Leave 16 px of margin at the sides and bottom.
- Make the button at least 44 px high.
- At Medium, keep the pinned button, or put it in the header.

**Picture:** Do: The button spans the width at the bottom, within thumb reach. Don't: A button floats mid-screen, out of easy reach. Do: Phone: pinned bar. Window: footer button at its own width. Don't: The upload button stretches across the footer.

### 3.14 On tools, place the control by its target  {#on-tools-place-the-control-by-its-target}

Default

**Rule:** On a dashboard or an editor, put each control next to the thing it changes.

**Why:** Closeness shows what a control affects and cuts the distance to travel.

- Put table actions in the toolbar above the table.
- Put field actions inside or beside the field.
- Group edit tools together, and put export in its own group.

**Picture:** Do: Export sits in the toolbar above the table it exports. Don't: A full-width Export button sits far from the table.

### 3.15 Keep the primary action in one place  {#keep-the-primary-action-in-one-place}

Default

**Rule:** Put the primary action in the same place on every screen of the same kind.

**Why:** People learn where to look once. A moving button forces a new search.

- Choose one position, such as the bottom, for each kind of screen.
- Use the bottom on a one-task phone screen (see [3.13](https://www.designguide.dev/r/anchor-the-primary-button-at-the-bottom.md)).

**Picture:** Do: Both form screens put the primary button at the bottom. Don't: One screen puts the primary button at the top right.

**See:** [3.13 Anchor the primary button at the bottom](https://www.designguide.dev/r/anchor-the-primary-button-at-the-bottom.md)

## Density, fold, and thumb reach {#s3-6}

### 3.16 Set density by input and task  {#set-density-by-input-and-task}

Default · Adapts

**Rule:** Use roomy rows for touch, and compact rows for a pointer in a tool that people use for repeated work.

**Wide screen:** On a wide screen, offer compact rows when a mouse is in use and the task repeats, and keep a comfortable choice. (Triggers: Fine pointer, Dense data)

**Why:** Touch needs large targets. A person in a tool scans many rows and wants more in view.

- A dense mouse row can be 32 to 40 px tall.
- Show 1 or 2 values per row on a phone.
- The choice and its save are in [Rule 5.22](https://www.designguide.dev/r/offer-two-densities-and-save-the-choice.md).

**Picture:** Do: Roomy rows with one idea per row. Don't: A 4-column table crams a tool layout onto a small screen. Size pair (Phone, 375; Window, 1280): Same 3 deliveries. The phone uses roomy rows. The window uses a compact table.

**See:** [5.22 Offer two densities and save the choice](https://www.designguide.dev/r/offer-two-densities-and-save-the-choice.md)

### 3.17 Put the key content above the fold  {#put-the-key-content-above-the-fold}

Default · Adapts

**Rule:** Place the hero, the primary button, and the status where they show before the first scroll, on the smallest screen.

**Wide screen:** On a wide screen, spend the extra height on context beside the hero, not on filler. (Triggers: Width 840+)

**Why:** Some people never scroll. What sits below the fold gets missed.  **When not:** A long reading screen, such as a policy, can scroll from the first line.

- Test on a small phone with a 667 px screen height.
- Anchor the primary button so it stays in view.
- Keep large images short.

**Picture:** Do: The step count and the primary button sit above the fold. Don't: A tall image pushes the primary button below the fold. Size pair (Phone, 375; Window, 1280): Same hero, button, and 2 workouts. The window adds a This week panel.

### 3.18 Place frequent actions in thumb reach  {#place-frequent-actions-in-thumb-reach}

Default · Phone only

**Rule:** On a phone, put frequent actions in the lower half of the screen, and put rare ones at the top.

**Why:** One thumb reaches the lower half with no stretch. The top corners need a stretch.  **When not:** A mouse window has no thumb zone. Rule [3.13](https://www.designguide.dev/r/anchor-the-primary-button-at-the-bottom.md) places the primary button there.

- Use the bottom for the tab bar and the primary button.
- Use the top for the title and 1 or 2 icons.

**Picture:** Do: The frequent action sits at the bottom, where the thumb rests. Don't: The frequent action hides in the top corner, out of reach.

**See:** [3.13 Anchor the primary button at the bottom](https://www.designguide.dev/r/anchor-the-primary-button-at-the-bottom.md)

## Promos, fine print, and consistency {#s3-7}

### 3.19 Keep a promo out of the main job  {#keep-a-promo-out-of-the-main-job}

Default

**Rule:** Place a promo after the main content, mark it as a promo, and do not show it over a task in progress.

**Why:** A promo that interrupts a task costs trust. See [1.4](https://www.designguide.dev/r/open-on-the-main-job.md).

- Label every promo with the same word, in the same place.
- Show a promo at most twice, then stop.
- Let the person dismiss it.

**Picture:** Do: A labeled promo sits below the task and does not block it. Don't: A promo dialog stops the person mid-task.

**See:** [1.4 Open on the main job](https://www.designguide.dev/r/open-on-the-main-job.md)

### 3.20 Place fine print where it applies  {#place-fine-print-where-it-applies}

Default

**Rule:** Place conditions, fees, and legal text next to the action they apply to, in readable size and contrast.

**Why:** A condition the person cannot find or read cannot be agreed to in good faith. See [9.13](https://www.designguide.dev/r/state-cost-fee-and-permanence-before-the-action.md).  **When not:** A long legal document can have its own page, with the key condition shown at the action.

- Use 12 px text or more, with 4.5 to 1 contrast.
- Write the key condition in plain words, not only a link.

**Picture:** Do: The cancel rule sits under the button it applies to. Don't: The same rule sits at the top, far from the button.

**See:** [9.13 State cost, fee, and permanence before the action](https://www.designguide.dev/r/state-cost-fee-and-permanence-before-the-action.md)

### 3.21 Never cut off the key fact  {#never-cut-off-the-key-fact}

Default

**Rule:** Wrap a long value or shorten the less important text before you cut the key fact.

**Why:** A cut key fact hides the answer the row exists for. See [9.18](https://www.designguide.dev/r/plan-for-text-30-longer.md) for other languages.

- Let a title wrap to 2 lines.
- Let a long name cut in the middle and keep both ends.
- Never cut a date or a number.

**Picture:** Do: The title wraps and the full date stays in view. Don't: The date ends in dots, so the time disappears.

**See:** [9.18 Plan for text 30% longer](https://www.designguide.dev/r/plan-for-text-30-longer.md)

### 3.22 Use one step scale for space and size  {#use-one-step-scale-for-space-and-size}

Default

**Rule:** Set every gap, margin, and padding from one scale of 4, 8, 16, 24, and 32 px.

**Why:** A fixed scale makes gaps match on every screen and gives an agent exact numbers.  **When not:** A drawn icon or image can use its own size; keep the space around it on the scale.

- Use 8 px inside a group and 24 px between groups.
- Use a 16 px margin on each side of a phone screen.
- Use text sizes from [3.5](https://www.designguide.dev/r/use-2-weights-and-up-to-4-sizes.md).

| Use | Value in px |
| --- | ---: |
| Gap inside a group | 8 |
| Gap between groups | 24 |
| Screen margin on a phone | 16 |
| Space under the hero | 32 |
| Gap between an icon and its text | 8 |
| Button and row height on a phone | 44 |
| Hero text size | 32 |
| Title text size | 20 |
| Body text size | 16 |
| Caption text size | 12 |

**See:** [3.5 Use 2 weights and up to 4 sizes](https://www.designguide.dev/r/use-2-weights-and-up-to-4-sizes.md)

## Themed headers and global bars {#s3-8}

### 3.23 Theme the header, keep the data zone fixed  {#theme-the-header-keep-the-data-zone-fixed}

Default

**Rule:** Let a theme change the header art, and keep the numbers and buttons on a fixed, neutral sheet.

**Why:** A loud theme can lower contrast or hide a target. A fixed data zone stays safe. See [Rule 15.6](https://www.designguide.dev/r/meet-the-contrast-ratios.md).  **When not:** A welcome screen with no data zone can theme fully if text keeps 4.5 to 1 contrast.

- Let the header show the object, tinted by type.
- Let the content sheet scroll up over the header art.
- Keep art short so the number shows before scroll ([Rule 3.17](https://www.designguide.dev/r/put-the-key-content-above-the-fold.md)).

**Picture:** Do: Art on top. Number and button stay on a plain sheet. Don't: Tall theme art pushes the number and the button below the fold.

**See:** [15.6 Meet the contrast ratios](https://www.designguide.dev/r/meet-the-contrast-ratios.md), [3.17 Put the key content above the fold](https://www.designguide.dev/r/put-the-key-content-above-the-fold.md)

### 3.24 Keep the global bar fixed on scroll  {#keep-the-global-bar-fixed-on-scroll}

Default · Adapts

**Rule:** Keep the bar with the 2 or 3 global actions fixed at the screen edge while the page scrolls.

**Wide screen:** On a wide screen, keep the global bar fixed as a rail, a top bar, or a sidebar that stays in view. (Triggers: Width 600+)

**Why:** A fixed bar shows what the person can do from any point of a long page.  **When not:** A reading view can hide the bar on scroll down and show it on scroll up.

- Hold 2 or 3 actions, each with a word.
- Main areas use [Rule 4.2](https://www.designguide.dev/r/use-3-to-5-labeled-tabs.md). This bar holds actions: mark none selected.
- The full chain of bar, rail, and sidebar is in [Rule 5.10](https://www.designguide.dev/r/move-navigation-from-bar-to-rail-to-sidebar.md).

**Picture:** Do: Three actions stay in one bottom bar while the list scrolls. Don't: The same three actions sit in the header and in the footer. Size pair (Phone, 375; Window, 1280): The phone keeps 3 actions in a bottom bar. The window keeps them in a top bar.

**See:** [4.2 Use 3 to 5 labeled tabs](https://www.designguide.dev/r/use-3-to-5-labeled-tabs.md), [5.10 Move navigation from bar to rail to sidebar](https://www.designguide.dev/r/move-navigation-from-bar-to-rail-to-sidebar.md)

## Wide screens and scroll {#s3-9}

### 3.25 Cap content width and line length  {#cap-content-width-and-line-length}

Default · Adapts

**Rule:** Cap the width of the content column, even in a large window, and keep the line length within [Rule 5.16](https://www.designguide.dev/r/cap-line-length-at-45-to-75-characters.md).

**Wide screen:** On a wide screen, center the capped column and use the extra width for panes or context, not longer lines. (Triggers: Width 600+)

**Why:** Long lines lose the start of the next line, and a stretched column is hard to scan.  **When not:** A table or a canvas can use the full width, because its cells are short.

- Rule [5.18](https://www.designguide.dev/r/cap-the-width-of-buttons-fields-and-sheets.md) caps the width of buttons and fields.

**Picture:** Do: Same article. The window caps the column and centers it. Don't: Same article. One line runs across the whole window.

**See:** [5.16 Cap line length at 45 to 75 characters](https://www.designguide.dev/r/cap-line-length-at-45-to-75-characters.md), [5.18 Cap the width of buttons, fields, and sheets](https://www.designguide.dev/r/cap-the-width-of-buttons-fields-and-sheets.md)

### 3.26 Pin the header and the action bar  {#pin-the-header-and-the-action-bar}

Default · Adapts

**Rule:** Keep the page header and the primary action bar in view while the content scrolls.

**Wide screen:** On a wide screen, pin the table header row and the first column, and keep the action bar in view. (Triggers: Width 840+, Dense data)

**Why:** A pinned header says where the person is. A pinned action bar keeps the main action in reach.  **When not:** A reading view can hide the pinned header (see [Rule 3.24](https://www.designguide.dev/r/keep-the-global-bar-fixed-on-scroll.md)).

- Pin only what the person needs at every scroll position.
- Keep a pinned part short, so content keeps the height.

**Picture:** Size pair (Phone, 375; Window, 1280): Same 3 orders. The window adds a Status column and pins the header row and first column.

**See:** [3.24 Keep the global bar fixed on scroll](https://www.designguide.dev/r/keep-the-global-bar-fixed-on-scroll.md)

### 3.27 Give each pane one scroll region  {#give-each-pane-one-scroll-region}

Default · Adapts

**Rule:** Scroll the page as one region, and nest a second scrolling area only for a wide table or a map.

**Wide screen:** On a wide screen, let each pane scroll on its own, and keep the header and the other panes still. (Triggers: Width 840+, Fine pointer)

**Why:** Two scroll areas in one place trap the wheel and the finger.

- Show a visible scroll bar when a mouse is in use.
- Keep a pane header outside its scroll region.

**Picture:** Size pair (Phone, 375; Window, 1280): The phone shows one page. The window shows a list pane and a detail pane, each with its own scroll.

## Forms and panes on a wide screen {#s3-10}

### 3.28 Keep a form in one column  {#keep-a-form-in-one-column}

Default · Adapts

**Rule:** Stack the fields of a form in one column, with each label above its field.

**Wide screen:** On a wide screen, keep one column at a capped width, and let short related fields share a row. (Triggers: Width 840+)

**Why:** One column gives one path down the page, and labels above fields read in one glance.  **When not:** A long settings page can use 2 columns if each section is its own group.

- Pair only fields that belong together, such as city and postal code.
- End the form with its action row (see [3.13](https://www.designguide.dev/r/anchor-the-primary-button-at-the-bottom.md)).

**Picture:** Do: A capped column pairs City with Postal code. Don't: With no cap, each row stretches across the window.

**See:** [3.13 Anchor the primary button at the bottom](https://www.designguide.dev/r/anchor-the-primary-button-at-the-bottom.md)

### 3.29 Align content across panes  {#align-content-across-panes}

Default · Desktop only

**Rule:** Start the titles and the first rows of side-by-side panes on the same top line.

**Applies with:** Width 840+

**Why:** A shared top line shows that the panes belong together.

- Give every pane a title of the same size.
- Use the same row height for lists in neighbor panes.

**Picture:** Do: Both pane titles share one top line. Don't: The detail title sits lower than the list title.

### 3.30 Group panes with space, not boxes  {#group-panes-with-space-not-boxes}

Default · Desktop only

**Rule:** Separate panes with a gap or a quiet fill, and never nest a bordered box inside a bordered box.

**Applies with:** Width 840+

**Why:** Rule [3.7](https://www.designguide.dev/r/group-by-space-first.md) holds on a wide screen too. Each extra box makes every edge weaker.

- Use one card for one unit, as in [3.8](https://www.designguide.dev/r/use-a-card-for-one-unit.md).
- Fill the list pane and leave the detail pane plain.

**Picture:** Do: A fill marks the list. One card holds the goal. Don't: Cards sit inside cards, so every edge competes.

**See:** [3.7 Group by space first](https://www.designguide.dev/r/group-by-space-first.md), [3.8 Use a card for one unit](https://www.designguide.dev/r/use-a-card-for-one-unit.md)
