# Stat Card

> A clean dashboard metric card with a big number and a trend badge.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: dashboard, kpi, metric, analytics, number
- Live preview: https://copy-css.com/snippets/stat-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="stat-card">
  <p>Monthly visitors</p>
  <strong>48,210</strong>
  <span class="stat-up">▲ 12.4%</span>
</div>
```

## CSS

```css
.stat-card {
  width: 200px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  font-family: system-ui, sans-serif;
}

.stat-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.stat-card strong {
  display: block;
  margin: 6px 0 10px;
  color: #111;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-up {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}
```

## Notes

- This CSS Stat Card is 34 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
