NewAI video is here. What should creatives actually use it for?
Tools

Prototyping with AI-generated code: a designer's field guide

AI coding assistants let designers build real, interactive prototypes. Here's how to get good results without becoming a developer.

Creative Pouch · · 1 min read

Lines of HTML code on a dark screen
Photo: Florian Olivo on Unsplash

Clickable mockups only go so far. They can’t show real data, real performance or how an interaction actually feels. AI coding assistants now let designers build working prototypes in HTML, CSS and JavaScript, often in an afternoon.

Why code prototypes are worth it

  • Real interactions. Hover states, animations, scrolling and form behaviour feel exactly as they will in production.
  • Real content. Long names, empty states and odd data show up immediately.
  • Better conversations. Developers can look at a working example instead of guessing from a static file.

Describe it like a spec

The more precise your description, the better the code. Include:

  • the layout and how it changes on small screens;
  • the components and their states;
  • the interactions, step by step;
  • the colours, fonts and spacing values from your design system.

Attach a screenshot of your design when your tool supports it.

Build in small steps

Ask for the basic layout first. Check it, then add one feature at a time. Large requests produce large messes that are hard to fix.

Learn to read, a little

You don’t need to write code, but learning to recognise HTML structure and basic CSS will let you make small fixes yourself and give much better feedback to the assistant.

Know the limits

AI-generated prototypes are usually not production-ready. They may skip accessibility, security and edge cases. Label them clearly as prototypes, and let engineers decide what, if anything, carries over.

Share it properly

Host prototypes somewhere with a simple link so stakeholders can try them on their own devices. Ask people to complete a task, not just “look around”. You’ll learn far more.

  • #prototyping
  • #ai-coding
  • #html
  • #workflow

More in Tools