The mobile app sets no font and almost no font size. Text is the system font in a named platform text style, so every size follows the reader's Dynamic Type setting. The app adds two type tokens for reading and a handful of weights. This page maps every style in the Contract files to what it is on an iPhone and where it appears.
type.reading with an underlined link and inline code, a title3 "Discussion" heading, and a headline label on the pill. The screenshot is older than the code: documents now have a large title under the bar, and the summary is in the label colour.Text styles
The app names eight platform text styles. From most to least used: -exact-footnote (61), -exact-caption1 (19), -exact-subheadline (18), -exact-headline (17), -exact-callout (9), -exact-title3 (5), -exact-title2 (4), -exact-body (3 named, plus every unstyled text). Bar titles and grouped list headers are typed by the platform. The mapping to iOS styles, default sizes and uses is on Text styles in use.
Type tokens
app.tamber defines two:
Token | Value | Use |
|---|---|---|
|
| Document paragraphs: body size with a 1.4 line height, "roomier leading" than the system's |
|
| Code and math blocks: footnote size, 1.4 line height, monospace |
Both are built on text styles, so they scale with Dynamic Type too.
Weights
Weight is left to the text style except in a few places: 700 on heading blocks, the author's name, "Discussion" and the banner card title; 600 on comment author names, the document byline names, avatar initials and non-banner card titles. Everything else is regular, or semibold where the style is headline. Emphasis inside text comes from Markdown.
Markdown text
Text that came from a document, a comment or an agent is drawn with markup="markdown": paragraphs, headings, tables, image captions, comment bubbles, chat messages and an agent's system prompt. As the screenshots show, bold and italic are the system font's own, inline code is monospace, and a link is underlined in the text colour, not teal. Inferred: links keep the text colour so a paragraph with many links stays calm, in line with Reading first. Document and comment text can be selected (user-select="text").
Monospace
Where | Style |
|---|---|
Code and math blocks |
|
Tool input and output in AgentToolRow |
|
Account ID on Identity detail |
|
Exported key |
|
Recovery words in the recovery phrase grid | Body size, monospace |
Monospace marks text that must be copied exactly. It is never used for decoration.
Other text treatments
Tabular figures (font-variant-numeric="tabular-nums"): the comment count in the document bar and the numbers in the recovery phrase grid, so digits do not shift.
Uppercase: one label, "In this space", by text-transform="uppercase". Grouped list headers are cased by the platform.
Clamping: summaries clamp to 2 lines in rows and cards (3 in a banner card and an embed), card titles to 2, one-line metadata to 1.
Capped sizes: avatar initials use min(-exact-title2, 24px) and min(-exact-footnote, 12px), the only capped text, so the letter stays inside its circle.
Do and do not
Do pick a text style by role in the hierarchy. Do not write a point size.
Do use -exact-secondary-label with a smaller style for secondary text, not a lighter weight.
Do use type.reading for long-form text and nothing else.
Do not introduce a font family other than the system font and monospace.
Why
DESIGN.md: "Type: platform text styles only … and the two type tokens." Exact's guide gives the reason: "Type: say a heading, not a size", because a named style is "sized for the reader's Dynamic Type by Apple's own ramp" (contract-for-agents.md). The one typographic opinion the app holds is the reading column: body size, 1.4 leading, at most 40rem wide.
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-01 Open the app to my site's home: The large title and the reading text styles
US-READ-02 Read a document: type.reading, type.code and the heading sizes
US-DISC-02 Read a thread: Body for the root, callout for replies, footnote for times
US-ID-04 See and share my account ID, and name my key on this device: Monospace footnote for the identifier
US-ID-05 Back up my key: Monospace caption for the key file
US-APP-04 Use the app with large text and assistive technology: Every text size is a system text style
Related
Accessibility, Spacing, radii and sizes, text, DocBlockView, Voice and wording. Implementation: Tamber design tokens, Read: blocks to rows and inline Markdown. Source: block typography at read.contract L191-L207, the capped initials at ui.contract L18-L21.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime