Card

A flexible container for grouped content. Outlined by default, with modifiers for flat, shadow, interactive hover, and horizontal layout. Roles change the border color; the --subtle modifier tints the background.

Default card

index.htmlhtml
<div class="ln-card">
  <div class="ln-card__header">
    <span class="ln-card__eyebrow">Component</span>
    <h3 class="ln-card__title">Card title</h3>
    <p class="ln-card__subtitle">Optional subtitle text</p>
  </div>
  <div class="ln-card__body">
    <p>Card body content goes here. It fills the available space
       and pushes the footer to the bottom.</p>
  </div>
  <div class="ln-card__footer">
    <span class="text-muted text-body-sm">Footer content</span>
  </div>
</div>
Component

Card title

Optional subtitle text

Card body content goes here. It fills the available space and pushes the footer to the bottom.

Interactive card with shadow

index.htmlhtml
<div class="ln-card ln-card--interactive">
  <div class="ln-card__body">
    <h3 class="ln-card__title">Hover to see the lift effect</h3>
    <p>Interactive cards raise on hover with a shadow transition.</p>
  </div>
</div>

Hover to see the lift effect

Interactive cards raise on hover with a shadow transition.

Horizontal layout

index.htmlhtml
<div class="ln-card ln-card--horizontal">
  <div class="ln-card__media">
    <div class="ln-card__media-object bg-surface-sunken p-6 text-center text-muted">Image</div>
  </div>
  <div class="ln-card__body">
    <h3 class="ln-card__title">Side-by-side card</h3>
    <p>Media sits on the left with body content on the right.</p>
  </div>
</div>
Image

Side-by-side card

Media sits on the left with body content on the right.

Reference

ClassDescriptionResponsive
.ln-cardCard container with outline borderNo
.ln-card__mediaFull-bleed image areaNo
.ln-card__media-objectMedia content (image, video, or placeholder) inside media areaNo
.ln-card__headerHeader wrapperNo
.ln-card__eyebrowUppercase label above titleNo
.ln-card__titleCard headingNo
.ln-card__subtitleSecondary text below titleNo
.ln-card__bodyMain content areaNo
.ln-card__footerFooter area pushed to bottomNo
.ln-card__actionsAction button rowNo
.ln-card__linkStretched link overlayNo
.ln-card--flatRemove outline borderNo
.ln-card--shadow-{1–4}Elevation shadow levelsNo
.ln-card--interactiveHover lift and shadow effectNo
.ln-card--horizontalSide-by-side media and contentNo
.ln-card--pad-smCompact paddingNo
.ln-card--pad-mdDefault paddingNo
.ln-card--pad-lgGenerous paddingNo
.ln-card--subtleSunken backgroundNo
.ln-card--{role}Role colour (primary, success, warning, danger, info, secondary)No