# Pílula de variação (C 060)

Categoria: Cards  
Tags: stat, kpi, metric, delta, light, dashboard  
Página: https://designforai.dev/pt/snippet/card-060

## Prompt

Construa um card KPI de 240px: branco, borda de 1px #e5e7eb (fica menta #a7f3d0 no hover), raio de 14px, padding 20px 22px. Linha de cabeçalho: label 13px #6b7280 "Monthly revenue" e um bloco de ícone arredondado de 26px em #ecfdf5 com um "$" verde. Um número tabular 32px bold "48,210" com letter-spacing apertado, depois uma linha 12px com uma pílula verde de variação "+12.4%" (fundo #d1fae5, texto #047857) seguida de "vs last month" em cinza.

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