STAT TILE: A KPI figure with label, optional trend delta and context line
VARIANTS: Value tones (warning | danger) | Delta tones (positive | negative | neutral) | Compact (sm)
The standard way to show a headline number — applications received, places remaining, response
rate. Carrier-agnostic: put it inside a .tw-card-body for the Data Listing KPI strip,
or bare inside any panel. Delta tones follow meaning, not arrow direction — pair the tone
with an icon and text so colour is never the only indicator.
Canonical usage: a grid of cards above the table —
tw:grid tw:grid-cols-2 tw:lg:grid-cols-4 tw:gap-4, each tile inside a
.tw-card-body.
<div class="tw-card"><div class="tw-card-body tw-stat-tile"><span class="tw-stat-tile-label">…</span><span class="tw-stat-tile-value">1,284</span></div></div>
Meaning, not direction: "unread messages up 40%" is a negative even
though the arrow points up. Choose -positive / -negative /
-neutral by whether the change is good news; the arrow icon carries the direction.
<span class="tw-stat-tile-delta tw-stat-tile-delta-negative"><i class="fa-solid fa-arrow-up"></i> 40% this week</span>
Compact: add .tw-stat-tile-sm to the tile for dense sidebars and
drawers — the value drops one size, everything else holds.
<div class="tw-stat-tile tw-stat-tile-sm">…</div>