Card
The widget building block. Flat by default: a surface on the page — no border, no shadow, no header background.
A card is a header (title, subtitle and actions on the right), a body and an optional footer. See cards in the dashboard example →
Team members
Invite people to your workspace
Everyone on the team can view projects. Admins can also manage billing and members.
Body only
The simplest card — just .card-body.
<div class="card">
<div class="card-header">
<div>
<h3 class="card-title">Team members</h3>
<p class="card-subtitle">Invite people to your workspace</p>
</div>
<div class="card-actions">…buttons, a segmented filter, a menu…</div>
</div>
<div class="card-body">…</div>
<div class="card-footer">…</div>
</div>
Stat tiles
The dashboard number widget. .stat-icon and .stat-trend take any theme-*. Put tiles in a .grid-auto and they reflow on their own.
<div class="card">
<div class="card-body stat">
<div class="stat-label">
Revenue
<span class="stat-icon"><i class="mi mi-dollar-sign"></i></span>
</div>
<div class="stat-value">$48,210</div>
<div class="stat-trend theme-green">
<i class="mi mi-trending-up"></i>
12.4%
<span>vs last month</span>
</div>
</div>
</div>
Options
card-divided
Thin lines between parts — good for forms and settings.
card-subtle
Tinted with any theme — tips, notices, upgrades.
card-outline
A border instead of a fill.
| Class | What it does |
|---|---|
.card-divided | Thin lines between header, body and footer |
.card-flush (on .card-body) | Content edge to edge — for tables and lists |
.card-subtle + theme-* | Tinted background |
.card-outline | A border instead of a fill |
.card-img-top · .card-img-bottom · .card-img | Images that follow the card's rounded corners |
/* Customize */
.card { --mo-card-padding: 1.5rem; --mo-card-radius: 1rem; }
:root { --mo-shadow-card: var(--mo-shadow); } /* raised cards instead of flat */
:root { --mo-surface-border-width: 1px; } /* bordered cards everywhere */
Colors & strengths
Give a card a color (card-green) for the soft default fill, and a strength for lighter or stronger. Text, muted text and lines inside follow along, so they stay readable on every strength.
Muted text follows the card.
Muted text follows the card.
Muted text follows the card.
Muted text follows the card.
Muted text follows the card.
Muted text follows the card.
<div class="card card-amber">…</div> <!-- the soft default fill -->
<div class="card card-blue card-subtle">…</div>
<div class="card card-teal card-vivid">…</div>
<div class="card card-indigo card-deep">…</div>
A promo card
Reports, roles and unlimited stores — free for 14 days.
<div class="card card-indigo card-deep max-w-md"><div class="card-body grid grid-cols-1 gap-3">
<span class="badge badge-indigo badge-soft justify-self-start">New</span>
<div class="card-title text-lg">Moey Pro is here</div>
<p class="m-0 text-subtle">Reports, roles and unlimited stores — free for 14 days.</p>
<div class="flex gap-2">
<button class="btn btn-indigo btn-soft">Start free trial</button>
<button class="btn btn-indigo btn-deep btn-ghost">Learn more</button>
</div>
</div></div>
With an image
Unlimited products, team roles and priority support.
<div class="grid g-4">
<div class="card span-12 md:span-6">
<img class="card-img-top aspect-21/9 object-cover" src="../brand/moey-icon.svg" alt="">
<div class="card-body">
<div class="card-title">Linen tote</div>
<div class="card-subtitle">$89.00 · 24 in stock</div>
</div>
<div class="card-footer">
<button class="btn btn-sm">Edit</button>
<button class="btn btn-default btn-sm">View</button>
</div>
</div>
<div class="card span-12 md:span-6 card-purple card-subtle"><div class="card-body">
<div class="card-title">Upgrade to Pro</div>
<p class="mt-1.5 mb-4 mx-0">Unlimited products, team roles and priority support.</p>
<button class="btn btn-purple btn-sm">See plans</button>
</div></div>
</div>
Settings card
A form with a divided footer — the common settings-page pattern.
<div class="card card-divided">
<div class="card-header">
<div>
<div class="card-title">Store details</div>
<div class="card-subtitle">Shown on invoices and emails.</div>
</div>
</div>
<div class="card-body grid grid-cols-1 gap-4 max-w-md">
<div class="field">
<label class="form-label" for="cd-name">Store name</label>
<input class="form-control" id="cd-name" value="Moey Supply">
</div>
<div class="field">
<label class="form-label" for="cd-email">Support email</label>
<input class="form-control" id="cd-email" type="email" value="help@moey.test">
</div>
</div>
<div class="card-footer justify-end">
<button class="btn btn-gray btn-ghost">Cancel</button>
<button class="btn btn-default">Save</button>
</div>
</div>
Profile card
<div class="card max-w-xs"><div class="card-body text-center">
<span class="avatar avatar-xl avatar-purple avatar-subtle mb-3">JD</span>
<div class="card-title">Jane Doe</div>
<div class="card-subtitle">Store admin · Springfield</div>
<div class="flex gap-2 justify-center mt-4">
<button class="btn btn-sm">Message</button>
<button class="btn btn-default btn-sm">View profile</button>
</div>
</div></div>
Card grid
Cards that fill the row and wrap on smaller screens: .grid-auto.
<div class="grid-auto g-4 grid-min-48">
<div class="card">
<div class="card-body">
<div class="stat-label">Revenue</div>
<div class="stat-value">$48,210</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="stat-label">Orders</div>
<div class="stat-value">1,284</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="stat-label">Customers</div>
<div class="stat-value">932</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="stat-label">Refund rate</div>
<div class="stat-value">0.9%</div>
</div>
</div>
</div>