---
title: "Built-in tags"
description: "The compiler's built-in tag vocabulary is grouped here by use."
modificationDate: "2026-11-30"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Built-in tags

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/reference/contract-grammar/built-in-tags: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

The compiler's built-in tag vocabulary is grouped here by use. It is not an
HTML parser: arbitrary HTML names outside this table are not implicitly accepted.
Several tags share a kernel node type with different fixed properties.
`radiogroup`, `tablist` and `menu` have group keys; other composite widget roles
warn with `lower-role-keys` unless they handle keys, another element names their
literal `id` with `aria-controls`, or a toolbar has `toolbarPlacement`.

| Family | Names |
| --- | --- |
| Boxes / layout | `view`, `box`, `row`, `column`, `scroll`, `list` |
| Structure | `main`, `header`, `nav`, `section`, `footer`, `article`, `aside`, `dialog`, `hr` |
| Tables / description lists | `table`, `caption`, `thead`, `tbody`, `tfoot`, `tr`, `th`, `td`; `dl`, `dt`, `dd` |
| Text and controls | `text`, `h1`–`h6`, `time`, `button`, `link`, `input`, `textarea`, `select`, `option`, `progress` |
| Media / metadata | `image`, `video`, `audio`, `iframe`, `canvas`, `head` |
| SVG scene | `svg`, `g`, `path`, `polyline`, `polygon`, `circle`, `ellipse`, `line`, `rect` |
| SVG definitions | `defs`, `symbol`, `use`, `clipPath`, `marker`, `mask`, `pattern` |
| SVG color / text / embedding | `linearGradient`, `radialGradient`, `stop`, `tspan`, `foreignObject` |
| SVG filters | `filter`, `feBlend`, `feColorMatrix`, `feComponentTransfer`, `feComposite`, `feConvolveMatrix`, `feDiffuseLighting`, `feDisplacementMap`, `feDropShadow`, `feFlood`, `feFuncR`, `feFuncG`, `feFuncB`, `feFuncA`, `feGaussianBlur`, `feMerge`, `feMergeNode`, `feMorphology`, `feOffset`, `feSpecularLighting`, `feTile`, `feTurbulence`, `feDistantLight`, `fePointLight`, `feSpotLight` |

`h1` to `h6` are `text role="heading" aria-level=1` to `6` (LLP 1116.017 D1). `text` inside SVG has SVG semantics. A hyphenated tag names a native module: the
bake checks it against `app.json`'s `modules` list or a dependency's `exact.json`
`views` (`bake-unknown-module`). An app module's unknown attributes, and an SVG
element's own props, pass to the module as one object. A package view accepts only
its declared props and events beyond standard box attributes and common module
events; an undeclared attribute is `lower-native-attr`.
A literal `role` must name a concrete ARIA role, or it is refused.

| ARIA attribute | Value | Meaning |
| --- | --- | --- |
| `aria-actions` | Space-separated element ids | Offers each target's press under its accessible name. A literal reference must name another element with a literal id in the expanded view and a press handler or link destination. Computed references resolve against mounted elements. |

