Organism · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: Four jobs
Rendered by jobs-strip.tsOpen example: The four jobs (dye tiles) · Do: Four jobs Use the full-page example to follow page links.
Do: Japanese names
Rendered by jobs-strip.tsOpen example: The four jobs (dye tiles) · Do: Japanese names Use the full-page example to follow page links.
Don't: Five tiles
Rendered by jobs-strip.tsOpen example: The four jobs (dye tiles) · Don't: Five tiles Use the full-page example to follow page links.
Don't: Tiles outside the strip
Rendered by jobs-strip.tsOpen example: The four jobs (dye tiles) · Don't: Tiles outside the strip Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| The four jobs (dye tiles) is computed by Loom's code from the four jobs on the landing and a small real artefact for each, not drawn by hand. | A showcase is proof only if the product's own code produced what it shows. | Automated: scripts/site/interactives/check.ts (recomputes the showcase data and fails on drift) |
| Exactly four tiles, in the order See, Shape, Govern, Run. | The order is the product's sequence, and the numbers 01 to 04 below follow it. | Automated: scripts/site/landing.ts (warns unless four) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
items | list | Yes | Four items: label, head, text, href, colour, optional fragment. | |
lang | en | ja | No | "en" | Interface language. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | jobs-strip |
| Layer | Organisms |
| Category | showcase |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/organisms/jobs-strip.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | The four jobs (dye tiles): computed by Loom's code from the four jobs on the landing and a small real artefact for each. |
Use when
- Under the landing hero. Why: The four jobs are the product's structure; the tiles make it visible at once.
Do not use when
- For anything other than the four jobs. Why: Four dye tiles side by side are allowed only as this one template (D-SITE-002).
Anatomy
| Part | What it is |
|---|---|
| root | ul.jb (a TileGrid of dye tiles) |
| tile | li.jb-job with the verb, head, text and artefact |
| artefact | jb-pic: bars, a token row, the flow, a draft |
| go | The arrow to the job's page |
Made of: showcase-frame, tile, heading, text, icon.
Used in: hero.
Variants
| Variant | When | Why |
|---|---|---|
| full | On its demo page and its section. | The whole experience where the claim is made. |
States
| State | Rendered or not applicable |
|---|---|
| default | Authored job links and final artefacts are readable in build-time markup; enhancement may play their once-only entrance. |
| hover | Each native job link retains its own hover affordance. |
| focus-visible | Job links take focus in order with the Site focus ring; decorative artefacts are aria-hidden. |
| active | Not applicable: Job links navigate; the once-only artefact entrance is motion, not a pressed/playback state. |
| disabled | Not applicable: The four job destinations are links, not disableable playback controls. |
| loading | Job text/links and settled artefacts remain readable while the optional managed entrance chunk loads. |
| empty | An empty items array renders an empty list; it violates the four-jobs content rule and is a documented misuse, not a successful empty-state variant. |
| error | Caught chunk/init failure restores the original static strip; the host records failed and remount may retry. Invalid job count is a content-rule violation, not a fabricated error panel. |
| current | Not applicable: The strip links to job pages; it has no selected frame, slider or current-job API. |
| visited | Native job links retain browser history and inherited text color. |
| expanded | Not applicable: Job links do not disclose panels. |
Tokens
| Part | Token |
|---|---|
| tile.see | --field teal |
| tile.shape | --field madder |
| tile.govern | --field saffron |
| tile.run | --field indigo |
| verb.font | --type-h2 (h3 in Japanese) |
| --jobs-strip-border-block-start-space-2 | var(--space-2) |
| --jobs-strip-border-block-start-cotton | var(--cotton) |
| --jobs-strip-gap-space-3 | var(--space-3) |
| --jobs-strip-padding-space-8 | var(--space-8) |
| --jobs-strip-padding-space-5 | var(--space-5) |
| --jobs-strip-transition-dur-moderate | var(--dur-moderate) |
| --jobs-strip-transition-ease-standard | var(--ease-standard) |
| --jobs-strip-font-type-h3 | var(--type-h3) |
| --jobs-strip-transform-space-2 | var(--space-2) |
| --jobs-strip-font-type-h2 | var(--type-h2) |
| --jobs-strip-letter-spacing-ls-h2 | var(--ls-h2) |
| --jobs-strip-font-type-strong | var(--type-strong) |
| --jobs-strip-font-type-label | var(--type-label) |
| --jobs-strip-margin-top-space-5 | var(--space-5) |
| --jobs-strip-gap-space-2 | var(--space-2) |
| --jobs-strip-padding-space-2 | var(--space-2) |
| --jobs-strip-padding-space-3 | var(--space-3) |
| --jobs-strip-padding-space-1 | var(--space-1) |
| --jobs-strip-padding-top-space-2 | var(--space-2) |
| --jobs-strip-font-type-small-strong | var(--type-small-strong) |
| --jobs-strip-box-shadow-rule-hair | var(--rule-hair) |
| --jobs-strip-animation-dur-weave | var(--dur-weave) |
| --jobs-strip-animation-ease-enter | var(--ease-enter) |
| --jobs-strip-animation-delay-stagger | var(--stagger) |
| --jobs-strip-animation-delay-dur-slow | var(--dur-slow) |
| --jobs-strip-animation-dur-slow | var(--dur-slow) |
| --jobs-strip-animation-delay-dur-weave | var(--dur-weave) |
| --jobs-strip-animation-ease-standard | var(--ease-standard) |
| --jobs-strip-background-field-bg | var(--field-bg) |
| --jobs-strip-color-field-fg | var(--field-fg) |
| --jobs-strip-background-field-fg | var(--field-fg) |
| --jobs-strip-color-field-fg-2 | var(--field-fg-2) |
| --jobs-strip-box-shadow-field-fg | var(--field-fg) |
| --jobs-strip-color-field-bg | var(--field-bg) |
| --jobs-strip-animation-rule | var(--rule-hair) |
| --jobs-strip-animation-foreground | var(--field-fg) |
| --jobs-strip-animation-background | var(--field-bg) |
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 and controls fill the row on phones. |
| wrapping | Text wraps; code panes scroll inside their own focusable region. |
| textExpansion | Japanese strings come from the i18n tables and wrap; engine output stays English. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | Inside the Showcase frame's padding, controls and caption at its foot. |
| external | Full width of its section. |
| rhythm | One showcase per section, after the section's claim (D-SITE-008). |
Motion
| Aspect | Value |
|---|---|
| moves | Each tile's artefact plays once (bars fill, a token resolves). |
| trigger | When the strip scrolls into view. |
| duration | --dur-weave per step, --stagger between tiles |
| easing | --ease-standard |
| interruptible | Plays once and stops; nothing loops. |
| reduced | The final state shows at once. |
| why | A small live proof per job, under the promise. |
Runtime and reuse
stylesheet: /css/site.css. Built Site tokens, core and registered element CSS; preserve modes, focus and responsive rules.
stylesheet: /css/demos.css. Existing legacy demo styles where the rendered specimen uses them.
font: /fonts/. Self-hosted files referenced by Site @font-face, with licences; Japanese locale overrides remain applicable.
Static fallback: Original build-time specimen remains readable before loading and after chunk/initialization failure; enhancement controls retain authored hidden state.
Configured initializer: apps/showcase/site/interactives/jobs-strip.ts#init. The host owns transactional static-markup restoration and runtime state.
Consumer module (imports relative to the configured source root): import { createRuntimeHost } from "./src/workflows/runtime-host"; import { SITE_RUNTIMES } from "./apps/showcase/site/runtime-registry"; const definition = SITE_RUNTIMES.find(entry => entry.binding.id === "jobs-strip"); if (!definition || definition.binding.lifecycle.kind !== "managed") throw new Error("Managed runtime binding unavailable"); const host = createRuntimeHost([definition]); export function mountRuntime(container: ParentNode) { return host.mountAll(container); }After inserting the rendered markup, call mountRuntime(container) for the container holding [data-demo="jobs-strip"]. Retain the returned disposal function and call it before removing, replacing or remounting, including every Storybook args render. The configured host restores captured static markup/attributes on disposal or caught load/initialization failure; retry starts a fresh managed remount.
Accessibility passport
| Aspect | Value |
|---|---|
| role | A list of native links; the authored four-job content rule applies. |
| name | Its heading or caption |
| keyboard | Tab through job links; Enter follows the destination. No Space-to-pause or frame slider exists. |
| focus | Job links remain in document reading order; decorative artefacts never receive focus. |
| screenReader | Job verb/heading/link text; decorative artefacts are aria-hidden, with no automatic playback announcements. |
| contrast | Ink on surface 14:1; state dyes only as marks with words. |
| target | Controls are 44 px. |
Content
| Slot | Length | Voice |
|---|---|---|
| label | 1 word | The job's verb (content token job.*) |
| head | 8 words | What the job gives you |
Good: “See — Know what you really have.”
Bad: “Feature 1”
Japanese: Job names from content tokens job.* (見える化する・整える・守る・運用する).
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
56 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.