Skip to content

Delta vs Last Week

A copy-paste kpi & dashboard widgets component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

KPI & Dashboard WidgetsHTMLCSSany framework
This week9,410
Last week8,235

Copy into your project

HTML
<div class="nuda-kpi-delta">
  <div class="nuda-kpi-delta__row">
    <div class="nuda-kpi-delta__col">
      <span class="nuda-kpi-delta__period">This week</span>
      <span class="nuda-kpi-delta__num">9,410</span>
    </div>
    <div class="nuda-kpi-delta__divider"></div>
    <div class="nuda-kpi-delta__col">
      <span class="nuda-kpi-delta__period">Last week</span>
      <span class="nuda-kpi-delta__num nuda-kpi-delta__num--muted">8,235</span>
    </div>
  </div>
  <div class="nuda-kpi-delta__footer">
    <span class="nuda-kpi-delta__arrow">↑</span>
    <span class="nuda-kpi-delta__pct">+14.3%</span>
    <span class="nuda-kpi-delta__label">Signups</span>
  </div>
</div>
CSS
.nuda-kpi-delta {
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-width: 220px;
}

.nuda-kpi-delta__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nuda-kpi-delta__col {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
}

.nuda-kpi-delta__divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.nuda-kpi-delta__period {
  color: #555;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.nuda-kpi-delta__num {
  color: #fafafa;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.nuda-kpi-delta__num--muted {
  color: #444;
}

.nuda-kpi-delta__footer {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.nuda-kpi-delta__arrow {
  color: #e4ff54;
  font-size: 1rem;
  font-weight: 700;
}

.nuda-kpi-delta__pct {
  color: #e4ff54;
  font-size: .85rem;
  font-weight: 700;
}

.nuda-kpi-delta__label {
  color: #555;
  font-size: .75rem;
  margin-left: auto;
}

How to use Delta vs Last Week

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More kpi & dashboard widgets components

← Browse all NudaUI components