Isometric Projection Builder
One block shown in isometric, front, top-down and perspective views, with a height slider.
AI prompt
Isometric illustration of a single rounded teal block on a pale cream background, orthographic 30 degree view with no perspective distortion, the top face light teal, left face mid teal, right face dark teal, crisp edges, a soft oval ground shadow, flat vector style with subtle shading, clean and minimal, plenty of empty space. Variants: front elevation, top-down plan, and a perspective view with a vanishing point. Negative: perspective distortion, outlines, textures, text, busy scene, photo realism. Reduced motion: static illustration.About this pattern
Definition
Isometric projection draws a 3D object with all three axes at equal angles and no vanishing point, so parallel edges stay parallel. It is the look of game maps, infographics and technical illustration. Front and top views flatten the same object to a plain rectangle.
When to use it
- Isometric: rotate about 35 degrees down and 45 degrees around, with no perspective.
- Shade the three visible faces with three tones: lightest on top, medium on the left, darkest on the right.
- Name the view in prompts: isometric 30 degree, orthographic, no perspective.
What the controls do
- Four view buttons and a Height slider.
Motion & timing
- Views change instantly so the angles can be compared exactly.
- Reduced motion: nothing animates.
Tips & variations
- Keep the shading tones in the same family so the block still reads as one colour.
- Do not mix isometric and perspective objects in one scene.
Code of this live preview
<div class="bx"><div class="sc"><div class="cb" id="cb"><i class="t"></i><i class="f"></i><i class="r"></i><i class="l"></i></div></div><div class="pre" id="pre" role="group" aria-label="View"><button data-p="0" aria-pressed="true">Isometric</button><button data-p="1" aria-pressed="false">Front</button><button data-p="2" aria-pressed="false">Top</button><button data-p="3" aria-pressed="false">Perspective</button></div><label class="rw">Height <b id="hv">70</b><input id="ht" type="range" min="30" max="110" value="70"></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}
.sc{height:150px;border-radius:12px;background:#f1efe9;display:grid;place-items:center;overflow:hidden;perspective:var(--ps,none)}
.cb{position:relative;width:0;height:0;transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry))}
.cb i{position:absolute;display:block;backface-visibility:hidden;border:1px solid rgba(0,0,0,.08)}
.t{width:90px;height:90px;left:-45px;top:-45px;background:#7fd6d0;transform:translateY(calc(var(--h)*-.5px)) rotateX(90deg)}
.f{width:90px;height:calc(var(--h)*1px);left:-45px;top:calc(var(--h)*-.5px);background:#3fa9a2;transform:translateZ(45px)}
.r{width:90px;height:calc(var(--h)*1px);left:-45px;top:calc(var(--h)*-.5px);background:#237a76;transform:rotateY(90deg) translateZ(45px)}
.l{width:90px;height:calc(var(--h)*1px);left:-45px;top:calc(var(--h)*-.5px);background:#2d8e89;transform:rotateY(-90deg) translateZ(45px)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const V=[[-35.264,-45,'none'],[0,0,'none'],[-90,0,'none'],[-24,-35,'420px']],cb=document.getElementById('cb'),ht=document.getElementById('ht'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){cb.style.setProperty('--rx',V[p][0]+'deg');cb.style.setProperty('--ry',V[p][1]+'deg');cb.parentNode.style.setProperty('--ps',V[p][2]);cb.style.setProperty('--h',ht.value);document.getElementById('hv').textContent=ht.value;bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));ht.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>Isometric Projection Builder — 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}
.sc{height:150px;border-radius:12px;background:#f1efe9;display:grid;place-items:center;overflow:hidden;perspective:var(--ps,none)}
.cb{position:relative;width:0;height:0;transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry))}
.cb i{position:absolute;display:block;backface-visibility:hidden;border:1px solid rgba(0,0,0,.08)}
.t{width:90px;height:90px;left:-45px;top:-45px;background:#7fd6d0;transform:translateY(calc(var(--h)*-.5px)) rotateX(90deg)}
.f{width:90px;height:calc(var(--h)*1px);left:-45px;top:calc(var(--h)*-.5px);background:#3fa9a2;transform:translateZ(45px)}
.r{width:90px;height:calc(var(--h)*1px);left:-45px;top:calc(var(--h)*-.5px);background:#237a76;transform:rotateY(90deg) translateZ(45px)}
.l{width:90px;height:calc(var(--h)*1px);left:-45px;top:calc(var(--h)*-.5px);background:#2d8e89;transform:rotateY(-90deg) translateZ(45px)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="sc"><div class="cb" id="cb"><i class="t"></i><i class="f"></i><i class="r"></i><i class="l"></i></div></div><div class="pre" id="pre" role="group" aria-label="View"><button data-p="0" aria-pressed="true">Isometric</button><button data-p="1" aria-pressed="false">Front</button><button data-p="2" aria-pressed="false">Top</button><button data-p="3" aria-pressed="false">Perspective</button></div><label class="rw">Height <b id="hv">70</b><input id="ht" type="range" min="30" max="110" value="70"></label></div>
</div>
<script>
const V=[[-35.264,-45,'none'],[0,0,'none'],[-90,0,'none'],[-24,-35,'420px']],cb=document.getElementById('cb'),ht=document.getElementById('ht'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){cb.style.setProperty('--rx',V[p][0]+'deg');cb.style.setProperty('--ry',V[p][1]+'deg');cb.parentNode.style.setProperty('--ps',V[p][2]);cb.style.setProperty('--h',ht.value);document.getElementById('hv').textContent=ht.value;bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));ht.addEventListener('input',up);up();
</script>
</body></html>