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-skcard">
<span class="nuda-skcard__img"></span>
<span class="nuda-skcard__line" style="width:70%"></span>
<span class="nuda-skcard__line" style="width:50%;height:8px"></span>
</div>CSS
.nuda-skcard {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 10px;
width: 100%;
max-width: 180px;
}
.nuda-skcard__img {
height: 90px;
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;
}
.nuda-skcard__line {
height: 10px;
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-skcard__line:nth-child(3) {
animation-delay: .2s;
}
@keyframes _skShim {
to {
background-position: -200% 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-skcard__img,.nuda-skcard__line {
animation: none;
}
}
How to use 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.