Letterpress & Emboss
Pressed-in, raised and inked text on card, with a depth slider that changes the shadow offset.
AI prompt
Close-up photograph of a premium cream cotton business card with the word STUDIO deeply letterpress-printed in dark navy ink, the letters pressed into the paper with a soft shadow along the lower edge of each stroke and a subtle halo of squashed ink, raking light from the top left, paper fibre texture visible, shallow depth of field. Variants: blind deboss with no ink, raised emboss in the same colour as the paper. Negative: flat digital print, glossy, text errors, bevel and emboss filter look, drop shadow below the card. Reduced motion: static image.About this pattern
Definition
Letterpress presses type into soft paper so the letters sit below the surface. Emboss does the opposite and pushes them up. Two opposite-coloured text shadows imitate both: a light edge on the lit side and a dark edge on the other.
When to use it
- Deboss: letters slightly darker than the paper, light shadow underneath, dark shadow above.
- Emboss: letters the same colour as the paper, light edge on the lit side, dark on the far side.
- Ink squash: a tiny blurry halo around dark text, as ink spreads at the edge of the press.
What the controls do
- Three mode buttons and a Depth slider.
Motion & timing
- Mode and depth change the text shadow instantly.
- Reduced motion: nothing to change.
Tips & variations
- Keep depth small. One or two pixels reads as pressed paper; more looks like a cheap bevel.
- Keep the lit side consistent across all type on the page.
Code of this live preview
<div class="bx"><div class="cd" id="cd" data-m="deboss"><span id="tx">Quiet type</span></div><div class="pre" id="pre" role="group" aria-label="Mode"><button data-p="0" aria-pressed="true">Deboss</button><button data-p="1" aria-pressed="false">Emboss</button><button data-p="2" aria-pressed="false">Ink squash</button></div><label class="rw">Depth <b id="dv">2px</b><input id="dp" type="range" min="1" max="4" value="2"></label></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}
.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}
.cd{height:132px;border-radius:8px;display:grid;place-items:center;background:#e9e4d8;box-shadow:0 5px 14px rgba(0,0,0,.14);--d:2}
.cd span{font-size:38px;font-weight:800;letter-spacing:-.02em}
.cd[data-m=deboss] span{color:#bdb6a6;text-shadow:0 calc(var(--d)*1px) 0 rgba(255,255,255,.85),0 calc(var(--d)*-1px) 0 rgba(0,0,0,.2)}
.cd[data-m=emboss] span{color:#e9e4d8;text-shadow:calc(var(--d)*-1px) calc(var(--d)*-1px) 0 rgba(255,255,255,.95),calc(var(--d)*1px) calc(var(--d)*1px) 0 rgba(0,0,0,.22)}
.cd[data-m=ink] span{color:#25282f;text-shadow:0 0 calc(var(--d)*.7px) rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const K=['deboss','emboss','ink'],cd=document.getElementById('cd'),dp=document.getElementById('dp'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){cd.dataset.m=K[p];cd.style.setProperty('--d',dp.value);document.getElementById('dv').textContent=dp.value+'px';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));dp.addEventListener('input',up);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>Letterpress & Emboss — 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}}
.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}
.cd{height:132px;border-radius:8px;display:grid;place-items:center;background:#e9e4d8;box-shadow:0 5px 14px rgba(0,0,0,.14);--d:2}
.cd span{font-size:38px;font-weight:800;letter-spacing:-.02em}
.cd[data-m=deboss] span{color:#bdb6a6;text-shadow:0 calc(var(--d)*1px) 0 rgba(255,255,255,.85),0 calc(var(--d)*-1px) 0 rgba(0,0,0,.2)}
.cd[data-m=emboss] span{color:#e9e4d8;text-shadow:calc(var(--d)*-1px) calc(var(--d)*-1px) 0 rgba(255,255,255,.95),calc(var(--d)*1px) calc(var(--d)*1px) 0 rgba(0,0,0,.22)}
.cd[data-m=ink] span{color:#25282f;text-shadow:0 0 calc(var(--d)*.7px) rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="cd" id="cd" data-m="deboss"><span id="tx">Quiet type</span></div><div class="pre" id="pre" role="group" aria-label="Mode"><button data-p="0" aria-pressed="true">Deboss</button><button data-p="1" aria-pressed="false">Emboss</button><button data-p="2" aria-pressed="false">Ink squash</button></div><label class="rw">Depth <b id="dv">2px</b><input id="dp" type="range" min="1" max="4" value="2"></label></div>
</div>
<script>
const K=['deboss','emboss','ink'],cd=document.getElementById('cd'),dp=document.getElementById('dp'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){cd.dataset.m=K[p];cd.style.setProperty('--d',dp.value);document.getElementById('dv').textContent=dp.value+'px';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));dp.addEventListener('input',up);up();
</script>
</body></html>