Layout
Section
Full-width page section with a hairline on top, vertical rhythm from section tokens and a Container inside.
- Ready
- No keyboard interaction
- Screen reader not tested yet
Playground
Section text sits here, on the content width of the Container.
<Section>
<p className="text-secondary">
Section text sits here, on the content width of the Container.
</p>
</Section>Usage
When to use
Use Section to build a page out of full-width bands, each with its own heading, as on the portfolio.
When not to use
- Inside another Section.
- For a box around a few elements: use IndustrialCard or layout utilities.
How it works
A full-width band with a hairline on top and vertical rhythm from the section tokens, smaller on phones than on desktop. It contains a Container; width chooses wide or narrow. Point aria-labelledby at its heading so the section is named in the landmark list. With surface, the band turns ink (inverse) or terracotta with white type (accent), and everything inside switches by itself: text, eyebrow, links, buttons and pills. Use it for a statement or a closing band, not for forms or tables; the accent surface once per page at most.
Content guidelines
Every section starts with an Eyebrow and a Heading. Don't add your own spacing between sections; the rhythm comes from the tokens.
Do and don’t
Contact
Let’s talk about your system
DoA Section opens with eyebrow and heading and is named by it. Let’s talk about your system
Don’tA Section without a heading: an unnamed region, and the outline skips it.
- Every Section starts with Eyebrow and Heading.
- Point aria-labelledby at the heading.
- Two strengths of break: keep the default between topics; set bottom/top="connected" on both sides of a boundary inside one topic.
- Don't add your own vertical spacing between Sections.
- Don't nest Sections.
- Don't put forms, tables or status messages in an inverse or accent Section; the modes don't cover them.
- Use the accent surface once per page at most.
Anatomy
- separatorHairline on top (divider).
- containerInner Container, wide or narrow.
Examples
Section with a head
01 — Context
Why the system exists
Section text sits here, on the content width of the Container.
Inverse
Principle
The machine proposes, the human decides
Everything inside switches by itself: text, the accent link, buttons and the eyebrow.
Accent
Contact
Complex system, unclear next step?
Available now for B2B platforms, corporates and complex systems.
Props
| Name | Type | Default | Description |
|---|---|---|---|
| width | "wide" | "narrow" | "wide" | Width of the inner Container. |
| divider | boolean | true | Hairline above the section. |
| surface | "page" | "inverse" | "accent" | "page" | Surface mode: inverse is ink, accent is terracotta with white type. Type, links, buttons and pills inside switch by themselves. |
| top | "chapter" | "connected" | "chapter" | Top rhythm. connected continues the topic of the Section above (64 px, 32 on phones). |
| bottom | "chapter" | "connected" | "chapter" | Bottom rhythm. connected leads into a Section on the same topic (64 px, 32 on phones). |
| aria-labelledby | string | – | id of the section heading. |
| children (required) | ReactNode | – | Content, starting with Eyebrow and Heading. |
Tokens used
| Token | Tier | Value | Utility |
|---|---|---|---|
| section.border | component | rgba(10,10,11,0.08) | |
| section.paddingBottom.connected.desktop | component | 64px | |
| section.paddingBottom.connected.mobile | component | 32px | |
| section.paddingBottom.desktop | component | 96px | |
| section.paddingBottom.mobile | component | 56px | |
| section.paddingTop.connected.desktop | component | 64px | |
| section.paddingTop.connected.mobile | component | 32px | |
| section.paddingTop.desktop | component | 128px | |
| section.paddingTop.mobile | component | 56px | |
| text.secondary | semantic | #555555 |
Accessibility
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |
Semantics and focus
- A <section> with a heading becomes a named region through aria-labelledby.
- Inverse and accent: every colour a mode switches to is in the contrast gate; on ink the eyebrow uses the lighter terracotta (6.3:1), on terracotta all type is white (4.8:1).