Delta-Pille
Delta-Pille: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
+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
Baue eine 240px KPI-Card: weiß, 1px #e5e7eb Rahmen (wird beim Hover mint #a7f3d0), 14px Radius, Padding 20px 22px. Kopfzeile: 13px #6b7280 Label "Monthly revenue" und eine 26px abgerundete Icon-Kachel in #ecfdf5 mit grünem "$". Eine 32px fette Tabellenziffern-Zahl "48,210" mit enger Laufweite, dann eine 12px Zeile mit grüner Delta-Pille "+12.4%" (#d1fae5 Hintergrund, #047857 Text), gefolgt von "vs last month" in Grau.