Components · Layout and contentNot verified with Figma

Section

A section is a full-width block of a page. Its padding adjusts at each breakpoint and its surface is white or grey.

The tokens, the padding per breakpoint, the measurements and the requirements. Values come from the live token package and from the specification skill.

Design Tokens

Resolved from the live token package.

PartUseTokenValue

Spacing

The padding values are on the fixed spacing scale (eco-spacing).

ValueTokenUsed for
16pxspace-16Top padding, first section (xs). Side margin (xs).
24pxspace-24My Pages title (xs and sm).
32pxspace-32Top padding (xs), first section (sm, md). Side margin (sm, md).
40pxspace-40Bottom padding (xs), first section (lg). Side margin (lg).
48pxspace-48Top and bottom (sm), first section (xl). Page divider.
56pxspace-56Top padding (md).
64pxspace-64Bottom padding (md).
72pxspace-72Top padding (lg, xl).
80pxspace-80Bottom padding (lg, xl).

Open point: section.css writes these values as pixels, not as var(--dimension-spacing-space-…). The values are the same; the file is not changed yet.


Sizes

The padding steps at the five ECO breakpoints. The row for the current window width is marked.

First section

BreakpointTopBottom
xs · 0–639px16px40px
sm · 640–768px32px48px
md · 769–1023px32px64px
lg · 1024–1280px40px80px
xl · 1281px+48px80px

Other sections

BreakpointTopBottom
xs · 0–639px32px40px
sm · 640–768px48px48px
md · 769–1023px56px64px
lg · 1024–1280px72px80px
xl · 1281px+72px80px

Side margin

var(--px-full): the grid margin that also centers the content against the 1200px maximum width.

BreakpointMargin
xs16px
sm and md32px
lg40px
xlCentered: the larger of 40px and half of the window minus 1200px

Page divider

PartValue
Padding, top and bottom48px (zero it between two sections that have padding)
Padding, sidesvar(--px-full)
Line1px

My Pages title block

Breakpoint.main-content padding-top.page-preamble margin-bottom
xs24px24px
sm24px32px
md and up40px40px

Measurements

Dimensions

Padding of a section at the current window width. The shaded areas are the padding. The numbers are read from the real component, so they change when you resize the window.

A section at true size (1:1), in a figure 280px wide. The side margin is the page margin of the window.

There is no Breakpoint toolbar: the padding steps at four widths, and the toolbar only switches at 769px. Resize the window, or read the table under Sizes.

AttributeValue
Padding, top and bottomSee the figure and Sizes: per position and breakpoint
Padding, sidesvar(--px-full): 16, 32 or 40px, then centered
WidthThe full width of the window
Content maximum width1200px
CornersSquare

Spacing

The padding as spacing tokens is listed under Design Tokens.


States

A section has no states: no hover, focus, active or disabled.


Structure

Elements

ElementClassNotes
SectionsectionA <section>. White surface, padding per breakpoint, sides var(--px-full).
Surfacesection--secondaryGrey surface (surface-raised-secondary).
Positionsection--firstLess top padding, for the first section on a page.
Paddingsection--flushZero top and bottom padding.
Page dividerpage-divider and page-divider__lineA div with a 1px line.
My Pages titlemain-content and page-preambleThe spacing around the page title.

Types

TypeClassUse
WhitesectionThe default.
Greysection section--secondaryA clear change of content.
Firstsection section--firstThe first section of a page.
Zeroedsection section--flushThe five cases only.

Width

A section is as wide as the window. The content is limited to 1200px by the side margin.


Behavior

TopicResult
InputNone. A section has no hover, focus or click.
BreakpointThe padding steps at 640, 769, 1024 and 1281px.
Window widthThe side margin follows --px-full, so the content stays centered against 1200px.
MotionNone.

Accessibility Requirements

TopicRequirement
HeadingsGive every section a heading, so the structure is in the markup and not only in the padding (WCAG 1.3.1).
LandmarkA <section> is a landmark only with an accessible name (aria-labelledby or aria-label). Add one when the part is important to navigate to.
ColorNever use the grey surface as the only sign of a change. The heading must also show it.
ReflowThe content must fit 320px without sideways scrolling (WCAG 1.4.10). The side margin is 16px at xs.
Page dividerAn empty div: decorative and not announced. It must not carry meaning.