Layout tree (as in design/layout.json)
{
"pattern": "features.terminal-man-page",
"kind": "features",
"grid": {
"heading": "1-12",
"body": "2-10"
},
"slots": [
"sectionLabel",
"title",
"features[4..8]"
],
"tree": {
"el": "grid",
"gap": 2,
"rowGap": 3,
"children": [
{
"el": "text",
"span": "1-12",
"slot": "sectionLabel",
"role": "label",
"transform": "uppercase",
"weight": 700
},
{
"el": "text",
"span": "2-10",
"slot": "title",
"role": "body",
"maxCh": 72
},
{
"el": "repeat",
"span": "2-10",
"slot": "features",
"min": 4,
"max": 8,
"layout": "list",
"gap": 3,
"of": {
"el": "box",
"gap": 1,
"children": [
{
"el": "text",
"color": "link",
"slot": "title",
"role": "label",
"weight": 700
},
{
"el": "box",
"pad": [
0,
8
],
"children": [
{
"el": "text",
"slot": "body",
"role": "body",
"maxCh": 64
}
]
}
]
}
}
]
}
}Component example: reference/features.terminal-man-page.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>features.terminal-man-page — Terminal Mono</title>
<link rel="stylesheet" href="base.css">
<style>
section { padding: var(--section) 0; }
.man { row-gap: 12px; }
.man h2 { grid-column: 1 / -1; text-transform: uppercase; font-size: var(--base); }
.man .summary, .man dl { grid-column: 2 / 11; max-width: 72ch; }
dl { display: grid; gap: 12px; }
dt { color: var(--link); font-weight: 700; }
dd { margin: 0; padding-left: 8ch; max-width: 64ch; }
@media (max-width: 640px) { dd { padding-left: 4ch; } }
</style>
</head>
<body>
<section class="wrap">
<div class="man grid">
<h2>Options</h2>
<p class="summary">tidewave sync [options] — keep every replica in step with the primary database.</p>
<dl>
<dt>--offline-first</dt><dd>Write to the local replica and queue changes until the network returns.</dd>
<dt>--merge <strategy></dt><dd>Resolve conflicting writes with last-writer-wins, CRDT or your own function.</dd>
<dt>-w, --watch</dt><dd>Stream changes from the primary and apply them as they land, row by row.</dd>
<dt>--encrypt</dt><dd>Encrypt every replica at rest with a per-device key; the server never sees it.</dd>
</dl>
</div>
</section>
</body>
</html>