Card
A glass panel for grouping related content.
| Name | Type | What it does |
|---|---|---|
card | component | The panel. An <img> placed first bleeds to the edges |
card-title | part | Heading text |
card-actions | part | A row of buttons pushed to the bottom right |
glow | modifier | Makes the inner light follow the pointer |
card-primary | colour | Tints it with the primary colour |
card-secondary | colour | Tints it with the secondary colour |
card-success | colour | Tints it with the success colour |
card-warning | colour | Tints it with the warning colour |
card-danger | colour | Tints it with the danger colour |
Card
Night walk
Shibuya after the rain, shot on a 35mm.
<article class="card glow" style="max-width: 20rem">
<p class="card-title">Night walk</p>
<p>Shibuya after the rain, shot on a 35mm.</p>
<div class="card-actions">
<button class="btn btn-ghost btn-sm">Skip</button>
<button class="btn btn-primary btn-sm">Open</button>
</div>
</article>Tinted cards
Warm
card-primary
Fresh
card-success
<article class="card card-primary" style="max-width: 14rem"><p class="card-title">Warm</p><p>card-primary</p></article>
<article class="card card-success" style="max-width: 14rem"><p class="card-title">Fresh</p><p>card-success</p></article>