landingSectionSpace
Applies the band's block padding from the landing section-space tokens.
import { landingSectionSpace } from "@sdxc/ui/styles";Usage
Applies the band's block padding from the landing section-space tokens. Each step is fluid in the width of the container around the band, so a phone gets the tighter end and a desktop band the generous one without a breakpoint jump. The step rounds to whole pixels, so band hairlines and edges stay crisp.
Signature
landingSectionSpace<Node extends Element = Element>(spacing?: LandingSectionSpacing): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>Returns a css() mixin ready for a band host's mix prop.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
spacing | "hero" | "normal" | "compact" | "cta" | No | Which step to apply. Defaults to "normal". |
Examples
<section mix={[landingSectionSpace("hero")]}>{children}</section>;Used with it
The events, constants and types its module publishes, each imported from @sdxc/ui/styles too.
LandingSectionSpacing
How much block padding a landing band leaves around its content.
"hero" is the first viewport, "normal" the repeating mid-page rhythm,
"compact" a tighter strip such as a proof row, "cta" a closing band.
type LandingSectionSpacing = "hero" | "normal" | "compact" | "cta"LandingDisplayLevel
Outline depth displayHeading sizes for: 1 is the page H1,
2 a section chapter, 3 a quieter in-band title.
type LandingDisplayLevel = 1 | 2 | 3LandingLeadStep
Which lead landingLead sizes: a band's, or the larger hero step.
type LandingLeadStep = "band" | "hero"LandingEyebrowVariant
How an eyebrow reads: mono a quiet uppercase label for section headers,
quiet a hairline pill for hero announcements, soft a filled muted pill,
pill the brand pill, numbered a brand-ringed pill led by its index.
type LandingEyebrowVariant = "mono" | "quiet" | "soft" | "pill" | "numbered"