Template · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: A public rubric area
Rendered by prose-section.tsOpen example: Page body · Do: A public rubric area Use the full-page example to follow page links.
Do: A deep page
Rendered by prose-section.tsOpen example: Page body · Do: A deep page Use the full-page example to follow page links.
Do: A demo page
Rendered by prose-section.tsOpen example: Page body · Do: A demo page Use the full-page example to follow page links.
Don't: A dye background
Rendered by prose-section.tsOpen example: Page body · Don't: A dye background Use the full-page example to follow page links.
Don't: Two columns of prose
Rendered by prose-section.tsOpen example: Page body · Don't: Two columns of prose Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| The page body stands on cotton. | Long reading needs the calm ground; colour marks structure, not text. | Automated: scripts/site/system/check-pages.ts (page sequence) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
html | html | Yes | The rendered page body. | |
headings | list | No | The page's headings, for Contents. | |
lang | en | ja | No | "en" | Language. |
wide | boolean | No | false | A wider column for tables (What runs today). |
before | html | No | A notice before the body (a demo's Coming next callout). | |
extraClass | string | No | demo-page on demo pages. | |
rubricAreas | list | No | Public rubric entries: id, title, description and good. Uses the compact article wrapper with html appended as its source note; no contents grid. | |
plain | boolean | No | false | No grid: a demo page's showcase spans the wrap. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | prose-section |
| Layer | Templates |
| Category | section |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/templates/prose-section.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Page body as one module: its markup moved out of the page builder (scripts/site) into the system. |
Use when
- Every page's body below the page head. Why: One reading column for all long-form text.
Do not use when
- On the landing. Why: The landing is made of section templates.
Anatomy
| Part | What it is |
|---|---|
| root | div.wrap.page-body (+ demo-page) |
| grid | div.page-grid (+ has-toc) |
| contents | Contents organism |
| article | article.prose (+ prose-wide) |
| rubric | Optional named rubric sections with h2, description and what good looks like, read from the public rubric data |
Made of: contents, text, callout.
Used in: page-article, page-deep, page-demo, page-hub, page-status, page-runs-on-loom.
Variants
| Variant | When | Why |
|---|---|---|
| public rubric | The source-backed eight-area standard. | Each area has a labelled section and its own definition, within the same reading column. |
| with contents | Three or more sections. | A map beside the text. |
| plain | Demo pages. | The showcase needs the full width. |
| wide | The status table. | Tables need room. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: The page body is not interactive, so it has no hover state. |
| focus-visible | Not applicable: The page body does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: The page body cannot be pressed. |
| disabled | Not applicable: The page body has nothing to disable. |
| loading | Not applicable: The page body is rendered at build time and is complete when the page loads. |
| empty | Not applicable: The page body is not rendered without content; the builder skips it. |
| error | Not applicable: The page body shows no data that can fail. |
| current | Not applicable: The page body has no current item. |
| visited | Not applicable: The page body is not a link. |
| expanded | Not applicable: The page body does not open or close. |
Tokens
| Part | Token |
|---|---|
| article.measure | --measure (68ch) |
| article.font | --type-body |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; columns stack under 768 px; the wrap keeps a 16 px gutter on phones. |
| wrapping | Prose wraps; tables and code scroll in their own focusable region. |
| textExpansion | Japanese runs 20 to 40% longer; headings break between phrases (jaBreaks) and blocks grow downwards. |
| max | 68 characters per line in prose |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | One padding: --space-section-sm above and below (D-SITE-005). |
| external | Between the page head (or persona strip) and Related. |
| rhythm | Cotton. |
Motion
| Aspect | Value |
|---|---|
| None | No intrinsic element animation. The optional claude-entrance consumer profile may translate below-fold structure once (20px, --dur-weave, --ease-enter, --stagger); reduced motion disables it. This preserved baseline entrance is separate from element playback. |
Runtime and reuse
Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.
Accessibility passport
| Aspect | Value |
|---|---|
| role | region (section) named by its heading |
| name | Its h2, by aria-labelledby |
| keyboard | Links and buttons inside, in reading order. |
| focus | The --focus ring on every link and button inside. |
| screenReader | Read in source order; decorative weaving is aria-hidden. |
| contrast | Ink on cotton 14:1; text on every dye field 4.5:1 or better (checked by check-brand). |
| target | Links and buttons are 44 px tall. |
Content
| Slot | Length | Voice |
|---|---|---|
| html | The page | voice.md |
Good: “Short sentences, real numbers with their source.”
Bad: “Next-generation”
Japanese: Japanese pages render their own Markdown; review banner at the top.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
126 uses across the built pages (measured by npm run site:system).
Tests
| Aspect | Value |
|---|---|
| unit | tests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns |
| visual | Not yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts |
| a11y | tests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark |
| parity | scripts/site/system/check.ts: Library examples are rendered by the same render function the site imports |
Figma
not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.