A Seed document is a tree of blocks. The app flattens it into a list, and DocBlockView draws each entry. It is a named component defined in read.contract L180-L253, and it is where the document typography of Seed Exact is decided.
Used by
Parent | Where |
|---|---|
Document and site home ( | Once per block, each in a column padded 6 points above and below and 20 at the sides, capped at |
It uses FacePile, DocCard and DocItemRow.
Props
Prop | Type | Effect |
|---|---|---|
| a block | Its |
| flag, number | For tests only |
The frame around every block
Every kind sits in the same row, 8 point gap, aligned to the top:
Nesting. The row is padded 16 points on the left per level of depth. A block nested under another is indented one level. Ordinary blocks under a heading are not indented: a heading organises, it does not nest. A list under a heading is indented like any other list.
List marker. A child of a bulleted list gets "•"; a child of a numbered list gets "1.", "2." and so on. The marker is -exact-body in -exact-secondary-label, right-aligned in a box at least 18 points wide, so numbers line up on their dots.
Quote. A child of a block quote gets a 3 point left border in -exact-separator and 12 points of padding after it.
Markers, indentation and quote bars apply to any kind: a bulleted image or a quoted code block works.
Kinds
text
A paragraph. Markdown text in the type.reading token (-exact-body at 1.4 line height), -exact-label, selectable. Inline styles: bold, italic, strikethrough, inline code and links. A mention of a person or document appears as a link with their name. Underline and text colours in the source document are dropped. Consecutive paragraphs sit 12 points apart.
heading
Markdown text, weight 700. A top-level heading is -exact-title2 with 16 points of space above; a heading nested under another is -exact-title3 with 8 points. There are two sizes only, however deep the outline goes.
code and math
A box filled with -exact-secondary-background, radius 10, padded 12 by 14 points. An optional caption in -exact-caption1 grey names the language. The body is the type.code token (-exact-footnote at 1.4, monospace), selectable, with long lines wrapping (pre-wrap) and not scrolling sideways. Math is shown as its source text in the same box; it is not typeset.
image
Full width, at most 480 points tall, radius 10, scaled to fit without cropping. A caption follows in -exact-footnote grey and may contain links. VoiceOver reads the image's name, or "Image".
table
A Markdown table in -exact-callout, one step smaller than body text so more columns fit. The platform's Markdown renderer draws the grid.
embed and query
A reference to another document (a card with a 3 point brand edge) and a live list of documents (a card grid or rows). These have their own page: DocBlockView: embed and query blocks.
button
A pill: brand fill, radius 999, padded 8 by 16 points, with its label in -exact-headline white (ink.on-brand). It hugs its label at the left edge and never stretches. The label is the button's name, or "Open". Tapping follows its link.
media
Video, file and web embed blocks become one quiet row: -exact-secondary-background, radius 10, 12 points of padding, a brand symbol (symbol:play, symbol:document or symbol:link), a title in -exact-callout and a second line in -exact-footnote grey ("Video", "File", or the web address). Tapping opens the file or page. Nothing plays inline.
A block of a type the app does not know is shown as a paragraph if it has text, and skipped otherwise.
Rules for use
Only the document screen uses it. Comments have their own text treatment in DiscussBubble.
A new block type becomes a new kind here, inside the same frame, so lists and quotes keep working.
Colours are platform roles or brand. No kind sets a colour literal. See Color and tokens.
Why it looks this way
Reading first. DESIGN.md: "a calm column with excellent type (max-width="40rem", body at -exact-body, headings on the platform's title scale, generous paragraph spacing)". Every style here is a platform text style, so the whole document follows Dynamic Type. See Reading first, Typography and Accessibility.
Painted, by design. Principle 1 lists "document typography" among the things the app paints itself. See Leave it unsaid.
Quiet fallbacks. Media the phone app cannot render in place becomes a row that opens it, not a broken player. See Honest state.
Grey markers. The bullet is secondary so the eye lands on the words (inferred).
Differences from DESIGN.md: code wraps and does not scroll horizontally; math shares the code box and is not "a quiet row"; a button is a brand pill, not a quiet row; the query block also has a card grid; the embed's edge is brand, not brand.subtle.
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: Draws the body of the home document
US-READ-02 Read a document: Draws every block of the body: text, heading, table, code, math, image, button, media
US-READ-03 Follow links between documents: Inline links and mentions in text, button blocks, media rows
US-READ-08 See the documents under and inside a document: The block view that hosts embed and query kinds
Related
Parent page: Read components. Panels: Cards and panels. Spacing: Spacing, radii and sizes.
How it is built: Read: blocks to rows and inline Markdown, Read: screens and components, Tamber design tokens.
Source: read.contract L180-L253, block kinds in src/read/markdown.ts.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime