Card title 1
SuccessSupporting text for the card.
A surface that groups one thing's content, with an optional header and footer, and a whole-card link that stays accessible.
Supporting text for the card.
Supporting text for the card.
Supporting text for the card.
<div class="demo-cards">
<article class="kit-card">
<header class="kit-card-header"><h3><a class="kit-card-link" href="#card">Card title 1</a></h3><span class="kit-badge" data-tone="good">Success</span></header>
<div class="kit-card-body"><p>Supporting text for the card.</p></div>
<footer class="kit-card-footer"><span class="demo-figure">0.00</span><button class="kit-button" data-size="sm" data-variant="ghost" type="button" aria-label="Action for card 1">Action</button></footer>
</article>
<article class="kit-card">
<header class="kit-card-header"><h3><a class="kit-card-link" href="#card">Card title 2</a></h3><span class="kit-badge" data-tone="warn">Warning</span></header>
<div class="kit-card-body"><p>Supporting text for the card.</p></div>
<footer class="kit-card-footer"><span class="demo-figure">0.00</span><button class="kit-button" data-size="sm" data-variant="ghost" type="button" aria-label="Action for card 2">Action</button></footer>
</article>
<article class="kit-card">
<header class="kit-card-header"><h3><a class="kit-card-link" href="#card">Card title 3</a></h3><span class="kit-badge" data-tone="bad">Error</span></header>
<div class="kit-card-body"><p>Supporting text for the card.</p></div>
<footer class="kit-card-footer"><span class="demo-figure">0.00</span><button class="kit-button" data-size="sm" data-variant="ghost" type="button" aria-label="Action for card 3">Action</button></footer>
</article>
</div>
<article class="kit-card">
<header class="kit-card-header"><h3><a class="kit-card-link" href="/items/1">Card title</a></h3><span class="kit-badge" data-tone="good">Success</span></header>
<div class="kit-card-body"><p>Supporting text for the card.</p></div>
<footer class="kit-card-footer">…</footer>
</article>
data-raised swaps the border for a shadow. Not every group needs a card: use them for things people scan and pick between, and plain sections for the rest.
class="kit-card-link", usually on the title). Its click area stretches over the card, but screen readers hear a single, well-named link, not the whole card's text.:has() needs Safari 15.4 or later, inside kit's browser floor.<article> for things that stand alone (an invoice, a project) and a <div> or <section> otherwise, with a heading at the right level for the page.