Mockups Before Code: Designing with AI and Comparing Several Options
AI can build a working screen in minutes, so it's tempting to skip design and go straight to code. Then you look at the result and realize the layout is awkward, the important button is buried, and the flow takes five steps where two would do. Now every change means changing working code.
Design first. Changing a mockup takes seconds. Changing a built feature takes much longer and risks breaking something else.
Why ask for several options
When you ask AI for one design, you get its first idea, which is rarely its best. Ask for three, and you can compare, spot what works in each, and combine them.
This isn't new to AI. The Nielsen Norman Group, a long-standing user experience research firm, recommends parallel design: creating several different design alternatives at once, then merging the best elements rather than just picking a winner. In the study they describe, the merged design scored about 70% higher on usability than the average of the originals, and refining it further raised that to about 152%.
AI makes this cheap. Three mockups used to take a designer days. Now they take minutes.
How to do it
Describe the screen and who it's for. What the user is trying to do, what information they need, and what the main action is.
Ask for three different options. Not three colours of the same layout: genuinely different approaches. A prompt you can copy:
Give me three different mockups for this screen, each taking a different approach to the layout and flow. Explain the trade-offs of each.
Compare them. Which is clearest? Which makes the main action obvious? What's best about each?
Combine. Ask for a new version that takes the best parts of each: "Option B's layout, with option A's summary at the top and option C's single-step checkout."
Refine once or twice. Then stop. Good enough to build is the goal, not perfect.
What a mockup should show
- The real content, or close to it. Placeholder text hides problems: a name that's too long, a price that wraps.
- The main states: empty (no data yet), normal, full, and error.
- Phone and desktop, if people will use both.
What to look for when you compare
Put the three options side by side and ask the same questions of each:
- Can you tell what the screen is for in three seconds?
- Is the main action obvious? One button should stand out. If three do, none does.
- How many steps to finish the task? Count them. Fewer usually wins.
- What's on the screen that nobody needs? Remove it.
- Does it work on a phone? Most customers will be on one.
- What happens when there's nothing to show yet, or something goes wrong?
You'll rarely pick one option whole. More often it's the layout from one, the wording from another, and one good idea from the third.
A real example
On this website, any change a visitor would see is mocked up first. When a list of guides was added to one of the main pages, I was shown how it would look in place, on a desktop and on a phone, before anything was built. The list was approved from the mockup, built to match, checked on a private preview link, and only then put live.
That order matters. Each stage is cheaper to change than the next: a mockup takes seconds to redo, a preview takes minutes, and a live page that's wrong costs you visitors.
Prompts you can copy
Before building anything, show me three different layouts for this screen as mockups. Use realistic content, not placeholder text. Show each on desktop and phone.
Combine these: the layout from option 2, the summary box from option 1, and the single-step form from option 3. Show me the result before building.
Show me this screen with no data, with 200 rows of data, and with an error message.
Show it to someone
The best test of a mockup is a real user. Show it to two or three people who'd use it, ask them to do the main task, and watch where they hesitate. Ten minutes of this catches problems no amount of building will.
Then build from the mockup
Give the AI the approved mockup as the target. Claude Code, for example, can look at a design image, build it, then take a screenshot of the result and compare the two, fixing the differences. Anthropic's best-practices guide describes exactly this loop.
The quality jump is real
AI design tools have improved quickly. In my own company, designs that used to be the weak point of our product became one of its strengths once we started generating several options and combining the best of them. The tools are good; the habit of comparing options is what makes the difference.
I now ask for options on every design decision, whether it's something new or a change to an existing screen. The only exceptions are trivial changes, like updating a line of text. I'm not a designer, and asking for more options is the best way I've found for a non-creative person to get better and better designs, and ideas for new ones.
Common questions
Can AI really design a good interface? Yes, especially when you ask for several options and combine them. Its first idea is usually average. Its best of three, refined once, is often very good.
Do I need design software? No. AI coding tools can produce mockups as simple web pages or images you can look at in a browser.
Why not just build it and change it later? Because working code is slower and riskier to change than a picture, and people stop questioning a design once it's built.
How many rounds should I do? Three options, one combined version, one or two refinements. Then build.
Should I show mockups to customers? Yes, to two or three. Watching someone try the main task on a mockup is the cheapest test there is.
Related guides: plan before you prompt, testing AI-written software and the pre-launch checklist.
The bottom line
Don't let AI's speed tempt you into skipping design. Ask for three genuinely different mockups, combine the best ideas, check them with a real user, and only then build. It's the cheapest stage to get things right.
This is part of my guide to building software with AI. If you'd rather have it designed and built for you, see how a custom build works, or book a call.