Goal Progress Bar
A copy-paste kpi & dashboard widgets component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
KPI & Dashboard WidgetsHTMLCSSany framework
Annual ARR Goal61%
$610KTarget: $1M
Copy into your project
HTML
<div class="nuda-kpi-goal">
<div class="nuda-kpi-goal__header">
<span class="nuda-kpi-goal__title">Annual ARR Goal</span>
<span class="nuda-kpi-goal__pct">61%</span>
</div>
<div class="nuda-kpi-goal__track">
<div class="nuda-kpi-goal__fill"></div>
<div class="nuda-kpi-goal__milestone" style="left:75%"></div>
</div>
<div class="nuda-kpi-goal__nums">
<span class="nuda-kpi-goal__current">$610K</span>
<span class="nuda-kpi-goal__target">Target: $1M</span>
</div>
</div>CSS
.nuda-kpi-goal {
background: #1a1a1a;
border: 1px solid rgba(255,255,255,.1);
border-radius: 14px;
padding: 1.2rem 1.4rem;
display: flex;
flex-direction: column;
gap: .65rem;
min-width: 220px;
}
.nuda-kpi-goal__header {
display: flex;
justify-content: space-between;
align-items: center;
}
.nuda-kpi-goal__title {
color: #cfcfcf;
font-size: .82rem;
font-weight: 600;
}
.nuda-kpi-goal__pct {
color: #e4ff54;
font-size: .9rem;
font-weight: 700;
}
.nuda-kpi-goal__track {
height: 8px;
background: rgba(255,255,255,.08);
border-radius: 4px;
position: relative;
overflow: visible;
}
.nuda-kpi-goal__fill {
height: 100%;
width: 61%;
background: linear-gradient(90deg,#e4ff54,#b8d400);
border-radius: 4px;
animation: _nuda-kpiGoalFill .8s ease-out;
}
.nuda-kpi-goal__milestone {
position: absolute;
top: -3px;
width: 2px;
height: 14px;
background: rgba(255,255,255,.35);
border-radius: 1px;
transform: translateX(-50%);
}
.nuda-kpi-goal__nums {
display: flex;
justify-content: space-between;
}
.nuda-kpi-goal__current {
color: #fafafa;
font-size: .82rem;
font-weight: 700;
}
.nuda-kpi-goal__target {
color: #555;
font-size: .75rem;
}
@keyframes _nuda-kpiGoalFill {
from {
width: 0;
}
to {
width: 61%;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-kpi-goal__fill {
animation: none;
}
}
How to use Goal Progress Bar
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.