Chromatic Grain Speckle
A copy-paste noise & grain component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Noise & GrainHTMLCSSany framework
RGB
Copy into your project
HTML
<!-- Chromatic Grain Speckle — RGB-offset noise layers drifting apart -->
<div class="nuda-ng2-chromatic-speckle">
<div class="nuda-ng2-chromatic-speckle__r" aria-hidden="true"></div>
<div class="nuda-ng2-chromatic-speckle__b" aria-hidden="true"></div>
<span class="nuda-ng2-chromatic-speckle__label">RGB</span>
</div>CSS
.nuda-ng2-chromatic-speckle {
position: relative;
width: 100%;
max-width: 220px;
height: 130px;
border-radius: 12px;
overflow: hidden;
background: #09090b;
display: flex;
align-items: center;
justify-content: center;
isolation: isolate;
}
.nuda-ng2-chromatic-speckle__r {
position: absolute;
inset: -50%;
width: 200%;
height: 200%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
background-size: 130px 130px;
opacity: .28;
mix-blend-mode: screen;
filter: sepia(1) saturate(6) hue-rotate(-40deg);
pointer-events: none;
animation: _nuda-ng2chromspeckle-r .6s steps(5) infinite;
}
.nuda-ng2-chromatic-speckle__b {
position: absolute;
inset: -50%;
width: 200%;
height: 200%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
background-size: 130px 130px;
opacity: .24;
mix-blend-mode: screen;
filter: sepia(1) saturate(6) hue-rotate(150deg);
pointer-events: none;
animation: _nuda-ng2chromspeckle-b .6s steps(5) infinite reverse;
}
.nuda-ng2-chromatic-speckle__label {
position: relative;
z-index: 1;
font-family: ui-sans-serif,system-ui,sans-serif;
font-weight: 800;
font-size: 20px;
letter-spacing: .14em;
color: #fafafa;
}
@keyframes _nuda-ng2chromspeckle-r {
0% {
transform: translate3d(0,0,0);
}
25% {
transform: translate3d(-6px,3px,0);
}
50% {
transform: translate3d(5px,-5px,0);
}
75% {
transform: translate3d(-4px,-2px,0);
}
100% {
transform: translate3d(0,0,0);
}
}
@keyframes _nuda-ng2chromspeckle-b {
0% {
transform: translate3d(0,0,0);
}
25% {
transform: translate3d(6px,-3px,0);
}
50% {
transform: translate3d(-5px,5px,0);
}
75% {
transform: translate3d(4px,2px,0);
}
100% {
transform: translate3d(0,0,0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ng2-chromatic-speckle__r,.nuda-ng2-chromatic-speckle__b {
animation: none;
opacity: .16;
}
}
How to use Chromatic Grain Speckle
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.