Template · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: Page close
Rendered by cta-section.tsOpen example: Call to action · Do: Page close Use the full-page example to follow page links.
Do: Japanese close
Rendered by cta-section.tsOpen example: Call to action · Do: Japanese close Use the full-page example to follow page links.
Don't: Indigo call to action
Rendered by cta-section.tsOpen example: Call to action · Don't: Indigo call to action Use the full-page example to follow page links.
Don't: Two on a page
Rendered by cta-section.tsOpen example: Call to action · Don't: Two on a page Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| The call to action is always saffron. | Saffron means 'do this' everywhere on the site. | Automated: scripts/site/system/check-pages.ts (cta field colour) |
| It is the last section before the footer. | Readers learn where the next step is. | Automated: scripts/site/system/check-pages.ts (page sequence) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
variant | page | landing | Yes | page: the standard close; landing: with the stage finder. | |
lang | en | ja | No | "en" | Language (page). |
id | string | No | Section id (landing). | |
heading | string | No | Heading (landing). | |
left | html | No | Copy and actions (landing). | |
finder | html | No | The stage finder (landing). |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | cta-section |
| Layer | Templates |
| Category | section |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/templates/cta-section.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | Call to action as one module: its markup moved out of the page builder (scripts/site) into the system. |
Use when
- Last section before the footer on every page. Why: Every page ends with the same next step, so readers always find it.
Do not use when
- In the middle of a page. Why: One call to action field per page keeps saffron meaning 'do this'.
- On another colour. Why: Saffron is the action colour (D-SITE-004).
Anatomy
| Part | What it is |
|---|---|
| root | section.section-cta.field-saffron (page) or section.l-cta.l-cta-2.field-saffron (landing) |
| heading | h2 the invitation |
| text | p what happens |
| actions | CtaPair: Book a conversation, Start with a free health check |
| finder | the Stage finder showcase beside the copy (landing) |
Made of: heading, text, cta-pair, dye-field, stage-finder.
Used in: page-article, page-articles, page-deep, page-demo, page-hub, page-landing, page-status, page-runs-on-loom.
Variants
| Variant | When | Why |
|---|---|---|
| page | Every page but the landing. | One sentence and two actions. |
| landing | The landing. | The stage finder helps the reader pick the right first step. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: The call to action is not interactive, so it has no hover state. |
| focus-visible | Not applicable: The call to action does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: The call to action cannot be pressed. |
| disabled | Not applicable: The call to action has nothing to disable. |
| loading | Not applicable: The call to action is rendered at build time and is complete when the page loads. |
| empty | Not applicable: The call to action is not rendered without content; the builder skips it. |
| error | Not applicable: The call to action shows no data that can fail. |
| current | Not applicable: The call to action has no current item. |
| visited | Not applicable: The call to action is not a link. |
| expanded | Not applicable: The call to action does not open or close. |
Tokens
| Part | Token |
|---|---|
| root.background | --field-bg (saffron) |
| text.color | --field-fg |
| button.primary | ink on saffron |
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; the wrap keeps a 16 px gutter on phones. |
| wrapping | Text wraps; nothing scrolls sideways. |
| textExpansion | Japanese runs 20 to 40% longer; headings break between phrases (jaBreaks) and blocks grow downwards. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | One padding: --space-section (D-SITE-005). |
| external | Directly before the footer. |
| rhythm | Saffron field, then the woven edge into the footer. |
Motion
| Aspect | Value |
|---|---|
| None | No intrinsic element animation. The optional claude-entrance consumer profile may translate below-fold structure once (20px, --dur-weave, --ease-enter, --stagger); reduced motion disables it. This preserved baseline entrance is separate from element playback. |
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 | region (section) named by its heading |
| name | Its h2, by aria-labelledby |
| keyboard | Links and buttons inside, in reading order. |
| focus | The --focus ring on every link and button inside. |
| screenReader | Read in source order; decorative weaving is aria-hidden. |
| contrast | Ink on cotton 14:1; text on every dye field 4.5:1 or better (checked by check-brand). |
| target | Links and buttons are 44 px tall. |
Content
| Slot | Length | Voice |
|---|---|---|
| heading | 10 words | An invitation, not a sales line |
Good: “Start with a conversation about your system.”
Bad: “Get started today!”
Japanese: まずは、自社のデザインシステムについてお聞かせください。 (content token cta.primary)
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
75 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.