Organism · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: In See
Rendered by takenote-card.tsOpen example: Audit card: an open-source app · Do: In See Use the full-page example to follow page links.
Do: Japanese
Rendered by takenote-card.tsOpen example: Audit card: an open-source app · Do: Japanese Use the full-page example to follow page links.
Don't: Rounded up
Rendered by takenote-card.tsOpen example: Audit card: an open-source app · Don't: Rounded up Use the full-page example to follow page links.
Don't: Without its commit
Rendered by takenote-card.tsOpen example: Audit card: an open-source app · Don't: Without its commit Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| The audit card: an open-source app is drawn from Loom's real audit of takenote, an open-source notes app at build time. | A figure read from the real records cannot drift from them. | Automated: npm run site:build (reads the data; fails if it is missing) |
| The card names the repository commit it audited. | Anyone can rerun the audit on the same code. | Automated: tests/unit/site-static-context.test.ts |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
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 | takenote-card |
| Layer | Organisms |
| Category | figure |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/organisms/takenote-card.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Audit card: an open-source app, drawn at build time from Loom's real audit of takenote, an open-source notes app. |
Use when
- The See section of the landing. Why: A real audit of public code is a proof anyone can verify.
Do not use when
- For a client. Why: Client audits stay private.
Anatomy
| Part | What it is |
|---|---|
| root | figure.ix-tc |
| head | Name, kicker and score |
| areas | Area scores |
| findings | Top findings with severity words |
| facts | Repository, commit, date |
Made of: figure-frame, band-word, stat, finding, caption.
Used in: pages directly.
Variants
| Variant | When | Why |
|---|---|---|
| default | Wherever its claim is made. | One drawing per claim keeps the evidence consistent. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: The audit card: an open-source app is not interactive, so it has no hover state. |
| focus-visible | Not applicable: The audit card: an open-source app does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: The audit card: an open-source app cannot be pressed. |
| disabled | Not applicable: The audit card: an open-source app has nothing to disable. |
| loading | Not applicable: The audit card: an open-source app is rendered at build time and is complete when the page loads. |
| empty | Not applicable: The audit card: an open-source app is not rendered without content; the builder skips it. |
| error | Not applicable: The audit card: an open-source app shows no data that can fail. |
| current | Not applicable: The audit card: an open-source app has no current item. |
| visited | Not applicable: The audit card: an open-source app is not a link. |
| expanded | Not applicable: The audit card: an open-source app does not open or close. |
Tokens
| Part | Token |
|---|---|
| score.font | --type-h2 |
| sev.color | --madder-ink / --saffron-ink words |
| --takenote-card-background-surface | var(--surface) |
| --takenote-card-color-ink | var(--ink) |
| --takenote-card-border-top-rule-frame | var(--rule-frame) |
| --takenote-card-border-top-ink | var(--ink) |
| --takenote-card-padding-space-6 | var(--space-6) |
| --takenote-card-padding-space-9 | var(--space-9) |
| --takenote-card-gap-space-8 | var(--space-8) |
| --takenote-card-gap-space-6 | var(--space-6) |
| --takenote-card-font-type-small-strong | var(--type-small-strong) |
| --takenote-card-color-madder-ink | var(--madder-ink) |
| --takenote-card-font-type-h2 | var(--type-h2) |
| --takenote-card-letter-spacing-ls-h2 | var(--ls-h2) |
| --takenote-card-font-type-body | var(--type-body) |
| --takenote-card-color-ink-2 | var(--ink-2) |
| --takenote-card-font-type-label | var(--type-label) |
| --takenote-card-margin-top-space-3 | var(--space-3) |
| --takenote-card-font-type-display | var(--type-display) |
| --takenote-card-letter-spacing-ls-display | var(--ls-display) |
| --takenote-card-font-type-small | var(--type-small) |
| --takenote-card-padding-space-1 | var(--space-1) |
| --takenote-card-padding-space-4 | var(--space-4) |
| --takenote-card-background-band-loose | var(--band-loose) |
| --takenote-card-color-on-dye | var(--on-dye) |
| --takenote-card-border-radius-radius | var(--radius) |
| --takenote-card-border-top-rule | var(--rule) |
| --takenote-card-gap-space-2 | var(--space-2) |
| --takenote-card-padding-space-5 | var(--space-5) |
| --takenote-card-margin-bottom-space-4 | var(--space-4) |
| --takenote-card-gap-space-3 | var(--space-3) |
| --takenote-card-gap-space-4 | var(--space-4) |
| --takenote-card-background-surface-3 | var(--surface-3) |
| --takenote-card-font-type-figure | var(--type-figure) |
| --takenote-card-gap-space-5 | var(--space-5) |
| --takenote-card-padding-bottom-space-5 | var(--space-5) |
| --takenote-card-border-bottom-rule-hair | var(--rule-hair) |
| --takenote-card-border-bottom-line | var(--line) |
| --takenote-card-color-saffron-ink | var(--saffron-ink) |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; the figure reflows to one column under 768 px. |
| wrapping | Labels wrap; drawings scale to the column. |
| textExpansion | Japanese labels are 20 to 40% longer and wrap inside their cells. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | Inside the Figure frame's --space-7 padding. |
| external | --space-9 above and below in prose. |
| rhythm | After the text whose claim it proves. |
Motion
| Aspect | Value |
|---|---|
| None | A record is evidence: it holds still so it can be read. |
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 | figure, named by its caption |
| name | The caption, and a text alternative for any drawing |
| keyboard | Not interactive unless stated. |
| focus | Links inside are in reading order. |
| screenReader | Reads the figure's text and caption; drawings have role=img with a description. |
| contrast | Ink on surface 14:1; dyes used only as marks with their words. |
| target | Not a target. |
Content
| Slot | Length | Voice |
|---|---|---|
| caption | 1 sentence | Real audit output on public code |
Good: “Real audit output on takenote at a named commit.”
Bad: “Example report”
Japanese: i18n.ts ix.tc.*.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
38 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.