Get in touch
3 Koletti Street, 45444 Ioannina, Greece
[email protected]
Ph: +30 6937 391141
Work inquiries
Got a project in mind?
Let’s talk
Back

Prompting UI: from vague to specific

In one week in April, three of the biggest names in AI and design put a text box, and with it the UI prompt, at the start of the design process. On 16 April, Canva unveiled Canva AI 2.0 as a research preview, which creates “fully editable designs from natural language prompts” and can run a multistep goal, such as a whole campaign, from one brief. On 17 April, Anthropic launched Claude Design, a research preview that turns a description into prototypes, slides and one-pagers and can apply a team’s design system. On 21 April, OpenAI released ChatGPT Images 2.0, with a thinking mode that plans layouts before drawing and much better text inside images.

The outputs also travel further than they used to. Canva Code 2.0 can import AI-generated HTML into Canva’s visual editor, and Claude Design can export to PDF, PPTX or a URL, or send its work to Canva as editable files. A prompt written in one tool can now shape a design that ends up in three others, so a weak prompt spreads further too.

Different products, same starting point: you type what you want. That makes the prompt the new first sketch, and it is where most of the quality is won or lost. A vague prompt does not produce a bad design. It produces an average one, which on a website is worse, because nobody notices it.

This guide is about writing UI prompts that give you something worth working with: what a good prompt contains, why you should ask for several directions before any build, how to make specs concrete, and how to iterate without breaking what already works. It has more example prompts than any other article in this series, and at the end we show a real output generated from one of them, unedited.

Why a short UI prompt gets you the average website

Nielsen Norman Group tested AI prototyping tools on real design tasks and found that, without visual specifications, the tools defaulted to similar, neutral designs, which the researchers called “flat and interchangeable”. Their main finding was simple: “Longer prompts with clear, detailed design requirements consistently yield better results.”

The reason is how these models work. Anthropic explains that models predict output from patterns in their training data, and without direction they sample from the “high-probability center”. Every gap in your UI prompt gets filled with the most common choice. Leave out the typeface and you get the most common typeface. Leave out the audience and you get a page for nobody in particular.

Words also get misread. In the NN/g study, several tools read the word “profile” as a social-media profile, which pushed the primary task further down the page. The researchers’ advice is that designers “need to disambiguate the language of their prompts as much as possible.” In January we covered the brief that comes before the prompt. This month is about turning that brief into words a model cannot misunderstand.

The anatomy of a UI prompt

Vendor guides disagree on details but agree on structure. Vercel’s guide to prompting v0 names three inputs: the product surface (the actual components, data and actions), the context of use (who uses it, when, and what decision they are making) and constraints and taste (style, platform, layout, colour, accessibility). In Vercel’s own tests, the specific version of a prompt finished faster and produced less code: 443 lines instead of 595. Figma’s help centre puts it another way: “The first prompt acts as the brief your Make session works from.”

From those guides and our own practice, a complete UI prompt has six parts:

  1. Surface. Exactly which screen or section, and what is on it. “Homepage hero and today’s bread list”, not “a bakery website”.
  2. People and moment. Who arrives, on what device, in what hurry, and what they need to decide.
  3. Real content. The actual headline, button labels, prices and names. Lovable’s guide puts it plainly: “The fastest way to show intent is to use real words.” Placeholder text hides layout problems.
  4. Visual direction. Exact values: hex colours, typefaces, sizes, radius, spacing. Adjectives alone are not enough, though they help set the mood.
  5. States and rules. Empty, loading, error, sold out, logged in. Lovable asks: “what happens if the data is empty, still loading, or fails?”
  6. Exclusions. What you do not want, named precisely. A short list of banned patterns removes the most common defaults.
Diagram of a UI prompt split into six labelled parts: surface, people and moment, real content, visual direction, states and rules, exclusions
Six parts of a UI prompt. Each part closes a gap the model would otherwise fill with the most common choice.

