Cards

Tailwind

Provides container elements that wrap and separate content

Examples

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

Getting Started

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

Styles

Background color styling.

html
<div class="card !bg-primary-500 text-on-primary-token p-4">primary</div>

Glass background styling. These are semi-transparent with a slight blur effect.

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