Leather Grain & Stitching
Four leathers with pebbled grain and a dashed saddle stitch, plus a grain size slider.
AI prompt
Close-up product photograph of a full-grain tan leather panel with fine pebbled texture and a neat line of cream saddle stitching along a rounded rectangle inset from the edge, soft side light that picks out the grain, gentle vignette, shallow depth of field, rich and tactile. Variants: black, deep oxblood and navy leather with matching thread. Negative: plastic look, cartoon dots, uneven stitching, text, scratches, stains. Reduced motion: static image.About this pattern
Definition
Leather reads as leather from two cues: an irregular pebbled grain that catches light in tiny dots, and a neat line of stitching sitting just inside the edge. Both can be drawn with plain gradients and a dashed border.
When to use it
- Use two offset dot layers, one dark and one light, so the grain looks lit from one side.
- The stitch is a dashed line in a lighter thread colour, inset from the edge and slightly rounded.
- Name the leather in prompts: full-grain, pebbled, saddle-stitched, with the colour.
What the controls do
- Four colours and a Grain size slider.
Motion & timing
- Both controls update the texture instantly; nothing animates.
- Reduced motion: nothing to change.
Tips & variations
- Keep the grain below about 12px; above that it looks like polka dots.
- Keep the stitch inset constant on every breakpoint.
Code of this live preview
<div class="bx"><div class="pl" id="pl"></div><div class="pre" id="pre" role="group" aria-label="Leather"><button data-p="0" aria-pressed="true">Tan</button><button data-p="1" aria-pressed="false">Black</button><button data-p="2" aria-pressed="false">Oxblood</button><button data-p="3" aria-pressed="false">Navy</button></div><label class="rw">Grain size <b id="gv">8px</b><input id="gr" type="range" min="4" max="14" value="8"></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}
.pl{height:132px;border-radius:14px;position:relative;box-shadow:0 8px 16px rgba(0,0,0,.22),inset 0 0 26px rgba(0,0,0,.28);background-color:var(--b);background-image:radial-gradient(circle at 25% 25%,rgba(0,0,0,.24) 0 1px,transparent 2.2px),radial-gradient(circle at 70% 65%,rgba(255,255,255,.14) 0 1px,transparent 2.2px);background-size:var(--s) var(--s),calc(var(--s)*1.35) calc(var(--s)*1.35)}
.pl::before{content:"";position:absolute;inset:11px;border:2px dashed var(--t);border-radius:8px;opacity:.85}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const Lc=[['#a9693a','#f0d9ae'],['#26241f','#b9a98a'],['#6e1f26','#e3c39a'],['#1f2c4a','#d8d2c0']],pl=document.getElementById('pl'),gr=document.getElementById('gr'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){pl.style.setProperty('--b',Lc[p][0]);pl.style.setProperty('--t',Lc[p][1]);pl.style.setProperty('--s',gr.value+'px');document.getElementById('gv').textContent=gr.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();}));gr.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>Leather Grain & Stitching — 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}
.pl{height:132px;border-radius:14px;position:relative;box-shadow:0 8px 16px rgba(0,0,0,.22),inset 0 0 26px rgba(0,0,0,.28);background-color:var(--b);background-image:radial-gradient(circle at 25% 25%,rgba(0,0,0,.24) 0 1px,transparent 2.2px),radial-gradient(circle at 70% 65%,rgba(255,255,255,.14) 0 1px,transparent 2.2px);background-size:var(--s) var(--s),calc(var(--s)*1.35) calc(var(--s)*1.35)}
.pl::before{content:"";position:absolute;inset:11px;border:2px dashed var(--t);border-radius:8px;opacity:.85}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pl" id="pl"></div><div class="pre" id="pre" role="group" aria-label="Leather"><button data-p="0" aria-pressed="true">Tan</button><button data-p="1" aria-pressed="false">Black</button><button data-p="2" aria-pressed="false">Oxblood</button><button data-p="3" aria-pressed="false">Navy</button></div><label class="rw">Grain size <b id="gv">8px</b><input id="gr" type="range" min="4" max="14" value="8"></label></div>
</div>
<script>
const Lc=[['#a9693a','#f0d9ae'],['#26241f','#b9a98a'],['#6e1f26','#e3c39a'],['#1f2c4a','#d8d2c0']],pl=document.getElementById('pl'),gr=document.getElementById('gr'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){pl.style.setProperty('--b',Lc[p][0]);pl.style.setProperty('--t',Lc[p][1]);pl.style.setProperty('--s',gr.value+'px');document.getElementById('gv').textContent=gr.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();}));gr.addEventListener('input',up);up();
</script>
</body></html>