Primitive elements are the tags of the Contract language. They look like HTML and they mean what HTML means, and on iOS each one becomes a UIKit control or a plain laid-out box. Every screen and every named component in Seed Exact is made of these 19 tags. This section documents each one as the app uses it: the attributes it actually carries, how many times it is written, and the rules that keep the screens consistent.
The elements
Counts are the number of times the tag is written in the nine Contract files at the documented commit.
Element | Meaning in Contract | What iOS draws | Uses | Page |
|---|---|---|---|---|
| The app root and navigation root | The window: navigation stacks, sheets, tint | 1 | |
| A route's bar, or a section's title | Navigation bar; grouped list section header | 52 | |
| A section's note | Grouped list section footer | 15 | |
| A scroller of rows |
| 22 | |
| A group of rows in a list | One inset card with separators | 64 | |
| A scroller of anything | A scroll view | 2 | |
| A run of words, plain or Markdown | A label in a system text style | 369 | |
| A picture or a symbol | An image view or an SF Symbol | 61 | |
| Something pressed to act |
| 117 | |
| Something pressed to go to a URL | A pushing list cell, or a pressable box | 19 | |
| A one line field, or a switch |
| 15 | |
| A multi line field | A text view | 6 | |
| One choice from a menu | A pop-up button with its menu | 1 each | |
| A question over the screen |
| 5 | |
| Work in progress |
| 6 | |
| Layout boxes | Plain views laid out by flexbox | 49, 104, 3 |
Tags the app never writes
Tag | What the app does instead |
|---|---|
| Every field is named by |
| There is no |
| Not an element in this app. The word appears only as data: a document's summary, a profile's "Summary" field. Exact's |
Other tags Contract offers and the app does not use: table, time, hr, article, aside, box. Tables inside documents are rendered as Markdown by text (DocBlockView).
The idea behind them
Exact's rule is "Say what a thing is and leave how it looks unsaid". A button with no styling is the platform's button; a list of sections is the Settings list; a header with a heading is the navigation bar. The moment an element is given a background, a border or a radius it becomes the app's own painted box and the platform look is gone. So the screens fall into two kinds of writing:
Chrome is unsaid. Bars, grouped lists, alerts, fields and switches carry almost no style attributes. Of 52 headers, none sets a colour or a size.
Content is painted. Reading typography, bubbles, cards and avatars use row and column with roles and tokens, never hex colours.
This is the first principle of DESIGN.md (Leave it unsaid) and it is enforced by the framework's lint rules (How the framework shaped the design). Which attributes are tokens and roles is covered in Color and tokens, Typography and Spacing, radii and sizes.
Attributes every element shares
testId: the handle tests use. On Read and Discuss screens it is only set on the visible screen. It is not shown to people.
aria-label, aria-hidden, role: what assistive technology reads (Accessibility).
CSS style attributes by their CSS names (padding, gap, border-radius, color, font).
Related
Parent: Component toolkit
Patterns built from these: Lists, Forms and inputs, Buttons and actions, Composers
How it is built: The Contract language, Contract views and built-in calls, Tamber design tokens
Exact's own table of what each host draws: contract-for-agents.md, card.md
In this section
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime