No Matching Results
A copy-paste empty states component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Empty StatesHTMLCSSany framework
No matching results
Try adjusting or clearing your filters
Copy into your project
HTML
<!-- No Matching Results -->
<div class="nuda-es2-filtered" role="status" aria-label="No matching results">
<div class="nuda-es2-filtered__scene" aria-hidden="true">
<svg class="nuda-es2-filtered__funnel" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 10 L42 10 L28 26 L28 38 L20 42 L20 26 Z" />
</svg>
<span class="nuda-es2-filtered__badge">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round">
<path d="M6 6 L18 18" />
<path d="M18 6 L6 18" />
</svg>
</span>
</div>
<h3 class="nuda-es2-filtered__title">No matching results</h3>
<p class="nuda-es2-filtered__sub">Try adjusting or clearing your filters</p>
<button class="nuda-es2-filtered__cta" type="button">Clear filters</button>
</div>CSS
.nuda-es2-filtered {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 20px;
text-align: center;
width: 100%;
max-width: 240px;
color: #8f8f98;
}
.nuda-es2-filtered__scene {
position: relative;
width: 64px;
height: 56px;
animation: nuda-es2-filtered-shake 3.6s ease-in-out infinite;
}
.nuda-es2-filtered__funnel {
width: 100%;
height: 100%;
color: currentColor;
}
.nuda-es2-filtered__badge {
position: absolute;
right: -4px;
top: -4px;
width: 20px;
height: 20px;
border-radius: 50%;
background: #1a1a1a;
border: 1px solid rgba(255,255,255,.14);
color: #ff6b6b;
display: flex;
align-items: center;
justify-content: center;
animation: nuda-es2-filtered-pop 3.6s ease-in-out infinite;
}
.nuda-es2-filtered__badge svg {
width: 11px;
height: 11px;
}
.nuda-es2-filtered__title {
font: 600 13px ui-sans-serif,system-ui;
color: #fafafa;
margin: 0;
}
.nuda-es2-filtered__sub {
font: 400 11px ui-sans-serif,system-ui;
color: #a0a0a8;
margin: 0;
}
.nuda-es2-filtered__cta {
margin-top: 6px;
padding: 8px 16px;
background: transparent;
color: #e4ff54;
border: 1px solid rgba(228,255,84,.4);
border-radius: 8px;
font: 600 11px ui-sans-serif,system-ui;
cursor: pointer;
transition: background-color .2s ease,transform .15s ease;
min-height: 32px;
}
.nuda-es2-filtered__cta:hover {
background: rgba(228,255,84,.1);
transform: translateY(-1px);
}
.nuda-es2-filtered__cta:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
@keyframes nuda-es2-filtered-shake {
0%,100% {
transform: rotate(0deg);
}
20% {
transform: rotate(-6deg);
}
40% {
transform: rotate(5deg);
}
60% {
transform: rotate(-3deg);
}
80% {
transform: rotate(2deg);
}
}
@keyframes nuda-es2-filtered-pop {
0%,100% {
transform: scale(1);
}
50% {
transform: scale(1.15);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-es2-filtered__scene,.nuda-es2-filtered__badge {
animation: none !important;
}
}
How to use No Matching Results
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.