Skip to content

Hero

Edit on GitHub
@volvo-cars/css v2.3.0

Text Hero with optional text callout

Showing: Text hero with optional text callout

Text hero uses Statement 2 — a bold, prominent heading suitable for impactful page entries while remaining adaptable to longer headlines.

Text hero spacing is driven by the component height rather than fixed vertical gaps.

  • Top and bottom padding use the xl spacing token
  • The space between the heading area and the bottom content area is calculated from the component height, so it grows/shrinks with viewport size

Text Hero spacing breakdown

Text Hero example with Statement 1 heading

Text Hero example with Statement 3 heading

Media Hero with optional text callout

Showing: Media hero with optional text callout

The media hero includes multiple media ratios to allow for compact and tall layouts.

Media Hero ratio variants showing 21, 3 and 1

Showing: 21:9, 3:2 and 1:1 ratio variants.

Media hero supports two heading sizes:

Statement 1 for launch moments and short, bold headlines

Statement 3 for longer headings or when the hero should feel less dominant

Media Hero with Statement 1 heading size

Showing: Statement 1 variant.

Media Hero with Statement 3 heading size

Showing: Statement 3 variant.

The media hero includes two media types to allow for image and video.

Media Hero image and video media type variants

Showing: Image and Video variants

Media hero on breakpoints lg and xl uses gutter spacer between the heading column and the body/actions column.

Media Hero spacing on lg and xl breakpoints

On md and sm breakpoints the spacer between heading, body text and actions is 24px (vertical).

Media Hero spacing on md and sm breakpoints

Media Hero example on large screen

Media Hero example on small screen

Text Hero in full bleed layout on lg breakpoint

Do use one hero at the top of a page as the entry point.

Example of too many actions in Media Hero

Don’t stack multiple heroes or use more than two actions.

Keep copy short: heading 1–2 lines, body 1–3 short lines (optional), and short action labels.

Text Hero example with Statement 1 heading

Do keep headings short and actions specific.

Text Hero example with Statement 3 heading

Don’t add paragraphs or multiple text blocks competing for attention.

Media will crop differently across breakpoints. Keep important subjects away from the edges so the hero works on all screen sizes.