The context trick

Better references beat better prompts. Show the model what good looks like.

Better references beat better prompts.

Why prompts plateau

"Make it look premium" is not actionable. The model doesn't know what premium means to you. It knows what premium meant to the average of its training data: purple gradients and glowing borders.

More detailed prompts help (use a 4px grid, tight heading line-height), but you're fighting the model's defaults one property at a time. There's a faster way.

Reference-driven generation

Show the model what good looks like. Copy the computed styles from an interface you admire. Paste them into the prompt. The model now has constraints instead of adjectives.

How to capture references

Open DevTools, select the element, copy the computed styles. Font family, size, weight, line-height, padding, margin, colour, border-radius, box-shadow.

Or use a tool like Style Capture: point, click, copy. One clipboard paste gives the model the full computed CSS, the HTML structure, and Tailwind equivalents.

Building a reference library

Organise references by component type:

Pull references before you prompt. The AI becomes a tool for assembling references, not generating defaults.

Common mistakes