Skip to content

Card

A bordered surface with an optional header, body and footer, for a summary, a setting or a view of your own in a reply.

  • .aparte-card
On this page
Open

.aparte-card is a surface with a border and rounded corners, split into an optional __header, a __body and an optional __footer. It is the natural frame for a view of your own inside a reply: a forecast, an order, a summary.

VariableDefault
--aparte-card-radiusvar(--aparte-radius-xl)
--aparte-card-header-paddingvar(--aparte-space-4) var(--aparte-space-5)
--aparte-card-body-paddingvar(--aparte-space-5)
--aparte-card-footer-paddingvar(--aparte-space-4) var(--aparte-space-5)
--aparte-card-header-font-sizevar(--aparte-font-size-base)

.aparte-card · .aparte-card__body · .aparte-card__footer · .aparte-card__header

  • A card is a box, not a landmark: give its title a real heading level when the card is a section of the page, and make the whole card a link only when it leads to one place.
  • Custom view — a card drawn in a reply.
  • Popover — a surface that floats above the page.