Prompt · a reusable template for any new screen · Source: Adapted from Vercel, “How to prompt v0”

Build [surface: the exact screen or section, with its components, data and actions].
It is used by [who], on [device], when [moment], to decide [decision]. They have [time available].
Content (use exactly, do not rewrite): [headline], [supporting line], [button labels], [real items with prices or dates].
Visual direction: [3 adjectives], palette only [hex list with roles], headings in [typeface, size/line-height], body in [typeface, size/line-height], radius [px], spacing scale [values].
States: [empty / loading / error / sold out / logged in, as relevant].
Avoid: [banned patterns].
Accessibility: text contrast at least 4.5:1, visible focus styles, touch targets at least 44px.

If you are not yet sure what you want, let the model ask first. Lovable’s guide suggests one line that works in almost any tool, and it often surfaces a question you had not considered.

Prompt · let the model ask before it builds · Source: Lovable, Prompting guide

Ask me any questions you need in order to fully understand what I want from this feature and how I envision it.

Ask for four directions before you build anything

The most useful habit we can recommend is to separate choosing a direction from building it. If your first UI prompt asks for a finished page, the model makes dozens of visual decisions at once, and you end up reacting to all of them together. If you ask for four short directions first, you make one decision, consciously, and the build follows from it.

Make the directions comparable. Each should have a name, a background colour, an accent colour, a heading typeface, a body typeface and a one-line reason. Ask for them to differ on purpose, and to include one that is safer and one that is riskier than you would choose yourself. Then pick one, or combine two, and only then ask for the build.

Prompt · four directions first, then wait · Source: Written for this article

Do not build anything yet.
For [business, place, audience], propose 4 visual directions for the homepage. Make them clearly different from each other.
For each direction give: a short name, background hex, text hex, one accent hex, heading typeface, body typeface, corner radius, and one sentence on why it fits this business.
Direction 1 should be the safest option. Direction 4 should be the boldest one you can still defend.
Avoid purple-to-blue gradients, Inter, Roboto and three-feature-card layouts in all four.
End with a one-line question asking which direction to build. Wait for my answer.
Four direction cards for a fictional Thessaloniki bakery, each showing a name, colour swatches, a sample heading in a different typeface and a one-line rationale
Four directions, one decision. An example board for a fictional bakery. Each card fixes colours, type and radius, so choosing one gives the next prompt exact values.

Make every spec concrete

Once a direction is chosen, the build prompt should leave as little as possible to chance. A few rules make the biggest difference.

Numbers beat adjectives

“Warm and modern” means something different to every model and every person. “#F4EDE1 background, #B5532C for the one primary action, Georgia headings at 56px” means one thing. Google’s Stitch guide shows the difference in its own examples: rather than “change the button”, it suggests “Change the primary call-to-action button on the login screen to be larger and use the brand’s primary blue color.” Adjectives still have a job. Stitch notes that words describing the feel of an app steer its colours, fonts and imagery, so use them to set the mood and numbers to fix the details.

Name patterns precisely

Say “a list with prices aligned right and a sold-out state”, not “a nice product section”. Say “a segmented control with three options”, not “a switcher”. The more precise the pattern name, the less room for the “profile” problem NN/g found.

Ban the defaults by name

Anthropic publishes a sample instruction for better frontend design that lists the patterns to avoid: overused fonts such as Inter, Roboto and Arial, “purple gradients on white backgrounds”, and predictable layouts. The same guide warns that models still converge on other common choices, naming Space Grotesk as an example, so a ban list is never enough on its own. Always pair what you ban with what you want instead.

Prompt · a standing instruction against generic output · Source: Adapted from Anthropic, Prompting best practices (frontend aesthetics)

