Using AI to build a template from mockup images

I’m not new to Bricks or web development, but so far have largely shied away from incorporating AI in to my workflow. I’m about to build a layout based on a mockup image and want to check if realistically speaking Bricks’s AI offerings could take a static mockup image and build a template? My current thinking is that even if it were possible, it would output slop and I would need to spend ages refining prompts and instructions about how to do things “properly” … or have we come past that now?

Hey Jamie, I use an AI assistant connected to Bricks via MCP. I give it one section of the mockup and ask it to use native Bricks elements and reuse my classes and spacing variables. Then I check the Structure panel and switch to mobile. If the columns stack the way I want and the section is easy to edit, I move on to the next one.

By way of an update I took some time to experiment with this topic last week. The setup I used was Claude Code running inside WSL2, connected to the WordPress MCP Adapter (plugin), then to Bricks and its skills. I fed it an entire mockup of a homepage that was already provided to me as HTML and after 15 minutes it had done a much better job than I’d expected of translating it in to a Bricks layout.

I have needed to tame and revise it so that things are setup as I like, and of course had I specified those things from the start it would have been even closer.

My plan is to get Claude to interview me about how I like to work, then those answers will be stored in config files for future work.

I like the idea of having Claude interview you, Jamie. I use Claude Code in VS Code too. In my early experiments, a page could look close to the mockup and still be set up quite differently from how I’d build it in Bricks.

What helped was writing a custom skill for my workflow. It covers what goes in Theme Styles, which variables to use for type and spacing, how I set global defaults for elements, and when to reuse a component. I also spelled out when to use Bricks’ style controls and when I’d reach for custom CSS.

Once Claude could follow those rules on one page, I could give it the remaining pages in batches. I still review each batch. In my experience, how much context the model can keep track of makes a difference to which details it misses.