Template · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: A product page
Rendered by page-head.tsOpen example: Page head · Do: A product page Use the full-page example to follow page links.
Do: A bare head
Rendered by page-head.tsOpen example: Page head · Do: A bare head Use the full-page example to follow page links.
Don't: A state colour
Rendered by page-head.tsOpen example: Page head · Don't: A state colour Use the full-page example to follow page links.
Don't: A title that sells
Rendered by page-head.tsOpen example: Page head · Don't: A title that sells Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| Every page except the landing opens with one page head. | One opening shape tells readers where they are. | Automated: scripts/site/system/check-pages.ts (page sequence) |
| The page head never draws the woven edge; the composer places it at the join after the field. | The edge marks every join between a field and cotton, and only the composer sees the joins (D-SITE-003). | Automated: scripts/site/system/check-pages.ts (edges at joins) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
colour | string | Yes | The section colour (indigo, madder, saffron, teal, ink). | |
state | string | No | A dye that overrides the colour (the 404 uses madder). | |
crumbs | list | No | The breadcrumb trail. | |
title | html | Yes | The page title (escaped by the caller). | |
lede | html | No | The first paragraph. | |
actions | html | No | Buttons (CtaPair). | |
aside | html | No | A small figure beside the lede. | |
id | string | No | "page-title" | The h1 id. |
lang | en | ja | No | "en" | Breadcrumb label language. |
titleSize | display | h2 | No | One size for a family of sibling pages (the four job pages use h2), instead of stepping down by length. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | page-head |
| Layer | Templates |
| Category | section |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/templates/page-head.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Page head as one module: its markup moved out of the page builder (scripts/site) into the system. |
Use when
- The first section of every page except the landing. Why: One opening for every page tells readers where they are and which section they are in.
Do not use when
- On the landing. Why: The landing opens with the Hero template.
- Twice on a page. Why: A page has one title.
Anatomy
| Part | What it is |
|---|---|
| root | section.fell.field-<colour>, named by the h1: the whole head is one field |
| head | div.fell-head: Breadcrumbs and h1.fell-title |
| body | div.fell-grid: the lede (p.lede, no bold run-in), actions and an optional aside |
| edge | None of its own: the composer places the woven edge after the field (D-SITE-003) |
Made of: breadcrumbs, heading, text, cta-pair, dye-field.
Used in: page-article, page-articles, page-deep, page-demo, page-hub, page-404, page-status, page-runs-on-loom.
Variants
| Variant | When | Why |
|---|---|---|
| with lede | Almost every page. | The lede on the field is the page's promise. |
| bare | A page with no lede. | The title alone on its field still marks the section. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: The page head is not interactive, so it has no hover state. |
| focus-visible | Not applicable: The page head does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: The page head cannot be pressed. |
| disabled | Not applicable: The page head has nothing to disable. |
| loading | Not applicable: The page head is rendered at build time and is complete when the page loads. |
| empty | Not applicable: The page head is not rendered without content; the builder skips it. |
| error | Not applicable: The page head shows no data that can fail. |
| current | Not applicable: The page head has no current item. |
| visited | Not applicable: The page head is not a link. |
| expanded | Not applicable: The page head does not open or close. |
Tokens
| Part | Token |
|---|---|
| title.font | --type-display (is-mid and is-long step down for long titles) |
| field.background | --field-bg of the section colour |
| lede.color | --field-fg |
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 | Text wraps; nothing scrolls sideways. |
| textExpansion | Titles over 26 characters use is-mid, over 44 is-long, so Japanese and long English titles stay on two or three lines. Lede text preserves its content and permits emergency wrapping of unbroken paths or identifiers within the available width. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | --space-section-sm above the title; the field has one padding, --space-9 (D-SITE-005). |
| external | None: it starts the page. |
| rhythm | One field (title, lede, actions), the edge, then cotton body. |
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 |
|---|---|---|
| title | 60 characters | Says what the page is for, in plain words |
| lede | 2 sentences | The page's promise |
Good: “How we run your design system with you”
Bad: “Welcome to our Product page”
Japanese: Titles and ledes come from the Japanese page; headings break between phrases.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
- D-SITE-002: A field is always followed by cotton; two fields never touch
- D-SITE-003: The woven edge sits at every field/cotton join, and nowhere else
- D-SITE-005: One padding per template
Usage
331 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.