Cards

Tailwind

Provides container elements that wrap and separate content

Getting Started

Both block elements and anchors are supported.

html
<div class="card p-4">Basic</div>
html
<a href="/" class="card p-4">Link</a>

Variants

Supports all standard variant styles via .variant-[style]-[color].

html
<div class="card variant-filled-primary p-4">Skeleton</div>

Filled

primary
secondary
tertiary
success
warning
error
surface

Soft

primary
secondary
tertiary
success
warning
error
surface

Ringed

primary
secondary
tertiary
success
warning
error
surface

Ghost

primary
secondary
tertiary
success
warning
error
surface

Glass

primary
secondary
tertiary
success
warning
error
surface

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="p-4">(body)</div>
	<footer class="card-footer">(footer)</footer>
</div>