Crash Boundary Fallback
A copy-paste error & 404 pages component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Error & 404 PagesHTMLCSSany framework
The app crashed
A component failed to render. You can reload or send us a report.
Copy into your project
HTML
<div class="nuda-ep2-crash-boundary">
<div class="nuda-ep2-crash-boundary__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="4" y="4" width="16" height="16" rx="2" />
<path d="M4 4l7 7" />
<path d="M20 20l-7-7" />
<path d="M4 20l6-6" />
<path d="M20 4l-6 6" />
</svg>
</div>
<p class="nuda-ep2-crash-boundary__title" role="alert">The app crashed</p>
<p class="nuda-ep2-crash-boundary__sub">A component failed to render. You can reload or send us a report.</p>
<div class="nuda-ep2-crash-boundary__actions">
<button class="nuda-ep2-crash-boundary__btn nuda-ep2-crash-boundary__btn--primary" type="button">Reload page</button>
<button class="nuda-ep2-crash-boundary__btn" type="button">Report issue</button>
</div>
</div>CSS
.nuda-ep2-crash-boundary {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 22px 20px;
background: #101010;
border: 1px solid rgba(255,255,255,.08);
border-radius: 16px;
width: 100%;
max-width: 260px;
text-align: center;
font-family: ui-sans-serif,system-ui;
}
.nuda-ep2-crash-boundary__icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
color: #ff6b6b;
background: rgba(255,107,107,.08);
border: 1px solid rgba(255,107,107,.2);
border-radius: 12px;
margin-bottom: 4px;
animation: _nuda-ep2crashboundary-glitch 3.2s ease-in-out infinite;
}
.nuda-ep2-crash-boundary__icon svg {
width: 24px;
height: 24px;
}
.nuda-ep2-crash-boundary__title {
margin: 0;
color: #fafafa;
font-size: 14px;
font-weight: 700;
}
.nuda-ep2-crash-boundary__sub {
margin: 0;
color: #8a8a8a;
font-size: 11px;
line-height: 1.5;
max-width: 210px;
}
.nuda-ep2-crash-boundary__actions {
display: flex;
gap: 8px;
margin-top: 6px;
}
.nuda-ep2-crash-boundary__btn {
min-height: 44px;
padding: 0 14px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,.12);
background: rgba(255,255,255,.04);
color: #cfcfcf;
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
transition: background .2s;
}
.nuda-ep2-crash-boundary__btn:hover {
background: rgba(255,255,255,.08);
}
.nuda-ep2-crash-boundary__btn:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
.nuda-ep2-crash-boundary__btn--primary {
background: rgba(228,255,84,.1);
border-color: rgba(228,255,84,.3);
color: #e4ff54;
}
.nuda-ep2-crash-boundary__btn--primary:hover {
background: rgba(228,255,84,.18);
}
@keyframes _nuda-ep2crashboundary-glitch {
0%,88%,100% {
transform: translate(0,0);
filter: none;
}
90% {
transform: translate(-1.5px,1px);
filter: hue-rotate(15deg);
}
92% {
transform: translate(1.5px,-1px);
filter: hue-rotate(-10deg);
}
94% {
transform: translate(0,0);
filter: none;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ep2-crash-boundary__icon {
animation: none;
}
}
How to use Crash Boundary Fallback
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.