Empty Inbox
A copy-paste empty states component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Empty StatesHTMLCSSany framework
Inbox is empty
Copy into your project
HTML
<!-- Empty Inbox -->
<div class="nuda-empty-inbox" role="status" aria-label="Inbox is empty">
<div class="nuda-empty-inbox__scene">
<svg class="nuda-empty-inbox__plane" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M22 2 L11 13" />
<path d="M22 2 L15 22 L11 13 L2 9 Z" />
</svg>
<svg class="nuda-empty-inbox__tray" viewBox="0 0 64 48"
fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M6 28 L6 38 Q6 42 10 42 L54 42 Q58 42 58 38 L58 28" />
<path d="M6 28 L18 28 L22 34 L42 34 L46 28 L58 28" />
<path d="M14 12 L14 22" opacity="0.4" />
<path d="M32 8 L32 22" opacity="0.4" />
<path d="M50 12 L50 22" opacity="0.4" />
</svg>
</div>
<p class="nuda-empty-inbox__text">Inbox is empty</p>
</div>CSS
/* Empty Inbox
Inbox tray with a paper plane gliding through.
Customize: --empty-inbox-color, --empty-inbox-text, --empty-inbox-size */
.nuda-empty-inbox {
--empty-inbox-color: #e4ff54;
--empty-inbox-text: rgba(255, 255, 255, 0.55);
--empty-inbox-size: 90px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 12px;
color: var(--empty-inbox-color);
}
.nuda-empty-inbox__scene {
position: relative;
width: var(--empty-inbox-size);
height: calc(var(--empty-inbox-size) * 0.7);
}
.nuda-empty-inbox__tray {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 75%;
color: currentColor;
filter: drop-shadow(0 0 6px rgba(228, 255, 84, 0.12));
}
.nuda-empty-inbox__plane {
position: absolute;
left: 50%;
top: 0;
width: 20%;
height: 28%;
color: currentColor;
transform: translate(-50%, 0);
animation: nuda-empty-inbox-fly 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.nuda-empty-inbox__text {
font: 500 12px ui-sans-serif, system-ui, sans-serif;
color: var(--empty-inbox-text);
letter-spacing: 0.02em;
margin: 0;
}
@keyframes nuda-empty-inbox-fly {
0% { transform: translate(-150%, -4px) rotate(-10deg); opacity: 0; }
15% { opacity: 1; }
50% { transform: translate(-50%, 12px) rotate(0deg); opacity: 1; }
75% { opacity: 1; }
100% { transform: translate(60%, 28px) rotate(20deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-empty-inbox__plane { animation: none; }
}How to use Empty Inbox
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.