Avoid generic AI aesthetics:
- No Inter, Roboto, Arial or system fonts. Do not swap them for another overused face such as Space Grotesk.
- No purple gradients on white, no glowing blobs, no three identical feature cards.
Instead:
- Use the typefaces I specify, with a clear size contrast between headings and body.
- Commit to one dominant colour and one sharp accent, defined as CSS variables.
- Use one considered motion moment (for example the hero on load), not effects on every element.
- Make choices that come from [the business's world: materials, place, trade], not from other websites.

Ask for the states

A homepage hero has one state. A product list has at least four: normal, empty, loading and sold out. A form has more. NN/g recommends naming components, visual style and interaction states in the prompt. Models rarely add states you did not ask for, and missing states are what make a prototype fall apart when real data arrives.

Prompt · cover the states before the polish · Source: Written for this article, following Lovable and NN/g advice on states

For [screen], show these states side by side at [width]:
1. Normal, with realistic data: [3-5 real items].
2. Empty: first visit or nothing available, with one clear next action.
3. Loading: a skeleton that keeps the final layout, no spinners in the middle of the page.
4. Error: a specific message in plain language, what happened and what to do next. No apologies, no error codes.
5. [Domain state, e.g. sold out, closed today, fully booked].
Keep the layout identical across states so nothing jumps.

A real example, generated from a UI prompt

To show what a specific prompt produces, we gave the prompt below to an AI model and asked it to output the page as HTML and CSS. The business is fictional. We did not edit the result.

Prompt · a fully specified hero section · Source: Written for this article

Design the homepage hero and first section for Zymi, a sourdough bakery in Ano Poli, Thessaloniki.
People: neighbours buying bread on the way to work (7:00-10:00, on phones) and people ordering a celebration cake on a laptop in the evening.
Primary action: "Order for tomorrow" (orders close at 20:00). Secondary action: "See today's bread".
Content, use exactly:
- Headline: "Bread from a 40-year-old starter, out of the oven at 6:30."
- Supporting line: "Order by 8 pm, collect in Ano Poli or get it delivered before 9."
- Today's bread: Village sourdough, 800 g, 4.20 euro / Rye with sunflower seeds, 600 g, 3.80 euro / Olive and oregano loaf, 500 g, 3.50 euro (sold out)
Visual direction: warm and plain, like a baker's paper bag. Palette only: #F4EDE1 background, #2A2118 text, #B5532C primary action, #E2D3BC surfaces, #6E5E4C muted text.
Type: Georgia for headings, 56px with 1.05 line-height. Helvetica for body, 18px with 1.5 line-height. No other fonts.
Layout: desktop at 1280px, two columns 7/5. Left: headline, supporting line, both buttons. Right: "Today's bread" list with name, weight, price, and a sold-out state. Thin 1px #2A2118 rules between items, 2px corner radius, no shadows.
Avoid: gradients, pill buttons, icons in coloured circles, the words "artisan" and "crafted with love".
Accessibility: text contrast at least 4.5:1, visible focus styles, buttons at least 44px tall.
Unedited AI-generated hero for a fictional Thessaloniki bakery: large serif headline on warm beige, a rust-coloured order button, and a list of three breads with prices and one marked sold out
Generated by an AI model from the prompt above, shown unedited. Palette, type, content, layout and the sold-out state are as specified. Two things are not: the order deadline is buried in a sentence, and the small grey text inside the bread panel misses the contrast we asked for.

The result follows the prompt closely, which is the point: every value we specified appears as specified, nothing we banned appears, and the sold-out state is there because we asked for it. It also shows the limits of a first pass. The 20:00 order deadline, the single most useful fact for an evening visitor, is folded into a sentence instead of sitting next to the button. And the muted brown text on the darker panel (the weights and the “sold out” label) measures about 4.2:1, below the 4.5:1 we asked for. The model applied our palette faithfully; it did not check the pair we had never tested ourselves. Neither problem is the model being careless. Both are things a reviewer has to catch.

Iterate one decision at a time

The second UI prompt is where many projects go wrong. It is tempting to list ten changes at once, and the model will then rework parts that were already right. Google’s Stitch guide recommends that you “make one or two adjustments per prompt”, and Lovable’s guide says the same: “Make one meaningful change at a time.” Lovable also suggests naming the boundaries of a change, because “naming the guardrails keeps the change contained.”

Two further habits help. Figma’s guidance for its Make tool suggests starting fresh once you no longer need the old context, since a long prompt history is processed again with every new prompt. And keep a copy of the last version you liked before any large change.

Prompt · a contained second pass · Source: Written for this article, following Stitch and Lovable iteration advice

Keep everything as it is except these two changes:
1. Under the buttons, add a status line: "Orders for tomorrow close at 20:00" with a 10px square in #B5532C before it. Muted text colour, 16px.
2. Inside the "Today's bread" panel, the muted text (#6E5E4C on #E2D3BC) is below 4.5:1. Use #2A2118 for the weights and the sold-out label there. Keep the strike-through on the sold-out item.
Do not change the headline, palette, fonts, spacing, layout or anything else.
The same bakery hero after a second prompt: an order deadline line under the buttons and darker, more readable text inside the bread list
After one contained follow-up prompt. Also generated by an AI model and shown unedited. Two changes only: the deadline now sits under the action, and the panel text passes contrast. Everything else stayed the same because the prompt said so.

Prompt · targeted edits in a visual tool · Source: Google, Stitch Prompt Guide

On the homepage, add a search bar to the header.

Change primary color to forest green.

Images follow the same logic. With image models that now render text and interface layouts much better, it is tempting to ask for a “nice website mockup” for a pitch or a case study. Describe it as a real, finished product instead, with exact copy and colours, and say what must not appear.

Prompt · a UI mockup image for a presentation · Source: Written for this article

A photorealistic image of a smartphone lying on a floured wooden counter, screen facing up, showing a bakery ordering screen that looks like a shipped product.
On screen, top to bottom: the heading "Today's bread" in a serif typeface; three rows with names and prices exactly as written: "Village sourdough 4.20", "Rye with sunflower seeds 3.80", "Olive and oregano 3.50 - sold out"; a full-width button "Order for tomorrow" in #B5532C with white text.
Screen background #F4EDE1, text #2A2118. Soft morning window light from the left, shallow depth of field, 4:5 aspect ratio.
No other text, no logos, no hands, no watermark. Spell every word exactly as given.

A checklist before you press enter

Print this, or paste it above your UI prompt the first few times. After a week it becomes habit, and your first drafts start arriving closer to something you would actually ship.

  • Surface: have I named the exact screen or section and what is on it?
  • People: have I said who uses it, on what device, in what hurry, to decide what?
  • Content: is every headline, label and item real, not placeholder?
  • Direction: have I chosen one of several directions, rather than letting the first build decide?
  • Values: are colours in hex, fonts named, sizes and radius in pixels?
  • States: have I listed the empty, loading, error and domain states that matter?
  • Exclusions: have I banned the defaults and said what to use instead?
  • Accessibility: have I asked for contrast, focus styles and target sizes?
  • Iteration: does my next prompt change one or two things and protect the rest?
  • Review: have I looked at the result at phone width before I believe it?

The prompt is a design document

The tools launched in April are impressive, and they will improve. None of them removes the need to decide what the page is for, who it serves and what it should feel like. A good UI prompt is simply those decisions written down in a form a machine can follow. Write it the way you would brief a talented designer who has never met you, and you will get work you can build on. If you would like help writing the briefs and prompts behind your next site, get in touch.

Part of our Designing with AI series: one practical guide on the 15th of every month about using AI for interface design, web design and templates, and doing it well.

Keep reading. Previous: Write your brand down for machines. Next: What to hand to AI, what to keep. All articles in Designing with AI.

Sources

creative.artworks

creative.artworks

https://www.creative-artworks.eu

Let’s collaborate

Think you have what it takes to become a happy client?

Tell us about your project. We read every message ourselves.

Let’s talk