Molecule · beta · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: A real error
Rendered by finding.tsOpen example: Finding · Do: A real error Use the full-page example to follow page links.
Do: A warning
Rendered by finding.tsOpen example: Finding · Do: A warning Use the full-page example to follow page links.
Don't: An invented finding
Rendered by finding.tsOpen example: Finding · Don't: An invented finding Use the full-page example to follow page links.
Don't: Severity by colour only
Rendered by finding.tsOpen example: Finding · Don't: Severity by colour only Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| Findings come from Loom's checks, run at build time or in the browser. | The site promises real output, not illustrations. | Automated: site interactives check (scripts/site/interactives/check.ts) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
severity | high | medium | Yes | From the check's own severity. | |
message | string | Yes | The check's message, verbatim. | |
where | string | No | File and line. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | finding |
| Layer | Molecules |
| Category | data |
| Owner | Site system lead |
| Status | beta |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/molecules/finding.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | One audit finding with its severity word, from Loom's real checks. |
Use when
- A showcase or report lists real check output. Why: Findings are the product's actual output, the strongest proof.
Do not use when
- For invented problems. Why: Findings shown on the site are produced by Loom's code at build time or in the browser.
Anatomy
| Part | What it is |
|---|---|
| root | li in ul.findings |
| severity | span.sev.sev-high or .sev-medium with its word |
| message | The finding text |
| where | The file and line |
Made of: band-word, code-block.
Used in: agent-check, conformance-table, drift-hero, read-your-stylesheet, repo-change, takenote-card.
Variants
| Variant | When | Why |
|---|---|---|
| high | Errors. | Madder ink word: fix first. |
| medium | Warnings. | Saffron ink word: fix soon. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: A finding is not interactive, so it has no hover state. |
| focus-visible | Not applicable: A finding does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: A finding cannot be pressed. |
| disabled | Not applicable: A finding has nothing to disable. |
| loading | Not applicable: A finding is rendered at build time and is complete when the page loads. |
| empty | Not applicable: A finding is not rendered without content; the builder skips it. |
| error | Not applicable: A finding shows no data that can fail. |
| current | Not applicable: A finding has no current item. |
| visited | Not applicable: A finding is not a link. |
| expanded | Not applicable: A finding does not open or close. |
Tokens
| Part | Token |
|---|---|
| sev-high.color | --madder-ink |
| sev-medium.color | --saffron-ink |
| root.font | --type-small |
| --finding-gap-space-5 | var(--space-5) |
| --finding-padding-bottom-space-5 | var(--space-5) |
| --finding-border-bottom-line | var(--line) |
| --finding-font-size-fs-small | var(--fs-small) |
| --finding-color-ink-2 | var(--ink-2) |
| --finding-font-type-label | var(--type-label) |
| --finding-padding-space-3 | var(--space-3) |
| --finding-padding-space-2 | var(--space-2) |
| --finding-border-radius-radius | var(--radius) |
| --finding-background-madder-soft | var(--madder-soft) |
| --finding-color-madder-ink | var(--madder-ink) |
| --finding-background-saffron-soft | var(--saffron-soft) |
| --finding-color-saffron-ink | var(--saffron-ink) |
| --finding-padding-inline-space-4 | var(--space-4) |
| --finding-gap-grid-gap | var(--grid-gap) |
| --finding-margin-top-space-12 | var(--space-12) |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; wraps. |
| wrapping | Messages wrap; file paths break anywhere. |
| textExpansion | Engine messages stay in English; Japanese pages say so. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | --space-3 between severity and message. |
| external | --space-4 between findings. |
| rhythm | Inside a showcase or report. |
Motion
| Aspect | Value |
|---|---|
| None | Static. |
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 | listitem |
| name | Severity word then message |
| keyboard | Not interactive. |
| focus | Not focusable. |
| screenReader | Reads the severity word, so colour is not needed. |
| contrast | madder-ink 6.4:1, saffron-ink 5.2:1 on cotton. |
| target | Not a target. |
Content
| Slot | Length | Voice |
|---|---|---|
| message | As the check wrote it | Verbatim engine output |
Good: “ERROR Button has no "variant" prop.”
Bad: “Something looks off”
Japanese: Engine output is English; Japanese pages add 「チェック結果は英語で表示されます」.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
57 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.