Duotone Grain Poster
A copy-paste noise & grain component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Noise & GrainHTMLCSSany framework
ISSUE 04
Analog Series
Copy into your project
HTML
<!-- Duotone Grain Poster — lime/black duotone with drifting grain -->
<div class="nuda-ng2-duotone-poster">
<div class="nuda-ng2-duotone-poster__grain" aria-hidden="true"></div>
<h4 class="nuda-ng2-duotone-poster__title">ISSUE 04</h4>
<p class="nuda-ng2-duotone-poster__sub">Analog Series</p>
</div>CSS
.nuda-ng2-duotone-poster {
position: relative;
width: 100%;
max-width: 220px;
height: 150px;
border-radius: 10px;
overflow: hidden;
background: linear-gradient(200deg,#e4ff54 0%,#1a1c06 55%,#09090b 100%);
padding: 16px;
display: flex;
flex-direction: column;
justify-content: flex-end;
isolation: isolate;
font-family: ui-sans-serif,system-ui,sans-serif;
}
.nuda-ng2-duotone-poster__grain {
position: absolute;
inset: -40%;
width: 180%;
height: 180%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
background-size: 150px 150px;
mix-blend-mode: multiply;
opacity: .55;
pointer-events: none;
animation: _nuda-ng2duotoneposter-drift 14s ease-in-out infinite alternate;
}
.nuda-ng2-duotone-poster__title {
position: relative;
z-index: 1;
margin: 0;
font-size: 22px;
font-weight: 800;
letter-spacing: .02em;
color: #09090b;
}
.nuda-ng2-duotone-poster__sub {
position: relative;
z-index: 1;
margin: 4px 0 0;
font-size: 11px;
letter-spacing: .16em;
text-transform: uppercase;
color: rgba(9,9,11,.75);
}
@keyframes _nuda-ng2duotoneposter-drift {
0% {
transform: translate3d(0,0,0);
}
100% {
transform: translate3d(-16px,-10px,0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ng2-duotone-poster__grain {
animation: none;
}
}
How to use Duotone Grain Poster
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.