Callout

Draws attention to one thing the reader must know before going on: a plan that is not built, an error in a form, a note on data.

Molecule · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)

Do and don't

Do: A plan notice

Rendered by callout.ts

Open example: Callout · Do: A plan notice Use the full-page example to follow page links.

The limit comes before the demo.

Do: A form error

Rendered by callout.ts

Open example: Callout · Do: A form error Use the full-page example to follow page links.

What to fix, in plain words.

Don't: A sales message

Rendered by callout.ts

Open example: Callout · Don't: A sales message Use the full-page example to follow page links.

Callouts warn; they never sell.

Don't: An error without a fix

Rendered by callout.ts

Open example: Callout · Don't: An error without a fix Use the full-page example to follow page links.

Say what to do, not just that it failed.

Rules

RuleWhyCheck
At most one callout per section.Two warnings compete and both get skipped.Automated: scripts/site/system/check-pages.ts
An error says how to fix it.An error that only says 'invalid' leaves the reader stuck.Review: Content owner

API

PropTypeRequiredDefaultWhat it does
kindnotice | info | errorNo"notice"Notice for plans and limits, info for notes, error for form errors.
htmlhtmlYesThe message.
titlestringNoA bold lead ('Coming next.').

Contract details

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

Identity

AspectValue
Idcallout
LayerMolecules
Categoryfeedback
OwnerSite system lead
Statusstable
Version1.0.0
Sourceapps/showcase/site/system/molecules/callout.ts (private repository; the contract and the render function are this one module)
VersionDateChange
1.0.02026-10-26Notices, information and errors on a soft ground with a top rule.

Use when

  • A demo shows a plan with sample data. Why: The reader must know it is not built before they try it.
  • A form has errors. Why: The form owner lists errors at the top and links them to their fields; this component supplies only static message markup.

Do not use when

  • For marketing emphasis. Why: Callouts that sell train readers to skip the ones that warn.
  • More than one per section. Why: Two warnings compete.

Anatomy

PartWhat it is
rootp.callout with a top rule and a soft dye ground.
titleA bold lead.
bodyThe message.

Made of: text, tokens:colour.

Used in: form-field, autonomy-demo, prose-section.

Variants

VariantWhenWhy
noticeA plan, a limit, sample data.Saffron soft ground: attention, not alarm.
infoA neutral note (the health check's deep section).Indigo soft ground: information.
errorForm errors.Madder: something must be fixed.

States

StateRendered or not applicable
defaultdefault
hoverNot applicable: A callout is not interactive, so it has no hover state.
focus-visibleNot applicable: A callout does not take focus; links and buttons inside it carry their own focus ring.
activeNot applicable: A callout cannot be pressed.
disabledNot applicable: A callout has nothing to disable.
loadingNot applicable: A callout is rendered at build time and is complete when the page loads.
emptyNot applicable: A callout is not rendered without content; the builder skips it.
errorThe error variant.
currentNot applicable: A callout has no current item.
visitedNot applicable: A callout is not a link.
expandedNot applicable: A callout does not open or close.

Tokens

PartToken
root.background@notice--saffron-soft
root.background@info--indigo-soft
root.background@error--madder-soft
root.border-top--rule in the variant's dye
root.font--type-small
--callout-padding-space-5var(--space-5)
--callout-padding-space-6var(--space-6)
--callout-background-surface-2var(--surface-2)
--callout-border-top-rulevar(--rule)
--callout-border-top-inkvar(--ink)
--callout-font-type-smallvar(--type-small)
--callout-callout-rule-saffronvar(--saffron)
--callout-background-saffron-softvar(--saffron-soft)
--callout-callout-rule-maddervar(--madder)
--callout-background-madder-softvar(--madder-soft)
--callout-callout-rule-indigovar(--indigo)
--callout-background-indigo-softvar(--indigo-soft)
--callout-border-top-maddervar(--madder)
--callout-margin-space-3var(--space-3)
--callout-padding-left-space-7var(--space-7)

Layout

AspectValue
max--w-text
breakpointsRequired review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; full width of its column.
wrappingWraps.
textExpansionGrows downwards.

Spacing and rhythm

AspectValue
internal--space-5 by --space-6.
external--space-7 below.
rhythmAt the top of the content it qualifies.

Motion

AspectValue
NoneA message that moves is harder to 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
roleparagraph; the form owner supplies any error-summary region
nameIts title
keyboardLinks inside are focusable.
focusNot focusable itself. The form owner manages submit-error focus.
screenReaderRead in place. Submit-error announcements belong to the enclosing form.
contrastInk on each soft ground 12:1 or better.
targetNot a target.

Content

SlotLengthVoice
html3 sentencesWhat it is, then what to do

Good: “Coming next. This demo shows a plan with sample data. It is not built yet.”

Bad: “Amazing new feature!”

Japanese: Text comes from the page content; Japanese strings are reviewed per page (apps/showcase/site/loom/locales). Awaiting native review, as the banner on every Japanese page says.

Icons and illustrations

None: this element uses no icon or illustration of its own.

Decisions and exceptions

Usage

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