Skip to content

Table 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-sktbl" aria-hidden="true">
  <div class="nuda-sktbl__row">
    <span style="width:30%"></span>
    <span style="width:22%"></span>
    <span style="width:18%"></span>
    <span style="width:15%"></span>
  </div>
  <!-- repeat rows; first row reads as the header -->
</div>
CSS
/* Table Skeleton
   Rows and columns placeholder; rows pulse in staggered opacity.
   The first row is tinted to read as a header.
   Customize: --sktbl-block, --sktbl-head */

.nuda-sktbl {
  --sktbl-block: rgba(255, 255, 255, 0.07);
  --sktbl-head: rgba(228, 255, 84, 0.18);
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
}

.nuda-sktbl__row {
  display: flex;
  gap: 12px;
  align-items: center;
  animation: nuda-sktbl-pulse 1.6s ease-in-out infinite;
}

.nuda-sktbl__row:first-child span { background: var(--sktbl-head); }
.nuda-sktbl__row span { height: 10px; border-radius: 3px; background: var(--sktbl-block); }

@keyframes nuda-sktbl-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-sktbl__row { animation: none; opacity: 0.6; }
}

How to use Table 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.

More skeletons components

← Browse all NudaUI components