---
title: "Recipe: content design"
description: "Chrome is the platform's; the content is yours: rows, grouping, where actions sit."
modificationDate: "2026-11-01"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Recipe: content design

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/recipes/content-design: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

```prompt Make my app's screens look designed
Make each screen of the Exact app in this folder show its purpose: a focal point, emphasis from parts, and a layout that fits a wide window. Use https://github.com/expo/exact/blob/main/docs/recipes/content-design.md as the source for each step. The Exact checkout has the same page at docs/recipes/content-design.md.

1. If this folder is not an Exact app (it has no exact.mjs and app.contract), stop and tell me.
2. Read app.contract and list each screen with its purpose and what you would change. Show me the list and ask before you change anything.
3. Leave the chrome to the platform: write no colour, font or size on bars, sheets, alerts, tabs or a form's controls. Give each screen's purpose a focal point: large type, a fill (the accent or a system colour) and room.
4. Replace each `button` that has a `background-color`, a `border` or a `font-size` with `RoundButton` or `AnswerTile`, the two parts that are controls. Draw content with the others: `SummaryCard`, `RingProgress`, `StatBar`, `RowText`, `Badge`, `DoneMark`, `EmptyState`. Import it with `use <Part> from "exact:content"`, and run `bun exact.mjs contract vocab <Part>` for its props and a call to paste. A `RoundButton` holds about 7 characters: for more words, use `button buttonStyle="filled"`.
5. Show a status as a `Badge`. Disable an action that cannot be taken and write the reason under it (in a grouped list, in the section's `footer`): never leave it enabled to refuse after the tap. Show each value once.
6. Fit a wide window. One number and its actions (a tracker, a timer) get a centred column with a `max-width`, and the row of buttons says `align-self="stretch"`. A list and its detail, or a dashboard of cards, get two columns: `flex="1 1 320px"` in a row that wraps.
7. Keep each `testId` and keep the existing tests passing without changing what they check.
8. Follow the platform checks in docs/start-here.md (`bun exact.mjs docs platform checks`) for the targets in the app's AGENTS.md and app.json until they pass. Read the reports, including counted findings; a zero exit code alone does not mean clean. Fix the app, not the test. If a finding stays after three rounds of fixes, or the app had it before you changed anything, record it (step 9) and report it; do not keep trying.
9. When a doc was wrong or missing, or a step needed a workaround, read `bun exact.mjs feedback status`. Under `never`, keep no note. Otherwise record it: `bun exact.mjs feedback note "<what happened>"`, which goes to Expo only as that status says. Do not change the policy; tell me how many notes you kept.
10. Tell me what changed on each screen and which parts you used, any screen you left as it was and why, what the tests and checks reported, and the launch command for each target platform.
```

- **Chrome is the platform's** (bars, sheets, alerts, tabs, a form's controls: unsaid, native,
  dark-aware); **the content is yours:** rows, grouping, where actions sit. The screen's
  purpose gets a focal point: large type, a fill (the accent or a system colour), room.
- **Emphasis is a part, not paint on a control.** A `background-color`, `border` or
  `font-size` on a `button` makes it your own box; the parts keep a button's semantics, a
  44-point target and legible ink. `contract vocab <Part>` gives each one's props and a call to paste:
  `RoundButton`, `AnswerTile`, `SummaryCard`, `RingProgress`, `StatBar`, `RowText`, `Badge`,
  `DoneMark`, `EmptyState`. `RoundButton` keeps an 80 px circle (about 7 characters)
  and its title the default body size at every text size, as the Clock's. For more words or a
  width that grows with text, use `button buttonStyle="filled"`.
- **A status is a `Badge`** ("Full" beside the title). **An action that can't be taken is
  disabled with its reason** under it (`disabled=full`; in a grouped list, the section's
  `footer`), never left enabled to refuse after the tap.
- **A wide window gets the composition the content wants.** One number and its actions (a
  tracker, a timer): a focused column, centred, with a `max-width`. A list and its detail, or a
  dashboard of cards (the hero leads, `pattern dashboard`): two columns (`flex="1 1 320px"` in a
  wrapping row).
- **A value is shown once:** a `SummaryCard`'s number with a second, larger copy beside it is a slip.

A timer is one number and its buttons: a centred `max-width="22.5rem"` column keeps
them together and grows with the root font. The column centres the readout, so the row says
`align-self="stretch"`; else it shrinks to its content and bunches them.

```contract
use RoundButton from "exact:content"

component Stopwatch
  state running = false
  state laps = 0
  action toggle
    running = not running
  action lapOrReset
    laps = running ? laps + 1 : 0
  view
    column align-items="center" gap=32 padding=24 max-width="22.5rem" margin-left="auto" margin-right="auto"
      text "00:12.40" font-size="4.5rem" font-variant-numeric="tabular-nums"
        -exact-fit="shrink" white-space="nowrap" testId="readout"
      row align-self="stretch" justify-content="space-between"
        RoundButton(label=(running ? "Lap" : "Reset"), tint=none, press=lapOrReset, disabled=(not running and laps == 0), testId="lap")
        RoundButton(label=(running ? "Stop" : "Start"), tint=some(running ? "-exact-system-red" : "-exact-system-green"), press=toggle, disabled=false, testId="start")
```

A quiz: one tile an answer, told in place.

```contract
use AnswerTile from "exact:content"

component Quiz
  state picked = ""
  action pick(a: string)
    picked = a
  view
    column gap=12 padding=16
      for a in ["Mars", "Jupiter", "Venus"] key=a
        AnswerTile(label=a, status=(picked == "" ? "idle" : a == "Jupiter" ? "correct" : a == picked ? "wrong" : "dimmed"), press=pick(a), testId=`answer-${a}`)
```
