Skip to content

Cards

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

Text card with optional text elements turned off

Showing: Text card with optional text elements turned off

The text card is free-forming and can be set to any width or height you need. For consistency, use the allowed ratios coming from the media placeholder as far as possible.

Text card in various sizes

Showing: Text card in various sizes.

The text card is clickable with states. The link underline included in the card has states as well.

The text card supports secondary background.

Text card in secondary background

Showing: Text card in secondary background

In vertical columns and grids the text card can use gridded-element-gap or a more traditional gutter depending on context.

Text card with gridded-element-gap

Showing: Text card with gridded-element-gap

Text card with gutter

Showing: Text card with gutter

The text card supports page margin layouts.

Text card page margin overview

Text card page margin detail

Showing: Text card in page margin layout

Text card used to promote latest offers

Example: Text card used to promote latest offers

Text card used to present popular support articles

Example: Text card used to present popular support articles

Media card with optional text elements turned off

Showing: Media card with optional text elements turned off

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

Media card ratio variants

Showing: 1:1, 4:5, and 16:9 ratio variants.

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

Media card image and video variants

Showing: Image and video variants

The media card itself does not have states, but the link underline has states.

The media card supports primary background.

Media card in primary background

Showing: Media card in primary background

The media section comes with a default secondary background color to support transparent PNGs.

Media card with secondary background in media container

Showing: Media card with secondary background in media container

In vertical columns and grids the media card can use gridded-element-gap or a more traditional gutter depending on context.

Media card with gridded-element-gap

Showing: Media card with gridded-element-gap

Media card with gutter

Showing: Media card with gutter

The media card needs page margin — ensure it’s added to the page or container.

Media card in page margin layout

Showing: Media card in page margin layout

Media card used in Reel for car model display

Example: Media card used in Reel for a car model display

Media card used to promote the EX90 and a new event

Example: Media card used to promote the EX90 and a new event

Media card used to list news articles

Example: Media card used to list news articles

Always put cards in a grid or space where the width is constrained. Never use one card to take up the full width of a page on larger breakpoints.

Text card in a constrained grid

Do put text cards in a grid or space where the width is constrained.

Media card in a constrained grid

Do put media cards in a constrained grid.

Text card taking up full page width

Don’t use one text card to take up the full width of a page on larger breakpoints.

Media card going full bleed

Don’t go full bleed with media cards.

Always put cards in containers with pagemargin if the container spans the page.

Text card with pagemargin

Do use pagemargin on the text card container.

Media card with pagemargin

Do use pagemargin on the media card container.

Media card grid with pagemargin

Do use pagemargin on the media card grid.

Text card without pagemargin going full bleed

Don’t go full bleed on the text card container.

Media card without pagemargin going full bleed

Don’t go full bleed on the media card container.

Media card grid without pagemargin going full bleed

Don’t go full bleed on the media card grid.

Figma — Text Card (Web Core Library)

Figma — Media Card (Web Core Library)