section
Vertical padding wrapper with optional background. Compose with container() for full-width background with constrained content.
Why Pulse
Built for speed.
Every page scores 100 on Lighthouse by design, not by optimisation.
Content goes here
Dark background · no header
section({
eyebrow: 'Why Pulse',
title: 'Built for speed.',
subtitle: 'Every page scores 100 on Lighthouse by design.',
align: 'center',
variant: 'alt',
content: container({ size: 'lg', content: featureGrid }),
})Diagonal variant
The diagonal variant clips the bottom edge to a slanted angle, creating a layered stacking effect when multiple sections follow each other. The section after it should start with no top gap.
Diagonal
Slanted bottom edge.
Content here
section({ variant: 'diagonal', title: 'Slanted edge', align: 'center', content })Paper variant
The paper variant applies a subtle off-white background and slight inset box shadow — useful for content sections that need to feel warmer and tactile.
Paper
Warm and tactile.
Content here
section({ variant: 'paper', title: 'Warm and tactile', align: 'center', content })Spotlight variant
The spotlight variant adds a radial gradient light source at the top centre — gives the section a dramatic, focused feeling.
Spotlight
Dramatically focused.
Content here
section({ variant: 'spotlight', title: 'Dramatically focused', align: 'center', content })| Prop | Type | Default | Description |
|---|---|---|---|
content | string (HTML) | — | Raw HTML slot |
variant | string | 'default' | 'default' · 'alt' · 'dark' · 'diagonal' · 'paper' · 'spotlight' |
padding | string | 'md' | 'sm' · 'md' · 'lg' |
id | string | — | Anchor id for nav links |
eyebrow | string | — | Small label above the title |
title | string | — | Section heading |
level | number | 2 | Heading tag for the title (1–6). Visual style is unchanged. |
subtitle | string | — | Supporting text beneath the heading |
align | string | 'left' | 'left' · 'center' |