Skip navigation

Components / Surfaces & media

Card

An enclosed surface with optional Figure or Artwork media, header and content regions. Use Exhibit only when content overlaps or reserves space within a full-card scene.

article.card > figure.figure or div.artwork + div.content
Try the options

About Card media and regions

Figure or Artwork: use Figure when the media carries meaning. Use Artwork for decorative backgrounds, layers and foreground objects. A Card accepts either in the same media region.

Artwork layers: the region background remains edge-to-edge. Artwork.Is-Padded gives foreground layers breathing room. In a horizontal desktop Card, the foreground position keeps padding on its named sides and opens the opposite sides for cropping: is-center-left, for example, keeps top, bottom and left space while reaching the right edge. When the Card stacks on mobile, the complete foreground is contained, centered and inset on all four sides.

Edges: media touches the Card edges by default. has-media-padding moves the entire media region away from the Card edges. is-padded pads the whole Card composition.

Header: when enabled, Figure and introduction share the Header region. Artwork media remains a direct Card region.

Spare height: choose “Equal-height row”, then toggle Figure fill. The Figure takes height supplied by its taller neighbor instead of stretching the text region.

Checklist: enable it, choose one item, and change that check’s color. The generated HTML puts the color class on that li.

Blue mountains beneath a golden sun

Media, text and optional header regions share one surface.

<article class="card"><figure class="figure"><img src="/assets/images/pattern-example.svg" width="800" height="500" alt="Blue mountains beneath a golden sun"></figure><div class="content"><h3 class="like-h4">Example Card</h3><p>Media, text and optional header regions share one surface.</p></div></article>
Class or attributeWhat it does
is-light / is-outlinedSecondary surface or transparent fill.
is-darkOpt into the dark section palette on a Card, including Card.Exhibit.
is-borderlessRemove the border only.
is-dashedUse a dashed border without changing the Card surface or content; choose this instead of is-borderless.
has-shadowOptional elevation; there is no separate Box.
is-unboxedEditorial treatment without padding, border, fill or rounded enclosure.
is-paddedPad the whole Card for a composition, with the same surface options. This replaces Panel.
is-horizontalMedia beside Content on desktop; stack on mobile.
has-media-paddingAdd space around media in either orientation, without doubling the gap next to padded text.
is-reversedWith horizontal layout, media sits right on desktop.
artworkDecorative Card media with its own background and optional coordinated layers. It occupies the same media region as Figure.
artwork.is-layered + art-background/art-foregroundKeep a full-bleed background and an independently fitted foreground in one clipped media region.
artwork.has-focus-*Choose the background crop focal point using the nine top/center/bottom and left/center/right positions.
art-foreground.is-cover / is-containFill and crop the foreground region, or show the whole foreground.
art-foreground.is-top-* / is-center-* / is-bottom-*Choose which part of a cover-cropped foreground remains visible.
artwork.is-paddedGive foreground layers breathing room while background color and art-background remain edge-to-edge. In horizontal desktop Cards, foreground position keeps padding on its named sides and opens the opposite crop edges.
horizontal artwork on mobileStack Artwork above Content and contain/center the complete foreground layer.
card-headerHeader region owns its media and introduction. A color on the header covers the media padding and text area together; only the body grows in equal-height rows.
is-light + plain card-headerLight-grey body with a white header; the two regions are independent.
figure.is-fillIn a stretched Card, let media take the remaining height instead of stretching the text region.
checklist + tooltip + pricePricing is a Card composition; try these choices in the controls above.
exhibit + is-immersiveCombine Card with Exhibit for artwork-led compositions.
is-top-left/center/right / is-center-left/center/right / is-bottom-left/center/rightPlace immersive content. Use is-center for the exact center. Bottom-left is the fallback; the artwork controls emit an explicit choice.