A card is a painted surface that sets one piece of content apart from the text around it. The mobile app paints very few surfaces, and all of them sit inside reading content or a chat transcript, where the platform has no grouped list to draw them. This page lists every one and the values they share.
-exact-secondary-background.The shared recipe
Every card uses the same three decisions:
Background: the platform role -exact-secondary-background, light grey in light mode and dark grey in dark mode. No card has a colour literal. The one branded surface is a person's own chat bubble, on the token brand.fill. See Color and tokens.
Radius: 12 points for a card that links to a document, 10 for a block inside content (code, media, tool and run cards), 18 for a bubble, 999 for a pill. See Spacing, radii and sizes.
No shadow and no border. A card is told apart from the page by its fill alone. The only edges are the embed card's 3-point brand left edge, a quote's 3-point -exact-separator left edge, and 1-point -exact-separator hairlines between rows.
The Exact guide explains why the role matters: "A card on a plain page is -exact-secondary-background (light grey, dark grey)", while the grouped role would vanish on a white page (agent-pitfalls.md).
Every surface
The app paints 13 surfaces: the embed card, query card, "In this space" panel, code block, media row, image block, button block, comment bubble, two chat bubbles, tool card, run card and the composer field. Each one's background, radius and padding is listed on Every card surface, with the status panels that the platform draws.
Card or list row
Use a card when | Use a row when |
|---|---|
The item interrupts reading content: an embed, a code block, a tool call in a transcript | The item is one of several peers and the screen is a list of them |
The item has a cover image or more than three lines | The item is a title, one secondary line and a trailing value |
The surrounding list is drawn as written, so nothing else would draw an edge | The screen is an inset grouped list, where the platform draws the cell |
A query block can render either way: the document's author chooses "Card" or list style, and the app follows it (cards through DocCard, rows through DocItemRow). This choice belongs to the content, not to the app.
Do and do not
Do use -exact-secondary-background for any new card on a reading screen. Do not write a hex colour.
Do keep one radius per kind: 12, 10, 18 or 999.
Do not nest a card inside a card. The tool card's input and output are plain monospace text, not an inner surface.
Do not add shadows. None exist in the app.
Why
DESIGN.md's first principle is to "paint only content: document typography, comment bubbles, avatars". Cards are the smallest amount of paint that still lets an embedded document, a code block or a tool call read as a unit. DESIGN.md lists radii 10 and 18 only and names brand.subtle for the "embed card edge"; the built app also uses 12, 20 and 999, and the embed edge is brand (brand.subtle is not used anywhere in the contracts).
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-READ-02 Read a document: The code box and the media row surfaces
US-READ-08 See the documents under and inside a document: When a card is used; the "In this space" panel
US-AGENT-06 See what the agent is doing: Grey cards for work, bubbles for speech
US-VAULT-01 Connect my vault to bring my identities to this phone: The status panel treatment
US-VAULT-02 Keep my identities in sync across devices: The status panel treatment
US-APP-01 The app feels like an iPhone app: The surfaces the app paints itself, and when a card beats a row
US-APP-03 Use the app in light or dark: Painted surfaces use a role that follows the scheme
Related
Lists, Light and dark, Leave it unsaid, Reading first. Implementation: Shared components and visual design. Source: block surfaces at read.contract L197-L253, DocCard at read.contract L153-L178, bubbles at discuss.contract L66-L67 and agents.contract L580-L590, tool and run cards at agents.contract L297-L301 and agents.contract L426-L431.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime