# Píldora de variación (C 060)

Categoría: Tarjetas  
Etiquetas: stat, kpi, metric, delta, light, dashboard  
Página: https://designforai.dev/es/snippet/card-060

## Prompt

Construye una tarjeta KPI de 240px: blanca, borde 1px #e5e7eb (pasa a menta #a7f3d0 en hover), radio 14px, padding 20px 22px. Fila de cabecera: etiqueta 13px #6b7280 "Monthly revenue" y una baldosa de icono redondeada de 26px en #ecfdf5 con un "$" verde. Un número tabular 32px bold "48,210" con letter-spacing ajustado, luego una línea de 12px con una píldora de variación verde "+12.4%" (fondo #d1fae5, texto #047857) seguida de "vs last month" en gris.

## HTML

```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>
```

## CSS

```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
}
```
