row, column and view
The three layout boxes: what each is for, the handful of recurring arrangements they make, and the spacing values the app uses on them.

row, column and view draw nothing by themselves. They are the boxes that place other elements: row side by side, column one under another, view a bare box. Seed Exact writes 104 columns, 49 rows and 3 views. Everything the app paints itself (bubbles, cards, the reading column, avatars) is one of these with a background, a radius or a border.

What they are

row and column are flex containers with the direction their name says. view is a plain block. They take CSS layout attributes by their CSS names. On iOS they are ordinary views laid out by the framework, with no platform look, so they are the right element for content and the wrong one for chrome (Primitive elements).

Recurring arrangements

Arrangement

Written as

Uses

Screen root

column navigationKey=eid … position="absolute" inset=0

One per screen component: 23, plus the test fixture (main)

Reading column

column padding=… max-width="40rem" width="100%" box-sizing="border-box" align-self="center"

10: every band of Document, All comments, Thread, Compose

Media and text row

row gap=12 align-items="center" with an avatar or symbol, then column flex=1 min-width=0 gap=2

Identity, author and activity rows

Two line cell

column flex=1 min-width=0 gap=2 or gap=4 holding a title and a secondary line

The most common column: flex=1 appears on 26, min-width=0 on 22

Card

column with background-color="-exact-secondary-background", border-radius 10 or 12, padding 12 or 14

Code blocks, the child list, AgentToolRow, AgentRunCard

Bubble

column with border-radius=18 and padding="8px 12px"

DiscussBubble

Hairline between rows

column border-top-style="solid" border-top-width=1 border-color="-exact-separator", off for the first

5: child list, query list, discussion threads

Composer outline

row align-items="flex-end" border-radius=20 border="1px solid -exact-separator"

2: DiscussComposer, Agents composer

Disc

row width=n height=n border-radius="50%"

Avatar initial, the 8 point unread dot

Wrapping meta line

row gap=6 align-items="center" flex-wrap="wrap"

8 rows wrap, so they survive large text

Spacer

view flex=1

All 3 views: two in DocCard, one zero height spacer in the card grid

Attributes in this app

Attribute

row

column

Values seen

gap

30

56

2, 3, 4, 6, 8, 10, 12, 14

align-items

33

2

center mostly; baseline for a name with a time; flex-start for avatar with bubble; flex-end in composers

padding (all forms)

15

29

4, 6, 8, 10, 12, 14, 16, 20, 24, 40

flex, min-width

1, 2

26, 22

flex=1 min-width=0: take the remaining width and allow wrapping

flex-wrap

8

0

wrap

max-width, align-self

1, 0

10, 10

40rem, center

background-color

2

6

-exact-secondary-background, -exact-background, the avatar hue, brand (unread dot)

border-radius

5

5

10, 12, 18, 20, 50%

navigationKey, navigationScroll, navigationPresentation

0

24, 22, 10

Screen roots only

role

1

1

tablist on the tab bar row, tabpanel on each tab's panel

aria-label

4

0

Groups that read as one thing: face pile, comment count, unread dot, avatar disc

A row or column with no attributes inside a grouped list section is simply a custom row of the card: for example row holding "Model" and its value on Agent detail.

Used by

Where it is written

row

column

view

Document and site home (DocScreen)

2

10

0

Directory sheet (DirectoryScreen)

1

2

0

Author profile (AuthorScreen)

1

2

0

Open site sheet (OpenSiteScreen)

0

1

0

All comments (DiscussAllScreen)

0

3

0

Thread (DiscussThreadScreen)

0

3

0

Compose comment sheet (DiscussComposeScreen)

0

3

0

Activity inbox (ActivityScreen)

3

4

0

Email notification settings (ActivityEmailScreen)

0

1

0

Agents list (AgentsScreen)

0

5

0

Agent detail (AgentDetailScreen)

2

2

0

Agent session (AgentSessionScreen)

3

7

0

New agent sheet (AgentCreateScreen)

0

1

0

Providers sheet (AgentProvidersScreen)

1

3

0

Agent server sheet (AgentServerScreen)

0

1

0

Me (MeScreen)

2

5

0

Identity detail (MeIdentityScreen)

1

2

0

Create identity sheet (MeCreateScreen)

4

1

0

Import identity sheet (MeImportScreen)

1

1

0

Server (MeServerScreen)

1

5

0

Edit profile (ProfileScreen)

0

2

0

Vault (VaultScreen)

2

5

0

Connect vault sheet (VaultConnectScreen)

0

3

0

Avatar (named component)

1

0

0

StatusLine (named component)

1

0

0

FacePile (named component)

2

0

0

CommentCount (named component)

1

0

0

DocItemRow (named component)

1

1

0

DocCard (named component)

1

1

2

DocBlockView (named component)

6

7

1

DocDiscussionSlot (named component)

0

1

0

DiscussBubble (named component)

2

2

0

DiscussSection (named component)

1

4

0

DiscussComposer (named component)

3

1

0

AgentError (named component)

1

0

0

AgentToolRow (named component)

1

5

0

AgentChildRow (named component)

0

1

0

AgentContextRow (named component)

0

2

0

AgentRunCard (named component)

3

2

0

ProfileForm (named component)

0

2

0

the root App component (app shell and the test fixture route)

1

3

0

Total

49

104

3

Rules for use

    Use spacing from the app's scale: 4, 8, 12, 16, 20, 24, with 2 and 6 for tight pairs (Spacing, radii and sizes).

    Give the text column of any row flex=1 min-width=0, or long words push the trailing element off screen.

    Let meta lines wrap (flex-wrap="wrap") so the largest text sizes do not clip (Accessibility).

    Cap reading content at max-width="40rem" and centre it. This is the "calm column" of Reading first.

    Colour boxes with roles and tokens only: -exact-secondary-background for cards, -exact-separator for lines. No hex values (Color and tokens).

    Do not use these to imitate a platform control. A row of boxes that looks like a list, a switch or a bar is a defect; use list and section or bars.

    Inside a grouped list, write no padding at the ends of a custom row. The cell already has its margins.

Why

Principle 1 of DESIGN.md says to "paint only content: document typography, comment bubbles, avatars". These three elements are where that painting happens, and the short list of arrangements above is the whole of the app's custom drawing. Keeping it this small is what lets the rest follow the platform (Leave it unsaid). The painted shapes themselves are catalogued in Cards and panels.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime