Card

The generic content card primitive — used for index grids, related-content tiles, and the base of more specialised card types.

Updated 2026-08-23

On this page

.card is Bifrost’s generic card primitive — a bordered, rounded, lightly shadowed block with hover lift. It’s the visual foundation for most index grids and related-content tiles across the site.

Source: themes/bifrost/sass/components/_card.scss

Anatomy#

TokenValue
Backgroundvar(--color-card-bg)
Border1px solid var(--color-border)
Radius0.75rem
Padding1.5rem
Shadow0 1px 3px rgba(0,0,0,0.1) + 0 1px 2px rgba(0,0,0,0.06)
HovertranslateY(-2px), deeper shadow, border --color-border-strong.
ElementWhat
.card__headerOptional. Bottom-padded, hairline border underneath.
.card__titleTitle-row text.
.card__bodyMain content.
.card__footerMeta row at the bottom.

When NOT to use this#

For premium / lead cards (lead Article on /articles/, lead Dispatch on /news/, reading-path tiles on /read/) use glass-cloud-card instead. The generic .card is for index tiles and uniform grids where prominence is spread evenly.

Live examples#

Edit this page on GitHub