Cards Reference

Base card

Default card

Border + surface background

Standard card with a header, body and right-aligned footer.

Flat card

No border, base background

Use inside already-bordered containers where a border would be redundant.

Shadow card

Shadow is opt-in via .ui-shadow@*

Elevated appearance useful for primary actions or featured content.

Footer alignment

Footer default (end)

Footer .ui-justify-start

Footer .ui-justify-between

Image cards

Mountains

Image card

Full-bleed image sitting above the body.

Forest

Image + footer

Image, body and footer combination.

Coast

Image + spread footer

Meta on the left, action on the right.

Composed examples

Sarah Chen

Product Designer

Creates accessible design systems and component libraries used across products.

MONTHLY REVENUE

+12%

$48,295

vs $43,120 last month

Article
Design

Building a scalable component system

How to structure tokens, primitives and patterns that scale across products.

Reference

Base

ClassDescription
.ui-cardBase card container flex column, surface background, border
.ui-card-headerOptional top section padded, border-bottom
.ui-card-bodyMain content area padded, flex: 1
.ui-card-footerOptional bottom section padded, border-top, flex end-aligned
.ui-card-flatRemoves border, uses base background instead of surface

Modifiers

ClassDescription
.ui-shadow@s/m/l/xlAdds a drop shadow combine with .ui-card
.ui-rounded@*Adds border radius combine with .ui-card

Options

ClassDescription
.ui-justify-startLeft-aligns footer actions add to .ui-card-footer
.ui-justify-betweenSpreads footer content add to .ui-card-footer