A known attribute binds to the module's box, and the box takes only layout,
box and paint rows, handlers, `testId`, `id`, `class`, `data-*`, `role`, ARIA,
`disabled` and `inert`; any other known name (`color`, `value`, `command`, `href`)
is `lower-native-attr` (LLP 1024 D1, LLP 1088 D7.2). A package cannot declare a
view prop whose name writes a layout row (`width`, `padding`, `flex`): the bake
refuses the declaration with `bake-view-prop-layout`, naming the package, view
and prop. Other declared props go to the view when written on the tag, even
under a known name (`exact-camera`'s `object-fit`). A class's rows style only
the box: `object-fit` in a class never configures the camera's viewfinder;
write it on `exact-camera` for that. A renamed spelling (`fontSize`) is refused
whatever is declared. A capitalized name is a component use, not a
built-in tag. Platform support can further restrict an admitted tag, notably
native `foreignObject`.

On an `iframe`, `zoom` multiplies the frame's own lengths and the guest's page zoom.
A frame sized by its container keeps that size. On macOS, `zoom` can change where text
wraps. `scale` preserves the guest's layout and can soften text when enlarged.

`contract vocab` lists every tag and attribute the compiler admits, including
`h1`–`h6` and the compile-time attributes `class`, `part` and `-exact-row-look`,
with each style row's codec, values and default, the renamed spellings and the
contextual restrictions: `cargo run -q -p contract -- vocab padding` for one
name, no name for the card (what an app writes, at most 12 KB), `--all` for everything,
`--json` for the same entries as JSON. From an app made by
`exact new`, run `bun exact.mjs contract vocab`.
`padding`, `margin`, `inset`, `border-width`, `border-style` and `border-color` take
CSS's one to four values (`padding="12px 40px"`: top and bottom 12, sides 40), and
`border-radius` its one to four corners (`border-radius="18px 18px 0 0"`: top-left,
top-right, bottom-right, bottom-left; no `/` elliptical radii), as a literal or a
literal arm; `gap` takes its row and column gaps, and `overflow` and
`overscroll-behavior` their x and y values, the same way (`gap="8px 16px"`,
`overflow="hidden auto"`). A template is split the same way at its own text's white space,
each interpolation part of one value that also holds text, outside parentheses
(`` border-radius=`${r}px ${r}px 0 0` ``: the top corners `r`). Another list (`` `${a} ${b}` ``,
a concatenation, a `fn` that returns one) is refused
(`lower-css-shorthand`): write the longhands, each of which may be computed. A computed
single value (`padding=pad`) is every side's.
An empty or whitespace-only string explicitly clears a style row: it keeps the
author's declaration without an own value (inherited on inherited rows, otherwise
initial). For example, `background-color=dot` with `dot` `""` overrides class and
platform fills with a transparent background. An absent optional value (`none`)
removes the binding's declaration and exposes those lower-priority values.
`border-style` and each `border-<side>-style` accept `none`, `hidden`, `solid`,
`inset`, `dotted` and `dashed`. The two patterned styles keep their authored
border widths in layout. AppKit, UIKit and Linux paint their dots and dashes;
`column-rule-style` still accepts only `none`, `hidden` and `solid` on native hosts.
CSS hyphens are part of the authored name. `testId` and admitted host-specific
props retain their declared spelling.
`text-wrap-style="balance"` and its `text-wrap="balance"` shorthand are
inherited; `auto` restores ordinary greedy wrapping. `pretty` and `stable` are refused with the supported values, `auto | balance`. Every host balances the
lines before a paragraph's first forced break, up to six, where Chrome
breaks them (LLP 1001 §6).
`-webkit-font-smoothing` takes `auto` or `antialiased` and is inherited; `none`
and `subpixel-antialiased` are refused. It changes how glyphs paint, never how
text measures (LLP 1019 D12).

`-exact-hairline` is a length every length row takes but a font's size and line
height (LLP 1115.000 D10.3): one
device pixel, 1 px over the display's scale, which each host tells the kernel as
it tells it the root font size (UIKit's `displayScale`, AppKit's
`backingScaleFactor`, the browser's `devicePixelRatio`, the pixels a point a
Linux, Android or Windows shell draws at; 1 where a host says none). It is a
third of a point on a phone and half on a Retina Mac, in layout and in paint,
and follows a window to another display. Write it where a separator's
thickness was `0.5`, which is one device pixel only at 2x: `border-width`, the
`border` shorthand (`border-bottom="-exact-hairline solid -exact-separator"`), a
`height`, a `gap`; literal or bound. `hr` is that line: one solid top edge a
hairline thick in the separator role, as wide as what holds it (a flex column
included), with no margin of its own. Its `color`, `border-*` and `margin` are
yours to write.

`-exact-accessory-checkmark-width` and `-exact-accessory-checkmark-height` are
length ramps (LLP 1137): UIKit's list-cell
checkmark at the root font size, growing with the text size as a text style
does (19 × 17.33 at the default size, 48 × 43.33 at the largest). They are
taken where `-exact-hairline` is; a grouped list's checkmark in a row of your
own already has them on iOS. `-exact-accessibility-stack-gap` is 8 through the
largest standard size and wider than any line at the accessibility sizes: as
the `column-gap` of a row that wraps, it stacks the row's items there, as
UIKit's cells do (a grouped row's title and value already take it on iOS).

`-exact-row-look="platform"` on an element says its box's look (its
`background`, `border`, `padding` and `box-shadow` rows) is its own where it stands
alone and the platform's row where it is a grouped list's row (LLP
1139): there those rows are dropped
and the list draws the row, as Exact Content's `AnswerTile` is a tile in a quiz and a
list's cell in a poll. Elsewhere it does nothing. A grouped row's edge or background
image its author wrote otherwise stays the author's on every host, iOS's carried row
included.

