Delta pill
Delta pill: a CSS card. Copy the rules, or the prompt that rebuilds it.
+12.4% vs last month
CSS
.card-060 {
width: 240px;
padding: 20px 22px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 14px;
font-family: system-ui,sans-serif;
color: #111827;
transition: border-color .15s
}
.card-060:hover {
border-color: #a7f3d0
}
.card-060 header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
color: #6b7280
}
.card-060 header i {
width: 26px;
height: 26px;
display: grid;
place-items: center;
border-radius: 8px;
background: #ecfdf5;
color: #059669;
font-style: normal;
font-weight: 700;
font-size: 13px
}
.card-060 strong {
display: block;
margin: 10px 0 6px;
font-size: 32px;
font-weight: 700;
letter-spacing: -.03em;
font-variant-numeric: tabular-nums
}
.card-060 p {
margin: 0;
font-size: 12px;
color: #6b7280
}
.card-060 em {
display: inline-block;
margin-right: 4px;
padding: 2px 7px;
border-radius: 999px;
background: #d1fae5;
color: #047857;
font-style: normal;
font-weight: 700
}
HTML
<article class="card-060">
<header><span>Monthly revenue</span><i>$</i></header>
<strong>48,210</strong>
<p><em>+12.4%</em> vs last month</p>
</article>Prompt
Build a 240px KPI card: white, 1px #e5e7eb border (turns mint #a7f3d0 on hover), 14px radius, padding 20px 22px. Header row: 13px #6b7280 label "Monthly revenue" and a 26px rounded icon tile in #ecfdf5 with a green "$". A 32px bold tabular number "48,210" with tight letter-spacing, then a 12px line with a green delta pill "+12.4%" (#d1fae5 background, #047857 text) followed by "vs last month" in gray.