Cards collect discrete information within a container. A single card may be standalone in order to create a visual distinction between information within the card and the rest of the information on the page, or multiple cards may be used in a collection to group related pieces of information. Cards provide a snapshot and should encourage users to click through for futher action.
The card pattern is customizable to a number of scenarios and should use the design that will create the optimal experience. All cards in one collection should have the same basic layout and component parts.
The only required elements within a container are the title and body content. The optional elements listed below provide additional information and visual prominence where necessary.
Card body content is concise and immediately relevant to the card's header.
<div class="c-card">
<img class="c-card__img" src={pic} alt="Card" />
<div class="c-card__body">
<div class="c-card__eyebrow">Eyebrow Text</div>
<h1 class="c-card__title">Header</h1>
<p class="c-card__text">
Card body content is concise and immediately relevant to the
card's header.
</p>
<div class="c-card__button-container">
<button class="c-card__button--primary">Action 1</button>
<button class="c-card__button--default">Action 2</button>
<a href="/#">Action 3</a>
</div>
</div>
</div>
Card body content is concise and immediately relevant to the card's header.
<div class="c-card--hero">
<img class="c-card__img--hero-mobile" src={pic} alt="Card" />
<div class="c-card__body--hero">
<div class="c-card__eyebrow">Eyebrow Text</div>
<h1 class="c-card__title--hero">Header</h1>
<p class="c-card__text">
Card body content is concise and immediately relevant to the
card's header.
</p>
<div class="c-card__button-container--hero">
<button class="c-card__button--primary--hero">Action 1</button>
<button class="c-card__button--default--hero">Action 2</button>
</div>
</div>
<img class="c-card__img--hero-desktop" src={pic} alt="Card" />
</div>
Card containers are flexible and margins should adapt to the card size. Use more spacing in between larger cards and unrelated layout elements around them. Use less spacing in between related cards in a collection.
Because of the space restraints inherent in cards, copy should be concise. The relationship between a card's body content, optional eyebrow, title and image should be immediately apparent. Follow the microcopy guidelines in titles, buttons and links for more information.