Audit card: an open-source app

Shows one real audit result as a report card: the score, the band, the areas and the top findings, for an app anyone can check.

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.ts

Open example: Audit card: an open-source app · Do: In See Use the full-page example to follow page links.

Public, checkable evidence.

Do: Japanese

Rendered by takenote-card.ts

Open example: Audit card: an open-source app · Do: Japanese Use the full-page example to follow page links.

Translated labels; findings stay English.

Don't: Rounded up

Rendered by takenote-card.ts

Open example: Audit card: an open-source app · Don't: Rounded up Use the full-page example to follow page links.

The score is shown as the audit wrote it.

Don't: Without its commit

Rendered by takenote-card.ts

Open example: Audit card: an open-source app · Don't: Without its commit Use the full-page example to follow page links.

The audit must be reproducible.

Rules

RuleWhyCheck
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

PropTypeRequiredDefaultWhat it does
langen | jaNo"en"Interface language.

Contract details

The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests

Identity

AspectValue
Idtakenote-card
LayerOrganisms
Categoryfigure
OwnerSite system lead
Statusstable
Version1.0.0
Sourceapps/showcase/site/system/organisms/takenote-card.ts (private repository; the contract and the render function are this one module)
VersionDateChange
1.0.02026-10-26Audit 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

PartWhat it is
rootfigure.ix-tc
headName, kicker and score
areasArea scores
findingsTop findings with severity words
factsRepository, commit, date

Made of: figure-frame, band-word, stat, finding, caption.

Used in: pages directly.

Variants

VariantWhenWhy
defaultWherever its claim is made.One drawing per claim keeps the evidence consistent.

States

StateRendered or not applicable
defaultdefault
hoverNot applicable: The audit card: an open-source app is not interactive, so it has no hover state.
focus-visibleNot applicable: The audit card: an open-source app does not take focus; links and buttons inside it carry their own focus ring.
activeNot applicable: The audit card: an open-source app cannot be pressed.
disabledNot applicable: The audit card: an open-source app has nothing to disable.
loadingNot applicable: The audit card: an open-source app is rendered at build time and is complete when the page loads.
emptyNot applicable: The audit card: an open-source app is not rendered without content; the builder skips it.
errorNot applicable: The audit card: an open-source app shows no data that can fail.
currentNot applicable: The audit card: an open-source app has no current item.
visitedNot applicable: The audit card: an open-source app is not a link.
expandedNot applicable: The audit card: an open-source app does not open or close.

Tokens

PartToken
score.font--type-h2
sev.color--madder-ink / --saffron-ink words
--takenote-card-background-surfacevar(--surface)
--takenote-card-color-inkvar(--ink)
--takenote-card-border-top-rule-framevar(--rule-frame)
--takenote-card-border-top-inkvar(--ink)
--takenote-card-padding-space-6var(--space-6)
--takenote-card-padding-space-9var(--space-9)
--takenote-card-gap-space-8var(--space-8)
--takenote-card-gap-space-6var(--space-6)
--takenote-card-font-type-small-strongvar(--type-small-strong)
--takenote-card-color-madder-inkvar(--madder-ink)
--takenote-card-font-type-h2var(--type-h2)
--takenote-card-letter-spacing-ls-h2var(--ls-h2)
--takenote-card-font-type-bodyvar(--type-body)
--takenote-card-color-ink-2var(--ink-2)
--takenote-card-font-type-labelvar(--type-label)
--takenote-card-margin-top-space-3var(--space-3)
--takenote-card-font-type-displayvar(--type-display)
--takenote-card-letter-spacing-ls-displayvar(--ls-display)
--takenote-card-font-type-smallvar(--type-small)
--takenote-card-padding-space-1var(--space-1)
--takenote-card-padding-space-4var(--space-4)
--takenote-card-background-band-loosevar(--band-loose)
--takenote-card-color-on-dyevar(--on-dye)
--takenote-card-border-radius-radiusvar(--radius)
--takenote-card-border-top-rulevar(--rule)
--takenote-card-gap-space-2var(--space-2)
--takenote-card-padding-space-5var(--space-5)
--takenote-card-margin-bottom-space-4var(--space-4)
--takenote-card-gap-space-3var(--space-3)
--takenote-card-gap-space-4var(--space-4)
--takenote-card-background-surface-3var(--surface-3)
--takenote-card-font-type-figurevar(--type-figure)
--takenote-card-gap-space-5var(--space-5)
--takenote-card-padding-bottom-space-5var(--space-5)
--takenote-card-border-bottom-rule-hairvar(--rule-hair)
--takenote-card-border-bottom-linevar(--line)
--takenote-card-color-saffron-inkvar(--saffron-ink)

Layout

AspectValue
breakpointsRequired review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; the figure reflows to one column under 768 px.
wrappingLabels wrap; drawings scale to the column.
textExpansionJapanese labels are 20 to 40% longer and wrap inside their cells.

Spacing and rhythm

AspectValue
internalInside the Figure frame's --space-7 padding.
external--space-9 above and below in prose.
rhythmAfter the text whose claim it proves.

Motion

AspectValue
NoneA record is evidence: it holds still so it can be read.

Runtime and reuse

  1. Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.

Accessibility passport

AspectValue
rolefigure, named by its caption
nameThe caption, and a text alternative for any drawing
keyboardNot interactive unless stated.
focusLinks inside are in reading order.
screenReaderReads the figure's text and caption; drawings have role=img with a description.
contrastInk on surface 14:1; dyes used only as marks with their words.
targetNot a target.

Content

SlotLengthVoice
caption1 sentenceReal 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

AspectValue
unittests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns
visualNot yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts
a11ytests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark
parityscripts/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.

Open in Storybook

Start with a conversation about your system.

We read your system, show you what we found, and agree with your team what to fix first.