Stat Card Skeleton
A copy-paste skeletons component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
SkeletonsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-skstat">
<span class="nuda-skstat__label"></span>
<span class="nuda-skstat__num"></span>
<span class="nuda-skstat__chart"></span>
</div>CSS
.nuda-skstat {
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 10px;
width: 100%;
max-width: 160px;
}
.nuda-skstat__label {
width: 50%;
height: 9px;
border-radius: 3px;
background: linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.1),rgba(255,255,255,.04));
background-size: 200% 100%;
animation: _skShim 1.6s linear infinite;
}
.nuda-skstat__num {
width: 70%;
height: 22px;
border-radius: 4px;
background: linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.1),rgba(255,255,255,.04));
background-size: 200% 100%;
animation: _skShim 1.6s linear infinite;
animation-delay: .1s;
}
.nuda-skstat__chart {
width: 100%;
height: 32px;
border-radius: 6px;
background: linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.1),rgba(255,255,255,.04));
background-size: 200% 100%;
animation: _skShim 1.6s linear infinite;
animation-delay: .2s;
}
@keyframes _skShim {
to {
background-position: -200% 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-skstat > * {
animation: none;
}
}
How to use Stat Card Skeleton
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.