Skip to content

No Messages

A copy-paste empty states component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Empty StatesHTMLCSSany framework
No messages yet
Start a conversation

Copy into your project

HTML
<div class="nuda-empmsg">
  <div class="nuda-empmsg__bubbles">
    <span></span>
    <span></span>
    <span></span>
  </div>
  <div class="nuda-empmsg__title">No messages yet</div>
  <div class="nuda-empmsg__sub">Start a conversation</div>
</div>
CSS
.nuda-empmsg {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 220px;
}

.nuda-empmsg__bubbles {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.nuda-empmsg__bubbles span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  animation: _empMsgFloat 2.4s ease-in-out infinite;
}

.nuda-empmsg__bubbles span:nth-child(2) {
  width: 32px;
  height: 32px;
  animation-delay: .3s;
  background: rgba(228,255,84,.05);
  border-color: rgba(228,255,84,.2);
}

.nuda-empmsg__bubbles span:nth-child(3) {
  animation-delay: .6s;
}

.nuda-empmsg__title {
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
}

.nuda-empmsg__sub {
  color: #a0a0a8;
  font-size: 11px;
  margin-top: 2px;
}

@keyframes _empMsgFloat {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-empmsg__bubbles span {
    animation: none;
  }
}

How to use No Messages

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 empty states components

← Browse all NudaUI components