SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

landingLead

Supporting copy under a landing headline, in the body ink so it reads at 4.5:1 or better on the band, on a 2rem line.

tsx
import { landingLead } from "@sdxc/ui/styles";

Signature

typescript
landingLead<Node extends Element = Element>(step?: LandingLeadStep): MixinDescriptor<Node, [styles: CSSStyles], ElementProps>

Returns a css() mixin ready for a lead paragraph's mix prop.

Parameters

ParameterTypeRequiredDescription
step"band" | "hero"No"hero" for the larger first-viewport lead. Defaults to "band".

Examples

tsx
<p mix={[landingLead()]}>{description}</p>;
tsx
<p mix={[landingLead("hero")]}>{description}</p>;

The events, constants and types its module publishes, each imported from @sdxc/ui/styles too.

Type

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.

typescript
type LandingSectionSpacing = "hero" | "normal" | "compact" | "cta"
Type

LandingDisplayLevel

Outline depth displayHeading sizes for: 1 is the page H1, 2 a section chapter, 3 a quieter in-band title.

typescript
type LandingDisplayLevel = 1 | 2 | 3
Type

LandingLeadStep

Which lead landingLead sizes: a band's, or the larger hero step.

typescript
type LandingLeadStep = "band" | "hero"
Type

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.

typescript
type LandingEyebrowVariant = "mono" | "quiet" | "soft" | "pill" | "numbered"
@sdxc/ui

Can’t find it? Contact us