Template · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: The landing hero
Rendered by hero.tsOpen example: Hero · Do: The landing hero Use the full-page example to follow page links.
Do: Japanese hero
Rendered by hero.tsOpen example: Hero · Do: Japanese hero Use the full-page example to follow page links.
Don't: A metaphor headline
Rendered by hero.tsOpen example: Hero · Don't: A metaphor headline Use the full-page example to follow page links.
Don't: Three actions
Rendered by hero.tsOpen example: Hero · Don't: Three actions Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| One hero, on the landing only. | It is the site's opening statement. | Automated: scripts/site/system/check-pages.ts (page sequence) |
| The four jobs sit inside the hero as one band of dye tiles. | The band is one template, so the tiles touching does not break the field rule (D-SITE-002). | Automated: scripts/site/system/check-pages.ts |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
jobsTitle | string | No | The owner-approved line above the jobs band (See it. Shape it. Govern it. Run it.). | |
title | string | Yes | The headline (owner-approved). | |
lede | html | Yes | The promise. | |
actions | html | Yes | The CtaPair. | |
live | html | No | The Drift hero panel. | |
jobs | html | Yes | The four jobs band. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | hero |
| Layer | Templates |
| Category | section |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/templates/hero.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Hero as one module: its markup moved out of the page builder (scripts/site) into the system. |
Use when
- The landing, once. Why: The first screen must say what Loom does and show it working.
Do not use when
- On any other page. Why: Other pages open with the Page head.
Anatomy
| Part | What it is |
|---|---|
| root | section.hero.field-indigo.on-field (+ has-live) named by the h1 |
| head | div.wrap.hero-head: h1.hero-title, div.hero-row (div.hero-lede and the actions), the live panel |
| jobs | The Jobs strip (live) or Tiles (fields-hero): the four jobs as one band |
Made of: heading, text, cta-pair, drift-hero, jobs-strip, tile, dye-field.
Used in: atomic-guide, page-landing.
Variants
| Variant | When | Why |
|---|---|---|
| with live panel | When the hero has [[visual:drift-hero]]. | Show it working in the first screen. |
| tiles | Without the panel. | The four jobs as large tiles carry the first screen alone. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: The hero is not interactive, so it has no hover state. |
| focus-visible | Not applicable: The hero does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: The hero cannot be pressed. |
| disabled | Not applicable: The hero has nothing to disable. |
| loading | Not applicable: The hero is rendered at build time and is complete when the page loads. |
| empty | Not applicable: The hero is not rendered without content; the builder skips it. |
| error | Not applicable: The hero shows no data that can fail. |
| current | Not applicable: The hero has no current item. |
| visited | Not applicable: The hero is not a link. |
| expanded | Not applicable: The hero does not open or close. |
Tokens
| Part | Token |
|---|---|
| root.background | --field-bg (indigo) |
| title.font | --type-display |
| lede.font | --fs-h3 |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Checked at 390, 768, 1024 and 1440 px; title above, promise and panel side by side from 1000 px. |
| wrapping | Text wraps; nothing scrolls sideways. |
| textExpansion | The Japanese title is set at 800 weight with a 16em measure and breaks between phrases. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | One padding: clamp(--space-9, 5vw, --space-12) above the head (D-SITE-005). |
| external | Starts the page under the header. |
| rhythm | Indigo field with the jobs band, then the woven edge, then 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 |
|---|---|---|
| title | 8 words | Plain words, no weaving metaphors (owner, 25 Oct) |
| lede | 2 sentences | What Loom does for the reader |
Good: “The next level of your design system.”
Bad: “Weave your future”
Japanese: デザインシステムを、次のレベルへ。 (owner-approved)
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-015: Headings break between whole words
Usage
32 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.