An `image` takes no `loading` attribute: Exact decides when its picture is fetched
(LLP 1048.007 D5). On the web a lone image loads with the page, and the page's first
one is preloaded at high priority. An image a `for` repeats is written `loading="lazy"`, the first
screen's rows included: the browser fetches those at the page's first layout, not
while it parses the document, and the rest as they come near. Native hosts fetch the
picture of every image that is mounted.

A `button` is the platform's own control by default (LLP
1104 D1). Your bare box
(`appearance="none"`, or a button given a background, border, radius or rich
children) lays out as Chrome's `<button>` does with Exact's reset (LLP
1001 §1): a block that shrinks to fit, whose
content is centred in its height (safely: content taller than the button
starts at the top) and whose text is `text-align: center`. `align-items`,
`justify-content` and `gap` do nothing on it, as on any block. Write
`display="flex"` (a row, CSS's default) or `display="grid"` to lay its
children out yourself; Chrome does not centre a flex or grid button's content.
Write `text-align="start"` for a row- or card-like button whose text reads
from the left. Declared: it is block-level, not `inline-block`, so buttons in
a block parent stack (put them in a `row` to set them side by side).

A link (`link href`, a text run's `href`, a Markdown link) to a path in the
app (`/note/3`, one of its declared routes) navigates in it, through the
navigation root's `navigate`, on every host; a path that names no route (a
file beside a document) is the browser's, or natively the app's document to
open. When a `link` or inline text run has both `href` and `press`, a plain
tap or `Enter` runs `press` and does not follow `href`, on every host;
`href` still supplies the URL for modified or non-primary clicks, `target`,
`download`, context menus, drags, and accessibility. An `href` that turns
out empty is no link: the run or `link` has no
link colour, role or pointer and follows nothing, on every host, so a
component may write `href=r.href` on every run and leave plain prose's empty.
A relative path (`note/3`) has no base natively; write it from `/`. One to an absolute URL (`https://…`, `//…`) leaves the
app: natively it opens in the system browser (the Linux host has none and
logs it), and on the web in a new
browsing context (`target="_blank" rel="external noopener"`), so the app is
still there when the reader comes back. On the web, `target="_self"` keeps
such a link in the page (it replaces the app). `mailto:` and `tel:` links go
to their handlers everywhere.

A link to one of the app's paths goes where its `target` says, as HTML's does
(LLP 1030.004). Empty, `_self`, `_parent` and `_top`, in any case, navigate in
place; `_blank` opens a new window at the path each press; any other name opens
the window of that name there, or brings it forward, navigated to the path when
it shows another. A literal name that starts with `_` and is no keyword, or is
`window-<n>` (the agent's label for a window with no name), is refused
(`lower-attr-value`); a bound one that starts with `_` acts as `_blank`. On the
web these are the browser's windows and tabs. On the Mac each window is a
session of its own, rooted at its path (that screen alone, no sidebar or other
tab beneath it), and the windows share the app's store; the window named
`settings` is Settings…, which a `Meta+,` link opens without a `target`. The
other native hosts have one window and navigate in place. `exactPage().name`
says which window a page runs in ([a second window](https://exact.expo.dev/recipes/second-window.md),
[a Settings window](https://exact.expo.dev/recipes/settings-window.md)).

An unset `appearance` is `auto`: the platform's button, unless a background,
border, radius, rich children or a row the native control cannot carry makes it
your bare box. `appearance="auto"` written out asks for the platform's button and
refuses what it cannot carry; `appearance="none"` asks for your box. The literal
switch is resolved after class merging.
Native face content, styles, transitions/keyframes, and enclosing contexts have
an explicit allowlist in [`controls.rs`](https://github.com/expo/exact/blob/41ded8c5ede0b2959ef0daa83b1ff78545dd4428/contract/lower/src/controls.rs).
`buttonStyle` is a styleable host-policy prop whose complete vocabulary is the
schema's `buttonStyles` table. Unsaid, a button is the platform's default: plain
tinted text on iOS, a push button on macOS, bordered on the web and on the hosts
that paint their own (`contract vocab button`). This adds no tag or new
expression grammar. Platform looks and stand-ins are documented in
LLP 1069.011.

## Plain textarea decorations

`decorations` colours ranges of a plain `textarea`'s text that the app computes, as a
Bluesky composer colours @mentions, links and #tags: CSS's Custom Highlight API
(LLP 1114.007). Each range names a
`decoration` declaration, the app's `::highlight(name)` rule. The value stays a plain
string, and a decoration paints only: the field measures, wraps, edits and undoes exactly
as it does without one, so a declaration takes only what `::highlight()` admits, `color`,
`background-color`, `text-decoration` (`text-decoration-line`) and `text-shadow`; any other
property is a compile error. Declarations are scoped and imported like styles.
On Linux and Windows, a decoration's Forma colour follows the textarea's app mode.

```text
decoration mention color="light-dark(#1083fe, #208bfe)"
component Composer
  state draft = "hello @alice"
  derive marks = TextDecorations(value=draft, spans=[TextDecorationSpan(name="mention", start=6, end=12)])
  action edit(value: string)
    draft = value
  view
    textarea id="composer" value=draft decorations=marks input=edit
```

`TextDecorations(value, spans)` names the text its spans were computed for, so an equal
span list for new text (`@alice` replaced by `@carol`) is still a new record. Spans are
UTF-16 offsets, clamped to `value`; where two overlap the later paints over the earlier.
Until the app's record for the field's current text arrives, as a person types, the host
paints the last record's spans moved across the edit as a DOM `Range` is (provisional).
On the web and Apple, decoration updates wait until composition ends. The web paints with
`createValueRange()` and `CSS.highlights` and leaves the `<textarea>` in place; a browser
without `createValueRange` paints nothing. macOS, iOS and tvOS paint TextKit 2 rendering
attributes; Linux and Windows paint colour runs with unchanged advances; Android and the
terminal paint nothing yet. The web and the Linux/Windows painter draw `text-shadow`.
Decoration shadows remain unavailable on Apple: macOS 27.0.1 and scene-backed iOS 27.0
draw `.shadow` in text storage but not as a TextKit 2 rendering attribute. Decorations
leave text storage, layout and undo untouched.
`input` and `textarea markup="markdown"` refuse `decorations`.

The agent's `tree` keeps the authored `decorations` record. `state.decorations` on the
web, Apple, Linux and Windows reports each field's `id` and `applied` snapshot: `source`,
`recordValue`, `provisional` and the resolved `spans` with declared styles. During
composition the web and Apple keep the last snapshot; Linux and Windows resolve the
current record against the composing text on the next paint. The web also reports
`painted`: false when the browser cannot paint OpaqueRange highlights, even though the
snapshot is resolved.

An action may call `rangeFrame(id, start, end)` for the `Geometry` of a textarea's UTF-16
range, plain or `markup="markdown"` (source offsets), as DOM's
`Range.getBoundingClientRect()` gives it: a collapsed range is the caret's rectangle where
the caret is painted (width 0, the height of the text there: its font's content area, as
Chrome measures it; an empty line's caret on that line, an empty field's at its start), a
wider one the union of its lines' text boxes (a line break's empty box counted only when
every box is empty), in viewport coordinates and not trimmed by scrolling or the field's
clip. Offsets are truncated toward zero; a non-finite or negative offset, a start past the
end, an end past the text, a missing or hidden field, composition, an `input`, and a host
with no reader (Android, whose field is the platform's own; the terminal; a browser without
`createValueRange` for a plain textarea) give `unavailable`. Linux and Windows read the
field as they last painted it: its text boxes (its glyphs across, their font's content area
down) through the transform it was painted with, bounded; a field placed by a perspective
is `unavailable` there (Windows by construction, the same presenter, not yet run on
Windows). The web measures an empty line's and an empty field's caret from a copy of the
field's text laid out in its box, as Chrome's `createValueRange` answers those at the text
before the line and at the viewport's origin. It reads the layout last drawn, so a `setRangeText` earlier in the same action is
not yet measured.

## Markdown: `markup`, `format`, `select`

`markup="markdown"` on a `text` or a `textarea` styles the node's own string as
Markdown (LLP 1045); `none` is the
default. It is not CSS: CSS has nothing for this. The value stays the Markdown
source, so storage, search and export are the string.

The web build prepares literal reader strings and text available from initial
data answers. Prepared pieces keep their source identity; new or changed content
loads the Markdown parser on demand, as do inline-atom bindings. Fonts and line
wrapping follow the reader's platform and viewport at runtime. Preparing readers
makes no network requests.

- `text note.body markup="markdown"` is the reader: headings, lists, quotes,
  code and links painted as one node, on every host. Its dialect (LLP 1045 D2)
  has no setext headings, indented code, reference links or HTML, and a list
  item holds one paragraph and its nested lists: an indented code block is
  drawn as a paragraph, and an item's second paragraph at the left margin.
- `textarea id="editor" value=draft input=edit markup="markdown"` is the editor:
  on the web, Markdown shown as it reads, with the syntax hidden away from the
  caret; on macOS and iOS, the platform's text view with the syntax dimmed and
  each link's `](destination)` hidden, as the web hides it. Linux, Windows and
  Android edit the source as plain text. `setSelectionRange` selects source
  offsets. `format` and `setRangeText` report a refusal in the app log. Without `markup` the same source is a plain textarea: the
  source mode.
- A thematic break (`---`) is drawn in the colour of the text around it,
  dimmed, so that it reads on a dark ground as on a light one: on the web a
  line across the field, as dim as the syntax shown at the caret; on macOS
  and iOS its `---`, wherever the caret is, at the opacity of the platform's
  secondary label colour (`secondaryLabelColor`, `UIColor.secondaryLabel`).

`format(id, command)` and `format(id, command, argument)` edit the editor whose
`id` is given, at its selection, as one undo step reported through its `input`
as typing is. The commands are `bold`, `italic`, `code`, `strike`, `link` (the
argument is the URL), `heading` (`"1"` to `"6"`), `bullet`, `ordered`, `task`,
`toggleTask`, `quote`, `codeblock`, `footnote`, `figure` (the argument is the
media `src`), `indent`, `outdent` and `newline`; another name, or a missing
argument, changes nothing. A toolbar button takes `retainFocus=true`, so a press
leaves the editor focused and its selection where it was (on the Mac a click on any
button does, and on iOS a tap on one does, as UIKit's buttons do; the attribute is
what says it for the web).

The editor's `select` hands its action a `MarkdownSelection` when the selection
or the source changes: `formats`, space-separated (the inline command names,
`heading1` to `heading6`, `bullet`, `ordered`, `task`, `quote`, `codeblock`);
`mixed`, true when the selection spans different formats or links; `link`, the
common link target or `""`; `unavailable`, the commands that cannot apply
there, space-separated (most of them, inside a code block); and `atom`, the
selected atom's source when the selection is exactly one [atom](https://exact.expo.dev/reference/contract-grammar/built-in-tags.md#inline-atoms-atom-atoms-atomfaces-atompress),
else `""`. It carries no offsets. A toolbar reads one format as `` ` ${s.formats} `.includes(" bold ") ``;
[Markdown Stress](https://github.com/expo/exact/blob/41ded8c5ede0b2959ef0daa83b1ff78545dd4428/apps/markdown-stress/app.contract) is a whole toolbar and
link sheet.

The editor's `input`, `selectionchange` and `beforeinput` are a text field's
([form controls](https://exact.expo.dev/reference/contract-grammar/events.md#form-controls-radio-inputevent-setselectionrange)): their
`InputEvent` carries the source and its selection, in UTF-16 offsets into the
source, with the edit's `inputType`, `data` and `isComposing`. `beforeinput`
comes before the editor's own handling: a Return it cancels continues no list.
`setSelectionRange` and `setRangeText` take the same source offsets on the web,
macOS and iOS; each `setRangeText` is one undo step, as a `format` is, and
both are refused while an input method composes. On the web, where hidden
syntax is not drawn, a caret put inside it is drawn at its visible edge and
reads back there (LLP 1045 D6).

`paragraphDirs` gives the editor's lines their base direction: one word per
source line, HTML's `dir` (`ltr`, `rtl` or `auto`), the first word the first
line's. A line feed ends a line, so a Markdown paragraph broken over three
source lines takes three words. A line past the last word takes the last, so
`dirs = "ltr rtl"` draws the first line left to right and every line after it
right to left. An editor where Arabic or Hebrew sits beside English binds the
words to what it derives from its value (one per `value.split("\n")`), by
whatever rule the app keeps, and so sends the next ones with each change. A
literal says one word, which every line takes: it never changes, so the
compiler refuses a list written there (`lower-paragraph-dirs-literal`). Until
the app's next words, each word stays with its line through edits, undo and
redo give back the words of the lines they restore, and a line an edit adds
takes the word above it. A line without a word takes the field's `direction`;
`auto` is the line's first strong letter outside its syntax and atoms. The
web, macOS and iOS draw it, a right-to-left line's list marker and quote on
its right (the web's quote bar; on Apple the quote's indent and its dimmed
`>`); Linux, Windows and Android, which show the source, ignore it
(LLP 1045 D11).

## Inline atoms: `atom`, `atoms`, `atomFaces`, `atompress`

An atom is a span of a Markdown source that the editor and the reader show as
one pill: a label that is not its source, an optional icon, a tooltip
(LLP 1045.000). A caret cannot stand
inside it, a selection takes it whole, Backspace at its end (Delete at its start)
removes its whole source as one undo step, ⌥⌫ takes it with the spaces before
the caret, and a press selects it and then is the node's `atompress`. The value
stays the source; copy takes the source, ⌘⇧C the labels.

```text
atom citation link="cite:"
atom file link="relative"
atom mention prefix="@"
atom skill prefix="$" background-color="light-dark(#efe7ff, #2c2340)"

component Composer
  state draft = ""
  derive faces = [AtomFace(source="@src/main.rs", label="main.rs", icon="assets/file.svg", title="src/main.rs", color="", backgroundColor="light-dark(#e3f0ff, #1d3045)", direction="", ariaLabel="")]
  action pressed(e: AtomEvent)
    open = e.source
  view
    textarea value=draft input=edit markup="markdown" atoms="citation file mention skill" atomFaces=faces atompress=pressed
    text draft markup="markdown" atoms="citation" atompress=pressed
```

- `atom <name>` takes one form: `link="scheme:"`, any `[text](dest)` or
  `![text](dest)` whose destination has that scheme (compared without case);
  `link="relative"`, such a link whose destination has no scheme, between white
  space; or `prefix="@"`, one of the characters at the start of a word, then a
  bare run or a `"…"` string, followed by white space. A relative link and a
  prefix token are atoms only when a face names their source; a scheme link
  always is. It may take `role="link"` (a button by default) and its style,
  CSS's rows on its line or in an indented block under it: `color`,
  `background-color`, `border-color`, `border-radius` (one length in px),
  `outline` (a width, `solid` and a colour, or `none`), `outline-offset` (px,
  negative inside the pill) and `text-decoration-line` (`underline`, the
  label's), each also in a `:hover` block (the pointer over the pill) and a
  `:checked` block (the selection exactly the atom, as a press leaves it); and
  on its own, `padding-inline` (px or em, both sides), `-exact-icon-size` (px or
  em, the icon's side; unsaid, the cap height), `gap` (px or em, between the icon
  and the label; unsaid, a quarter em) and `border` (`1px solid <colour>`, or
  `border-width` with `border-style="solid"`). The icon is centred on half the cap
  height above the baseline. Unsaid, each is the
  platform's token's. A pill keeps its line's height: its border's top and
  bottom are drawn inside it, and a ring takes no room (on Apple one that would
  reach past the pill is cut at its edge). Anything else is `lower-atom-style`.
  It is scoped and imported as `style` is.

  ```text
  atom mention prefix="@" padding-inline="0" border-radius="4px"
    :hover
      text-decoration-line="underline"
    :checked
      outline="2px solid light-dark(#2563eb, #60a5fa)"
      outline-offset="-2px"
      border-radius="6px"
  ```
- `atoms="a b"` on a `text` or `textarea` with `markup="markdown"` lists the
  kinds it recognizes (`lower-atom-field`, `lower-atom-unknown`); two kinds with
  one scheme, a shared prefix character, or both relative are refused
  (`lower-atom-duplicate`).
- `atomFaces` takes `AtomFace(source, label, icon, title, color,
  backgroundColor, direction, ariaLabel)` records, keyed by an atom's whole source: equal
  source is one atom, and new text is a new key. An empty label is a link's text
  or a token without its prefix and quotes; the icon is an image source, drawn
  in its own colours (an asset, an `app:/` file, a `data:` or http(s) URL; of
  the symbols, Apple draws `symbol:sf/<name>` in the pill's ink and the web
  none). `color` and `backgroundColor`
  paint that atom over its kind's `color` and `background-color`, or are empty
  for the kind's. Each is a colour as a bound `color` takes one: `light-dark()`,
  a theme entry's name, a role, a `-exact-platform-color()` only as one of the
  app's literals, or a colour in a wide space (`color(display-p3 …)`), which
  every host with pills draws in that space. A colour in a standard space the
  platforms ship (`color(--dci-p3 …)`) is drawn by Apple and refused on the web,
  and one in a profile the app declares with `color-profile` is refused on every
  host. One that names a token follows `setMode`, a pin and a token's new value;
  when that value is no colour, faces the token painted stay as they were, where
  a themed row would be unset, and the journal says so. A role's web form
  (`var(--exact-separator, …)`) is that role, whatever its fallback holds but an
  unadmitted `-exact-platform-color()`. Any other value that holds
  `currentcolor`, `inherit` or another cascade keyword, or a substitution
  function (`var()`, `env()`, `attr()`, `if()`, `inherit()`), is no colour on
  every host. So is a colour the kernel does not read, on the native hosts and
  the web's wasm target, and one the build's colour map or the browser refuses,
  on the JS target. A colour that is none leaves the kind's paint, and the
  journal says so. A pill lays out its icon and then its label in its line's
  direction, so in a right-to-left line its icon is on the right; `direction`
  (`ltr`, `rtl`) pins its own, and empty follows the line. Assistive
  technology reads the label as the pill's name and `title` as its description;
  a nonempty `ariaLabel` is the name instead, as `aria-label` names a node, so
  a pill can say more than it draws (`ariaLabel="Image attachment, a.png, 2 MB"`
  over a label of `"a.png 40%"`).
- `atompress` hands its action an optional `AtomEvent`: `kind`, `source`,
  `href` (a link's destination as written), `start`, `end` (UTF-16) and the
  modifiers. It never navigates. In the reader an atom is a tab stop that
  Return or Space presses (a link atom, Return only); in the editor it is not.
  `rangeFrame` over its range is its pill, in the editor and the reader alike,
  where a popover anchors; elsewhere in a reader's text it is unavailable, as
  it is in a macOS paragraph that lays out off the main thread (LLP 1072): 64
  KB of text, or 16 KB in 256 runs or more, a Markdown text being one run per
  piece.

The web, macOS and iOS draw atoms in the editor and the reader (on Apple the
reader's pill draws icons, but no border, ring or `:hover` paint, and UIKit's smart
delete takes one of the two spaces an atom's deletion leaves). In the editor,
VoiceOver on macOS and iOS reads an atom's accessible name in place and its
role from its element after the field. The next-item command reaches each
atom in source order (LLP 1045.000 §10 Q10). Linux, Windows and Android show
the source in the editor and the link text in the reader, with no `atompress`. The driver's
`state atoms` lists each one: its node, kind, source, range, label and frame from the node's top
left, where `tap <node> at <x> <y>` presses it.

## Keep-awake: `wakelock`

`wakelock` on any element takes `"screen"` or `"none"` (the default), literal
or bound (LLP 1125
D11). While an element that is mounted and displayed (no ancestor
`display: none`, under no unselected tab and no screen a stack keeps under
its top; the one a sheet covers is shown) says `"screen"`, the display does
not dim or lock for idleness. Any other literal word is refused (`lower-attr-value`, naming the
two); a computed one is journaled and holds nothing. `keepScreenOn`,
`idleTimerDisabled` and `keepAwake` are refused with this name. The agent
reads `state.wakelock` (`{held, by}`); [the reference](https://exact.expo.dev/reference/developer/generate-typescript-data-source-types.md#keep-the-screen-awake)
has each host's lock.

## Orientation lock: `orientationlock`

`orientationlock` on any element takes a Screen Orientation API lock type
(`"portrait"`, `"landscape"`, `"portrait-primary"`, `"portrait-secondary"`,
`"landscape-primary"`, `"landscape-secondary"`, `"natural"`, `"any"`),
`"current"` or `"none"` (the default), literal or bound
(LLP 1133.029). It holds while the element
is displayed, by `wakelock`'s rule, and outside every `dialog` and popover.
Any other literal is refused (`lower-attr-value`, naming the words); a
computed one is journaled and holds nothing. The bake refuses a lock inside
a `dialog` or popover (`orientationlock-in-top-layer`) and a literal type
that shares no orientation with the manifest's `orientation`
(`orientationlock-outside-manifest`). `screenOrientation`, `lockOrientation`,
`orientation`, `requestedOrientation` and `supportedInterfaceOrientations` are
refused with this name. The agent reads `state.orientationlock`;
[the reference](https://exact.expo.dev/reference/developer/generate-typescript-data-source-types.md#lock-the-screen-orientation) has the rules
and each host's lock.
