Organism · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: Hub tiles
Rendered by tile.tsOpen example: Tiles · Do: Hub tiles Use the full-page example to follow page links.
Do: Related
Rendered by tile.tsOpen example: Tiles · Do: Related Use the full-page example to follow page links.
Don't: Vague labels
Rendered by tile.tsOpen example: Tiles · Don't: Vague labels Use the full-page example to follow page links.
Don't: Status chips
Rendered by tile.tsOpen example: Tiles · Don't: Status chips Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| A fragment sits outside the tile's link. | Interactive content inside a link breaks keyboard and screen-reader use. | Automated: tests/site (axe nested-interactive) |
| A tile's colour is its section's or job's colour. | Colour as structure, marks as state (D-SITE-004). | Review: Owner, in the Library |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
items | list | Yes | The tiles: label, href, head, text (HTML), colour, state, tag, frag (HTML). | |
cls | string | No | The context class (fields-hub, fields-related, fields-hero, fields-roles). |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | tile |
| Layer | Organisms |
| Category | navigation |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/organisms/tile.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Tiles as one module: its markup moved out of the page builder (scripts/site) into the system. |
Use when
- The four jobs under the hero, hubs, related pages and the 404 site map. Why: A tile is a door: colour says which section it opens.
Do not use when
- For long lists of articles. Why: Rows read faster for many similar items.
- To show status. Why: Tile colour is the section's, never a state.
Anatomy
| Part | What it is |
|---|---|
| root | ul.fields (+ a context class: fields-hero, fields-hub, fields-related, fields-roles) |
| tile | li.field-card.field-<colour>, with --i for its order |
| link | a: b.field-verb (+ Tag), span.field-head, span.field-text |
| fragment | div.field-frag-wrap outside the link (a real artefact) |
Made of: dye-field, tag, text.
Used in: jobs-strip, hero, related, tile-grid.
Variants
| Variant | When | Why |
|---|---|---|
| fields-hub | A hub's list of pages. | Large tiles, two to four columns. |
| fields-related | 'Keep going' at the foot of a page. | Three smaller tiles. |
| fields-hero | The four jobs inside the hero. | One band of four dye tiles: one template, so it is allowed under the field rule (D-SITE-002). |
| fields-cards | With fields-hub and fields-related: tiles on cotton inside the frame, the dye as a rule on top. | Full-width dye tiles after a page head joined field to field through the edge and met cotton with no edge (D-SITE-002, D-SITE-003); cards on cotton need neither. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | The tile lifts its text colour; the field does not change. |
| focus-visible | The --focus ring on the link, inside the tile. |
| active | Not applicable: A link; no pressed state beyond the browser's. |
| disabled | Not applicable: Every tile is a working link. |
| loading | Not applicable: Rendered at build time. |
| empty | Not applicable: The builder skips an empty set. |
| error | Not applicable: No data that can fail. |
| current | Not applicable: Tiles never point to the page they are on. |
| visited | Not applicable: Visited links keep their colour on a field, for contrast. |
| expanded | Not applicable: Does not open. |
Tokens
| Part | Token |
|---|---|
| tile.background | --field-bg of its colour |
| verb.font | --type-h3 |
| text.color | --field-fg-2 |
| @hover.text | --field-fg |
| --tile-font-family-font-display-ja | var(--font-display-ja) |
| --tile-gap-space-1 | var(--space-1) |
| --tile-background-cotton | var(--cotton) |
| --tile-pad-space-7 | var(--space-7) |
| --tile-pad-space-9 | var(--space-9) |
| --tile-gap-space-4 | var(--space-4) |
| --tile-font-type-h2 | var(--type-h2) |
| --tile-letter-spacing-ls-h2 | var(--ls-h2) |
| --tile-transition-dur-weave | var(--dur-weave) |
| --tile-transition-ease-standard | var(--ease-standard) |
| --tile-font-type-h3 | var(--type-h3) |
| --tile-letter-spacing-ls-h3 | var(--ls-h3) |
| --tile-margin-left-space-5 | var(--space-5) |
| --tile-font-type-strong | var(--type-strong) |
| --tile-font-size-fs-body | var(--fs-body) |
| --tile-margin-space-7 | var(--space-7) |
| --tile-padding-top-space-8 | var(--space-8) |
| --tile-margin-bottom-space-8 | var(--space-8) |
| --tile-margin-top-space-6 | var(--space-6) |
| --tile-padding-space-5 | var(--space-5) |
| --tile-padding-space-6 | var(--space-6) |
| --tile-font-size-fs-small | var(--fs-small) |
| --tile-background-surface | var(--surface) |
| --tile-color-ink | var(--ink) |
| --tile-border-top-rule | var(--rule) |
| --tile-border-top-ink | var(--ink) |
| --tile-padding-space-8 | var(--space-8) |
| --tile-gap-space-6 | var(--space-6) |
| --tile-field-fg-ink | var(--ink) |
| --tile-field-fg-2-ink-2 | var(--ink-2) |
| --tile-box-shadow-rule-heavy | var(--rule-heavy) |
| --tile-background-field-bg | var(--field-bg) |
| --tile-color-field-fg | var(--field-fg) |
| --tile-box-shadow-thread | var(--thread) |
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 | Auto-fit grid: four, two, then one column at 390 px. |
| textExpansion | Japanese verbs and heads break between phrases (jaBreaks); tiles grow downwards. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | --space-6 padding in each tile. |
| external | Full bleed with a 2 px seam between tiles. |
| rhythm | One set per section. |
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 | a landmark or list, as stated in its parts |
| name | Its visible text |
| 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 |
|---|---|---|
| label | 3 words | A verb or the page name |
| text | 1 sentence | What the reader finds there |
Good: “See: know what you really have.”
Bad: “Learn more”
Japanese: Labels and descriptions come from nav-ja (reviewed glossary terms).
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
830 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.