Keyword Order & Emphasis
Reorder five prompt phrases with arrows and see how their emphasis drops from first to last.
AI prompt
Product photograph of a ceramic teapot on a wooden table by a window, golden hour light, 85mm lens, shallow depth of field, soft film grain. The prompt is written with the subject first, the setting second, the light third, the lens fourth and the style last, because earlier words carry more weight. Variants: style first (grainy film photograph of a ceramic teapot...), light first (golden hour light falls on...). Negative: contradictory lighting, extra objects, text, heavy filters. Reduced motion: static image.About this pattern
Definition
Many image models pay most attention to words near the start of a prompt. The same five phrases in a different order can give a different picture, so order is a quiet form of weighting. Put what must be right first and what only flavours the image last.
When to use it
- Subject first, then action or setting, then lighting and camera, then style at the end.
- If an element keeps being ignored, move it forward rather than repeating it.
- Test one reorder at a time so you can tell what changed.
What the controls do
- Five phrases with Up and Down buttons, plus two example orders.
Motion & timing
- Rows swap instantly and the weight bars follow.
- Reduced motion: nothing animates.
Tips & variations
- Keep related phrases together so the model does not read them as unrelated.
- Do not exceed a handful of phrases; long prompts dilute every weight.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Example orders"><button data-p="0" aria-pressed="true">Subject first</button><button data-p="1" aria-pressed="false">Style first</button></div><ol class="ls" id="ls"></ol><p class="out" id="out" aria-live="polite"></p></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}
.ls{list-style:none;display:grid;gap:4px}.ls li{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;position:relative;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:5px 6px 5px 10px;font-size:12.5px;overflow:hidden}
.ls li i{position:absolute;left:0;bottom:0;height:3px;background:var(--accent);transition:width .2s}.ls li div{display:flex;gap:3px}
.ls li button{width:24px;height:24px;border-radius:6px;border:1px solid var(--line);font-size:12px;line-height:1;padding:0}.ls li button:disabled{opacity:.3;cursor:default}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const BASE=['a ceramic teapot','on a wooden table by a window','golden hour light','85mm lens, shallow depth of field','soft film grain'],O=[[0,1,2,3,4],[4,3,2,1,0]],ls=document.getElementById('ls'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')];let ord=O[0].slice();
function draw(){ls.innerHTML='';ord.forEach((k,i)=>{const li=document.createElement('li'),w=100-i*17;li.innerHTML='<span>'+BASE[k]+'</span><div><button type="button" aria-label="Move '+BASE[k]+' up"'+(i===0?' disabled':'')+'>\u2191</button><button type="button" aria-label="Move '+BASE[k]+' down"'+(i===4?' disabled':'')+'>\u2193</button></div><i style="width:'+w+'%"></i>';const [u,d]=li.querySelectorAll('button');u.addEventListener('click',()=>mv(i,-1));d.addEventListener('click',()=>mv(i,1));ls.appendChild(li);});
out.innerHTML='<b>Prompt:</b> '+ord.map(k=>BASE[k]).join(', ');}
function mv(i,d){const j=i+d;[ord[i],ord[j]]=[ord[j],ord[i]];draw();bs.forEach(b=>b.setAttribute('aria-pressed','false'));}
bs.forEach(b=>b.addEventListener('click',()=>{ord=O[+b.dataset.p].slice();draw();bs.forEach(k=>k.setAttribute('aria-pressed',String(k===b)));}));draw();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>Keyword Order & Emphasis — 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}
.ls{list-style:none;display:grid;gap:4px}.ls li{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;position:relative;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:5px 6px 5px 10px;font-size:12.5px;overflow:hidden}
.ls li i{position:absolute;left:0;bottom:0;height:3px;background:var(--accent);transition:width .2s}.ls li div{display:flex;gap:3px}
.ls li button{width:24px;height:24px;border-radius:6px;border:1px solid var(--line);font-size:12px;line-height:1;padding:0}.ls li button:disabled{opacity:.3;cursor:default}
@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="Example orders"><button data-p="0" aria-pressed="true">Subject first</button><button data-p="1" aria-pressed="false">Style first</button></div><ol class="ls" id="ls"></ol><p class="out" id="out" aria-live="polite"></p></div>
</div>
<script>
const BASE=['a ceramic teapot','on a wooden table by a window','golden hour light','85mm lens, shallow depth of field','soft film grain'],O=[[0,1,2,3,4],[4,3,2,1,0]],ls=document.getElementById('ls'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')];let ord=O[0].slice();
function draw(){ls.innerHTML='';ord.forEach((k,i)=>{const li=document.createElement('li'),w=100-i*17;li.innerHTML='<span>'+BASE[k]+'</span><div><button type="button" aria-label="Move '+BASE[k]+' up"'+(i===0?' disabled':'')+'>\u2191</button><button type="button" aria-label="Move '+BASE[k]+' down"'+(i===4?' disabled':'')+'>\u2193</button></div><i style="width:'+w+'%"></i>';const [u,d]=li.querySelectorAll('button');u.addEventListener('click',()=>mv(i,-1));d.addEventListener('click',()=>mv(i,1));ls.appendChild(li);});
out.innerHTML='<b>Prompt:</b> '+ord.map(k=>BASE[k]).join(', ');}
function mv(i,d){const j=i+d;[ord[i],ord[j]]=[ord[j],ord[i]];draw();bs.forEach(b=>b.setAttribute('aria-pressed','false'));}
bs.forEach(b=>b.addEventListener('click',()=>{ord=O[+b.dataset.p].slice();draw();bs.forEach(k=>k.setAttribute('aria-pressed',String(k===b)));}));draw();
</script>
</body></html>