Ink Stamp Impression
A rubber stamp mark with uneven ink from an SVG filter, plus ink colour, pressure and a stamp-down press.
AI prompt
Close-up photograph of a red rubber stamp impression reading APPROVED in bold uppercase letters inside a double border, slightly rotated, ink uneven with worn patches and tiny speckles where the ink did not take, a faint ink halo around the edges, on cream recycled paper with visible fibres. Variants: blue ink PAID and green ink RECEIVED. Negative: perfect digital edges, 3D, shadows, extra words, watermark. Reduced motion: still image.About this pattern
Definition
A rubber stamp never prints perfectly: ink is thin in places, edges are rough and the mark sits slightly crooked. An SVG filter that cuts noisy holes from a solid shape reproduces this. It makes status labels like Approved or Paid feel physical rather than digital.
When to use it
- Draw the stamp as a bordered rounded rectangle with bold uppercase text, rotated a few degrees.
- feTurbulence builds noise, feColorMatrix turns it into a threshold mask, and feComposite uses it to remove ink.
- A higher pressure value means fewer holes.
- Ink colours: red, blue and green are traditional; use multiply blending so paper shows through.
What the controls do
- Ink buttons, a Pressure slider and a Stamp button.
Motion & timing
- The stamp presses down in 250ms.
- Reduced motion: the mark appears with no motion.
Tips & variations
- Keep the text readable even at low pressure.
- For real status, also include text in the page; the stamp is decoration.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Ink"><button data-p="0" aria-pressed="true">Red</button><button data-p="1" aria-pressed="false">Blue</button><button data-p="2" aria-pressed="false">Green</button></div><svg width="0" height="0" aria-hidden="true" focusable="false"><defs><filter id="ink" x="-5%" y="-5%" width="110%" height="110%"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="4" result="n"/><feColorMatrix in="n" type="matrix" id="cm" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 5" result="m"/><feComposite in="SourceGraphic" in2="m" operator="in"/></filter></defs></svg><div class="pp"><div class="stp" id="stp"><svg viewBox="0 0 220 90" role="img" aria-label="APPROVED stamp"><g filter="url(#ink)" fill="none" stroke="currentColor"><rect x="6" y="6" width="208" height="78" rx="8" stroke-width="5"/><rect x="14" y="14" width="192" height="62" rx="5" stroke-width="1.5"/><text x="110" y="58" text-anchor="middle" font-family="system-ui,Arial Black,sans-serif" font-weight="900" font-size="34" letter-spacing="3" fill="currentColor" stroke="none">APPROVED</text></g></svg></div></div><div class="two"><label class="rw">Pressure <b id="pv">70%</b><input id="ps" type="range" min="35" max="100" value="70"></label><button class="mini" id="go" type="button">Stamp</button></div></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pp{height:120px;border-radius:12px;background:#f5efe2;background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.025) 0 1px,transparent 1px 3px);display:grid;place-items:center;overflow:hidden}.stp{width:200px;transform:rotate(-7deg);mix-blend-mode:multiply;color:var(--ink,#c62828)}.stp svg{width:100%;display:block}.stp.dn{animation:dn .25s ease-out}@keyframes dn{0%{transform:rotate(-7deg) scale(1.35);opacity:.3}100%{transform:rotate(-7deg) scale(1);opacity:1}}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini{height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;cursor:pointer}.mini:disabled{opacity:.4;cursor:default}@media (prefers-reduced-motion:reduce){.stp.dn{animation:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const stp=document.getElementById('stp'),ps=document.getElementById('ps'),cm=document.getElementById('cm'),INK=['#c62828','#1f4fb4','#1f7a45'],bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){stp.style.setProperty('--ink',INK[p]);const v=+ps.value,b=2+v/12;cm.setAttribute('values','0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 '+(b.toFixed(2)));document.getElementById('pv').textContent=v+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
function hit(){stp.classList.remove('dn');void stp.offsetWidth;stp.classList.add('dn');}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));ps.addEventListener('input',up);document.getElementById('go').addEventListener('click',hit);up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Ink Stamp Impression — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pp{height:120px;border-radius:12px;background:#f5efe2;background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.025) 0 1px,transparent 1px 3px);display:grid;place-items:center;overflow:hidden}.stp{width:200px;transform:rotate(-7deg);mix-blend-mode:multiply;color:var(--ink,#c62828)}.stp svg{width:100%;display:block}.stp.dn{animation:dn .25s ease-out}@keyframes dn{0%{transform:rotate(-7deg) scale(1.35);opacity:.3}100%{transform:rotate(-7deg) scale(1);opacity:1}}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini{height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;cursor:pointer}.mini:disabled{opacity:.4;cursor:default}@media (prefers-reduced-motion:reduce){.stp.dn{animation:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Ink"><button data-p="0" aria-pressed="true">Red</button><button data-p="1" aria-pressed="false">Blue</button><button data-p="2" aria-pressed="false">Green</button></div><svg width="0" height="0" aria-hidden="true" focusable="false"><defs><filter id="ink" x="-5%" y="-5%" width="110%" height="110%"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="4" result="n"/><feColorMatrix in="n" type="matrix" id="cm" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 5" result="m"/><feComposite in="SourceGraphic" in2="m" operator="in"/></filter></defs></svg><div class="pp"><div class="stp" id="stp"><svg viewBox="0 0 220 90" role="img" aria-label="APPROVED stamp"><g filter="url(#ink)" fill="none" stroke="currentColor"><rect x="6" y="6" width="208" height="78" rx="8" stroke-width="5"/><rect x="14" y="14" width="192" height="62" rx="5" stroke-width="1.5"/><text x="110" y="58" text-anchor="middle" font-family="system-ui,Arial Black,sans-serif" font-weight="900" font-size="34" letter-spacing="3" fill="currentColor" stroke="none">APPROVED</text></g></svg></div></div><div class="two"><label class="rw">Pressure <b id="pv">70%</b><input id="ps" type="range" min="35" max="100" value="70"></label><button class="mini" id="go" type="button">Stamp</button></div></div>
</div>
<script>
const stp=document.getElementById('stp'),ps=document.getElementById('ps'),cm=document.getElementById('cm'),INK=['#c62828','#1f4fb4','#1f7a45'],bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){stp.style.setProperty('--ink',INK[p]);const v=+ps.value,b=2+v/12;cm.setAttribute('values','0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 '+(b.toFixed(2)));document.getElementById('pv').textContent=v+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
function hit(){stp.classList.remove('dn');void stp.offsetWidth;stp.classList.add('dn');}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));ps.addEventListener('input',up);document.getElementById('go').addEventListener('click',hit);up();
</script>
</body></html>