In short
To get better UI from AI, write a brief rather than a list of adjectives. State the user, their goal, the most important action, the real content and the states to cover. Give specific visual direction, using your tokens and references. Say what to avoid. Iterate on one thing at a time, and review for hierarchy, real data, accessibility and whether it actually looks like your product.
Why vague prompts disappoint
“Make a modern, clean, beautiful dashboard” contains no useful information. The model falls back on the most common patterns it knows, which is why you tend to get the same cards and gradients everywhere. See why vibe-coded apps all look the same.
The fix isn't magic words. It's making the same decisions that a designer would make, and writing them down.
A prompt template
WHAT: [The screen or component]
WHO: [Who uses it, in what situation, on what device]
GOAL: [The one thing they need to get done here]
PRIORITY: [What should stand out, in order]
CONTENT: [Real text, real data, real numbers]
STATES: [Empty, loading, error, long content]
STYLE: [Your tokens, or a specific visual direction]
CONSTRAINTS: [Stack, components, accessibility level]
AVOID: [Patterns you don't want]
You don't need every line each time, but the first four do most of the work.
Before and after
Weak:
“Design a modern invoice dashboard with charts and cards.”
Better:
Design the main screen of an invoicing tool.
WHO: A self-employed plumber, checking on their phone between jobs.
GOAL: See who owes them money, and send a reminder in one tap.
PRIORITY: 1) Total overdue 2) List of overdue invoices 3) Add invoice.
CONTENT: Overdue: £2,340. Mrs Hughes, £480, 12 days late.
Bright Dental, £1,260, 31 days late. J Patel, £600, 4 days late.
STATES: Show the empty state ("Nobody owes you anything").
STYLE: Plain and practical, large type, high contrast, no gradients.
AVOID: Charts, sidebars, stat-card grids, placeholder names.
The second one tells the tool what to leave out. It'll also produce something much closer to a real product, as it's built on real content.
Six things that make the biggest difference
1. Real content. Lorem ipsum and “John Doe” hide problems. Long names, real prices and actual headlines change a design, so use them from the start.
2. A stated priority. If you say what comes first, the layout can reflect that. See good design is invisible until it's gone.
3. Your design tokens. Give it actual values rather than “brand colours”:
Use only these:
Colours: ink #1A1A1A, paper #FBF8F2, accent #B4432B
Type: "Source Serif" for headings, "Inter" for body
Spacing: 4, 8, 16, 24, 48
Radius: 2px. No shadows.
4. Specific references. “Like a Swiss railway timetable: dense, gridded, with no decoration” says far more than “minimal”. Describe a quality, rather than asking it to copy another company's product.
5. A list of things to avoid. This is often the fastest way to escape defaults:
Avoid: purple gradients, glass effects, emoji icons, three-column
feature cards, centred hero with two buttons, vague headlines.
6. Your actual components. In a real codebase, say: “Use our existing Button, Card and Table from /components/ui. Don't create new ones.” A project instructions file makes this automatic. See how to write an AGENTS.md file.
Don't forget the states
Generated screens usually show the perfect state. Ask for others explicitly:
- “Show what this looks like with no invoices.”
- “What happens when the payment fails?”
- “Show the list with a 60-character client name.”
- “Show loading, without layout shift.”
- “Show it at 360px wide.”
See how to design empty states that guide users and how to design error states users can recover from.
How to iterate
Generate options first. “Give me three different layouts, each with a different idea about what matters most. Explain the thinking behind each.” Differences in structure are more useful than differences in colour.
Change one thing at a time. “Keep everything, but make the overdue total the largest element.” Large combined requests tend to break things that were working.
Be specific in your feedback. Instead of “make it pop”, say “increase contrast between the amount and the label, and remove the card border”.
Ask it to critique itself. “List the three weakest things about this design for a tired user on a phone. Then fix only those.” It can be surprisingly useful. Judge the output yourself, though.
Start again when it's stuck. If a design has gone wrong after many changes, a new prompt with what you've learned is usually better than a further ten fixes. It also costs fewer credits.
Prompting for accessibility
Include this in your standard prompt:
Meet WCAG 2.2 AA. Text contrast at least 4.5:1. Visible focus states.
All functions usable by keyboard. Real labels on form fields.
Touch targets at least 44px. Don't rely on colour alone.
A prompt doesn't guarantee any of this, so check the results. See how to test accessibility without a specialist and how to create accessible colour contrast.
Different tools, different prompts
- Concept tools, such as Google Stitch: describe the feeling, content and priority. See AI UI design tools.
- App builders, such as Lovable: include behaviour and rules, too. See v0 vs Lovable.
- Coding agents: point at existing files and components, and say how you'll check the results. See context engineering vs prompt engineering.
- Design tools, such as Figma Make: start from your own frames where possible. See Figma Make vs Lovable.
If your tool accepts images, give it a sketch of your layout. A rough drawing can be better than a paragraph.
How to review the result
Before you accept a generated design, ask:
- Squint at it. Is the most important thing the most visible?
- Is anything just decoration? Remove what isn't helping.
- Does it work with real data?
- Does it work on a small screen?
- Can I use it with only a keyboard?
- Are there invented features or claims? Models love adding testimonials and statistics, so remove any that aren't real.
- Would anyone recognise this as ours?
Then treat it as a draft. Rebuild using your system, test with users, and run design QA. Prompting makes the first version cheaper. It doesn't replace the judgement required to finish it.
If you'd like help building a design system that makes AI output look like your brand, book a call.
Common questions
How do I write a good prompt for UI design?
Write it like a brief. Say who's using it, what they need to do, what's most important, and include real content. Give specific visual direction or design tokens, list the states to cover, and say what to avoid.
Why does AI-generated UI look generic?
Models fall back on common patterns when a prompt is vague, and many tools share similar defaults. Giving real content, specific tokens, references and a list of things to avoid will usually produce something more distinctive and useful.
Can AI use my design system?
Often, if you provide it. Give it your token values, and point coding agents at your existing components, ideally through a project instructions file. Check the result, as tools can drift back to defaults, or invent new components.
Should I ask for accessibility in my prompts?
Yes. Ask for contrast levels, visible focus states, keyboard use and proper labels. Prompting helps, but it doesn't guarantee a result, so test using automated tools and by hand before you rely on the output.