Skip to content

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

Updated 2026-11-12

Playground

Change the props. The controls come from the documented props.

Section text sits here, on the content width of the Container.

tsx
<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.
Do
  • 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
  • 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

The parts of the component and what each one does, as in the playground above.
  1. separatorHairline on top (divider).
  2. containerInner Container, wide or narrow.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { Section } from "@/ds";

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

Checked against the component's TypeScript type on every build.
Section props
NameTypeDefaultDescription
width"wide" | "narrow""wide"Width of the inner Container.
dividerbooleantrueHairline 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-labelledbystring–id of the section heading.
children (required)ReactNode–Content, starting with Eyebrow and Heading.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by Section
TokenTierValueUtility
section.bordercomponentrgba(10,10,11,0.08)
section.paddingBottom.connected.desktopcomponent64px
section.paddingBottom.connected.mobilecomponent32px
section.paddingBottom.desktopcomponent96px
section.paddingBottom.mobilecomponent56px
section.paddingTop.connected.desktopcomponent64px
section.paddingTop.connected.mobilecomponent32px
section.paddingTop.desktopcomponent128px
section.paddingTop.mobilecomponent56px
text.secondarysemantic#555555

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not applicable
Screen readerManualNot 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).