This is what I would tell anyone who wants a coherent design for a website or an app and plans to use AI for most of the work:
- Let the AI study your actual offering and target user before you ask for a single image.
- Ask for multiple versions of everything, and make the model pick its favourite before you say yours.
- Write down why you picked what you picked.
- Anchor every new image on the one you chose before, and tell the model who the images are for.
- Don't take exact values from the pictures. Build one small real thing and measure it.
- Get one component exactly right before you build fifty.
- Keep the rules few, and write down the exceptions you approve.
- Try colour themes on the real components.
- Test the design on a real product, one screen at a time.
- Let agents build in bulk, but have separate agents check their work.
- Fix things in the shared component, never on the page.
- Do the words and the brand details last, each one on a comparison page.
Below is how each of those played out when I did it, what went wrong on the way, and the prompts I used, cleaned up so you can reuse them. Anything in square brackets is yours to fill in.
The site I did all this for is mxjs.dev, so you can open it and see where it ended up before you read how it got there.
Let the AI study your product first
The evening before I asked for any image, I gave a chat model the product itself and its documentation, and asked what it thought of it. Then I spent an hour and a half correcting it. Every time it described a feature wrongly I sent it the page that showed otherwise, until it could explain the product the way I would.
It feels like a detour, but it decides what the mockups contain. Because the model knew the real product, the next morning's designs showed its real features, names and numbers. A model that doesn't know your product gives you a beautiful page for something that doesn't exist, and every agent that builds from that page will copy the invented parts.
If you already have a live product, letting the model review it is the quickest way in.
Prompts I used:
Here is [product] and its documentation: [link]. What do you think about it? Who is it for, what does it do well, and where does it fall short?
That's not right, [feature] works like this, see [link]. Update your understanding and tell me what else you got wrong.
Ask for multiple versions of everything, starting with the logo
My first image prompt asked for a logo in four different looks, with one constraint: it had to work as a favicon. I gave no colours and no style, because the one hard constraint does the filtering for you.
Four came back within a minute. I already had a favourite, but I asked the model which one it thought was best before saying anything. It picked the same one, and when I asked why not another one, it gave reasons I hadn't thought of. You only get that second opinion if the model commits first.
What I didn't realise at the time is that I had also chosen the colour palette. I never asked for one. The logo I picked had a warm amber on near-black, and from then on every prompt said "match the logo", so that palette became the whole design.
One thing the chat model couldn't do was turn the logo into a clean vector. I got that later from a coding agent that traced the image, and a second one tidied it up.
Prompts I used:
Design an appropriate logo for this product. Give me four different looks that fit it. Remember, it has to look good as a favicon.
Which one do you think is best? I already have my favourite.
Why not the last one?
Write down why you picked it
Next I asked for four landing pages matching the logo, and added "be creative, I don't want to see the same boring Tailwind templates". That one negative instruction is enough to remove the generic look without choosing a style for the model.
This time the model's favourite was a clean editorial layout, and I didn't like it at all. It felt like a magazine selling articles, it didn't show the product, and it was cluttered. The one I wanted was dark, with a glowing logo tile, and the glow gave it a feeling of speed and hot metal that fitted the logo perfectly. When I saw it I knew it was going to be my website.
I wrote that reasoning into the chat. The model agreed, but the useful part was having it written down, because months later that paragraph was still how I judged every visual decision. Keep the designs you rejected too, since they're useful as a second reference.
Prompts I used:
If you had to redesign the website to match this logo, how would you envision it? Give me four samples. Be creative, I don't want to see the same boring Tailwind templates. Make it exciting and match the spirit and colours of the logo.
Which one do you think is best and why?
I don't like [option], it feels like [reason] and it doesn't show the product. [Option] is where I want to go, because [reason]. What do you think about my reasoning?
Anchor every image on the one before, and say who it's for
From there each prompt built on the last chosen image: more pages, then more screens, then the same screens on a phone. I told the model the images were going to coding agents that would build the site, and its designs got noticeably more buildable, with fewer effects that only work in a picture.
Then I asked for the kitchen sink: every component used across all the designs, on four large sheets, dark mode only. That meant buttons and navigation, forms, content and data tables, and overlays and page layouts. Those four sheets became the spec every agent got from then on.
Last, I gave the model my own CSS files and asked it to extract design tokens, spacing rules and a naming scheme in my existing conventions, plus a written handoff for the coding agents. Giving it my files kept it from inventing a class system I would have had to undo.
From the first logo prompt to the handoff took under two hours. Two things didn't work in that chat. The HTML it wrote from its own design looked like a cheap demo of it, and the light version of the page looked nothing like the original. Leave both for later.
Prompts I used:
Create more pages in the same style as the one I picked: [pages]. I'm going to forward them to coding agents to build, so they have to be buildable.
Now design two or three of those screens on mobile, so I can see how the whole layout should scale.
Design every component used across all the designs so far, the whole kitchen sink, as four large, high-quality sheets with different groups of elements, so I can hand them over and have them replicated. Dark mode only.
Extract the design tokens and rules from these designs, and define the CSS architecture and naming. Keep it lean and use the same naming as my attached files. Also write a component inventory checklist and a separate markdown handoff for a coding agent.
Don't take values from the pictures
The hard part started when agents began building from the pictures. For weeks I kept getting the same mistakes: top-to-bottom gradients on buttons like an old phone interface, glows so wide they looked smudged, bold labels, corners twice too round, and double borders. I measured some of it myself on the screenshots and pasted in the CSS I wanted, which helped, but only for the one thing I measured.
What fixed it was a small side project. I needed a simple phone dashboard, asked for it in the style of the design sheets, and corrected it screenshot by screenshot for about an hour and a half. The button colour was slightly off, the text too heavy, the border grey too light, the selected card had two borders instead of one, and the cards glowed when they shouldn't.
When that small app looked right, every value in it was exact, and a month later the whole design system was rebuilt on those numbers. The images give you the mood and the small real app gives you the measurements.
Prompts I used:
Build [small app] in the style of these design frames: [images].
This looks nothing like the design, you only changed a couple of colours. Look at the tabs in the design: [image]. And yours: [image].
The selected card has two borders. It should have one 1px border in the primary colour with barely any glow.
Get one component exactly right first
When I restarted the component work I told the agent to build a single button and make it exactly right before anything else. It sounds slow, but every later component inherits the border, the focus look, the height and the text weight from that one, so fixing it once fixes fifty.
Two practical checks help here. Compare the design and the build side by side and name every difference. And check that the model you are using can actually see images. One of the models I tried couldn't, and it spent an evening confidently comparing colours it had never seen.
The components became real, reusable elements with one kitchen-sink page showing every state frozen in place, so I could review hover, focus and disabled states without touching anything.
Prompts I used:
Extract as few colour tokens as possible to keep the visual integrity. From what I can see there are two or three shades of the accent, and the rest is monochrome.
Start with a button and make sure that one single button is exactly right. Open it in a headless browser, compare it with the design and take your time.
Can you actually see images? Describe this screenshot before you compare anything with it.
Keep the rules few and write down the exceptions
I asked for as few rules as possible, written as obvious fundamental laws rather than a long style guide. There are five: in every theme, make what's clickable, what's selected and what has focus stand out just as clearly, let secondary text take its colour from the surface behind it, keep surfaces quiet and states distinct, give every visual role its own token, and keep motion short.
Some of my own earlier rules didn't survive the finished design. Early on I said nothing should ever be bold, but once the font changed, a bold primary button and bold titles looked right. They stayed, and the exception went into the rules with the date and the reason. The same happened with how selected items look. A selected tab, a selected list row and a selected toggle carry different weight, and one look for everything can't work. I only settled on three looks, each tied to a kind of control, after seeing the before and after side by side on one page.
If you don't write the exceptions down, the next agent will "fix" them back.
Prompts I used:
Do we have a rule like this written down anywhere? If not, add it. Keep it to as few rules as possible, written as obvious fundamental laws.
This breaks one of our earlier rules, but it looks right. Keep it, and record the exception in the rule with today's date and the reason.
Try colour themes on the real components
I didn't solve the light theme with a picture. I tried accents on the real component sheet: a violet, a softer violet, the brand amber (it looked brown on white), an orange I'd seen on another product's website and liked, back to violet, and finally that near-red orange. Dark stays the default no matter what the operating system prefers.
Two rules came out of it. Secondary text in the light theme is black at an opacity instead of a fixed grey, because a fixed grey loses contrast when the background shifts. And when you change the accent, the visual hierarchy has to stay the same: what's clickable, what's selected and what has focus should still read at a glance.
Prompts I used:
Implement a light theme with [accent] on the real components. Keep the same visual hierarchy as the dark theme, so what's clickable, selected and focused reads the same.
Build me a page with the current look and the proposed one side by side, using the real components, so I can judge.
Test the design on a real product
A documentation site is a gentle test, so I moved one screen of a larger app onto the new design in a single day. The design files are copied in unchanged, and a test fails if any value differs from the source. One small file maps the app's old style names to the new ones. The data layer stays and only the look changes.
It needed a lot of correcting, and I asked the agent why. It had been adapting the old code instead of using the new components. So the rule became that when a screen needs something the design system doesn't have, you fix the shared component and never patch the screen. Get one screen right, then the next. And if an agent keeps making the same kind of mistake, stop correcting it one fix at a time and ask it why. Its answer usually shows you what to change so the mistakes stop coming.
The real app gave the design things a docs site never would have: one height for inputs and buttons, a command palette, pagination pinned to the bottom with rows sized to the screen, a fade instead of a skeleton when data reloads, a tooltip on every icon button and an icon on every dialog. Some changes went the other way too. Where the app's version was simply better, the design system took it.
Prompts I used:
Create a branch and move only [one screen] of [app] onto the new design. Keep the data layer and the behaviour. Copy the design files in unchanged and add a test that fails if any value differs from the source.
No local overrides. If the screen needs something the design system doesn't have, fix the shared component instead.
Explain as briefly as you can why I had to correct so much, and what we change so it doesn't happen again.
Let agents build in bulk, with separate checkers
The big rebuild happened in one night. I told the coding agent it was only the orchestrator, that helper agents would do the work one page at a time, that every component had to be checked first, keyboard included, and that it should make the decisions itself because I would be asleep.
It split the night into phases: audit and fix the components, consolidate the colours and sizes, build the page shell, rewrite each page, then check everything. The checkers were separate agents that weren't allowed to edit anything. They tested every component and page in both themes, at desktop and phone widths, and each one left behind a script that re-runs its checks. After that, fixer agents worked through the findings one by one, and the checkers ran again.
Four habits made it work:
- Every agent owned its own files, and only the orchestrator committed.
- A shared decision log recorded every judgement call, and became the morning report with the few questions only I could answer at the top.
- The mockups' invented text and numbers were never allowed onto real pages.
- When many checks failed at once, the orchestrator looked for one root cause before fixing anything. Most of the serious failures that night came from a single build tool bug.
Put one warning in your brief: agents turn a local guideline into a global rule. A note that the strong accent colour should be used sparingly became a rule that removed it from the progress bar and the step indicator, and I had to put it back in the morning.
Prompts I used:
You are only the orchestrator. Send subagents, first one per component group and then one per page, and compare every page with the design frames. Before rewriting anything, validate every component, keyboard included. Keep the palette as slim as it is now.
The checkers are separate agents that don't edit anything, and each one leaves behind a script that re-runs its checks. Keep a decision log, and put the questions only I can answer at the top of a morning report.
I won't be around, so make the decisions in scope yourself. You have the whole night.
Fix it in the shared component, and review from screenshots
In the morning I went through the result on my phone and my desktop in both themes, and sent screenshots with one sentence each: this divider should be darker, this label isn't centred, this bar lost its fill. Each fix went to a helper agent, in the shared component, followed by a sweep for other places with the same problem. The main agent stayed in charge and kept the overall picture.
Prompts I used:
[Screenshot] This divider should be darker. Use a subagent and stay in context yourself. Fix it in the base component, test it in the browser, and have the subagent look for other inconsistencies like this one.
Do the words and brand details last
The text read like it was generated, so I rewrote one heading myself and asked the agent to work out why my version sounded better. It wrote the rules down, tried them on a few pages, went too far into long winding sentences, and got corrected. Then it asked me why I believe the claims the pages make, and my answers went into the pages as real reasons. Nobody had asked me that before.
The brand details came last, and each one was decided on a comparison page:
- Logo. The logo became a single inline vector that follows the site theme, with its geometry cleaned up.
- Font. I wanted a font that only some devices have, with a small free fallback for everyone else. I built a page with the candidate fonts on real components, picked the closest, and adjusted its weight and spacing with sliders until the two matched.
- Hero. I described the hero art in feelings (metal just out of the forge, still hot) and explained an old 3D trick for smoke: two or three cloud textures drifting in different directions and added together. Two models built it in parallel, and I kept the better one.
- Code colours. The brand colour is left out of code highlighting completely, because it belongs to the brand. The light theme shows code on a dark background, the way some other documentation sites do.
Prompts I used:
Here is how I would phrase this heading: [your version]. Analyse why it reads better than the current one, write the rules down and apply them across the pages.
Ask me why I believe the claims these pages make, and use my answers as the reasons.
Build a comparison page with these fonts on real components, with inputs, buttons and paragraphs, and add sliders for weight and letter spacing.
Here's a reference I like: [image]. It looks like it was forged in steel and is still hot. Recreate it with vectors and CSS only, as close as you can.
To be continued
The documentation was the warm-up. Next come the rest of that larger app, screen by screen, a light theme that leans towards Swiss design, and dashboards for the products that come after it. I'll write those up when they're done.