Neon Grid
A copy-paste neon & glow component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Neon & GlowHTMLCSSany framework
Copy into your project
HTML
<!-- Neon Grid — retro glowing grid floor -->
<div class="nuda-neon-grid" aria-hidden="true">
<div class="nuda-neon-grid__floor"></div>
</div>CSS
/* ── Neon Grid ───────────────────────────────────────────────
A retro "outrun" floor: a perspective-tilted grid whose lines
scroll toward the viewer by shifting background-position only.
Customize:
--neon-grid-color : grid line hue
--neon-grid-speed : scroll cycle
──────────────────────────────────────────────────────────── */
.nuda-neon-grid {
--neon-grid-color: #e4ff54;
--neon-grid-speed: 1.6s;
position: relative;
width: 240px;
height: 120px;
background: #09090b;
border-radius: 12px;
overflow: hidden;
perspective: 160px;
}
/* Fade the far edge into the background for depth. */
.nuda-neon-grid::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, #09090b 0%, rgba(9, 9, 11, 0) 45%);
z-index: 1;
pointer-events: none;
}
.nuda-neon-grid__floor {
position: absolute;
left: -50%;
right: -50%;
bottom: -20%;
height: 160%;
background-image:
linear-gradient(rgba(228, 255, 84, 0.5) 1px, transparent 1px),
linear-gradient(90deg, rgba(228, 255, 84, 0.5) 1px, transparent 1px);
background-size: 28px 28px;
transform: rotateX(72deg);
transform-origin: bottom center;
filter: drop-shadow(0 0 4px rgba(228, 255, 84, 0.5));
animation: nuda-neon-grid-scroll var(--neon-grid-speed) linear infinite;
will-change: background-position;
}
@keyframes nuda-neon-grid-scroll {
0% { background-position: 0 0; }
100% { background-position: 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-neon-grid__floor { animation: none; }
}How to use Neon Grid
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.