Cards

Tailwind

Provides container elements that wrap and separate content

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 card-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>