For as long as I can remember, the conventional wisdom has been to design first, then build. And for good reason. Thinking through UX, exploring ideas, establishing visual direction and getting alignment before writing code can save a lot of rework later.
But this is changing with AI coding agents. Agents can take a spec and produce a working version very quickly that includes a design draft as well. That means rather than going from an idea to a rough v0, you could go straight from a spec to something that is both functional and decent-ish / template designed and polish that design draft.