Cards

Automatically included in all.css and elements.css. This stylesheet provides container elements that wrap and separate content.

ts
import '@brainandbones/skeleton/styles/elements/cards.css';

Examples

Primary
Accent
Ternary
Warning

Usage

Include the .card-body class to apply some basic styles, such as padding.

html
<div class="card card-body">Skeleton</div>

Headers and Footers

If you wish the split the card into regions, use the following structure.

html
<div class="card">
    <header class="card-header">(header)</header>
    <div class="card-body">(body)</div>
    <footer class="card-footer">(footer)</footer>
</div>

Global Styles

Use your global stylesheet to update all instances of this element.

css
.card { @apply rounded-none; }

Classes

Class Description
.cardAdds basic card styling to any block element.
.card-headerThe header region of the card.
.card-bodyThe body region of the card.
.card-footerThe footer region of the card.