Bringing designers into the repo
How we bridged the gap between design and development with agentic AI
Article Overview
In my previous article, The design system is more important now than ever, I explained why AI agents struggle to write front-end code, and how a structured design system can help to address these failings.
When you translate this concept into a production team where designers and developers work together to produce a website, you can make some serious productivity gains.
The problem
For as long as the web design industry has existed, designers and developers have worked in silos. The vast majority of web designers are not expert coders, and so prefer to work with tools like Photoshop or Figma, which allow them to rapidly turn their ideas into useful layouts and prototypes that can be presented to the client.
Developers would then take these layouts and recreate them by hand in HTML and CSS, turning them into prototypes that can be rendered in the browser.
The trouble is, when you create a design, then someone else recreates that design from scratch, things get lost in translation.
Font sizes are often not quite right, spacing is subtly shifted, and elements that were fine in the design start to break at certain screen widths. There might be elements the designer has created that are not possible to build within the chosen framework or budget.
The end result is often a compromise, which creates friction between the designer and the developer, and endless rounds of tweaks and changes.
That's where the familiar exchange starts. The developer says, "you can't do that; it's not possible", and the designer asks, "why not?"
And then once the HTML and CSS prototypes are made, for every change the client wants to roll out we have to go through the whole process again - mock it up in Figma, re-implement in HTML / CSS, argue with each other over the placement of a horizontal rule.
It's a hugely inefficient and frustrating process; however, because it has been the norm for so many decades, we have just got used to it.
The goal
When we started using agentic AI to help with our website production process, this inefficient handover between design and development quickly became one of the main areas we wanted to improve upon.
With the structured design system and front end approach laid out in my last article, our agentic AI tools can now build consistent, robust and scalable front end interfaces, with minimal coding effort. So we asked ourselves, what if we handed the entire front end over to our designers, and had them create their designs within the website project itself, rather than in a Figma-based silo?
We decided to build a framework where our designers could check out a project codebase via git, make their changes directly within the project using agentic AI, then commit their changes back in again.
If we could get this to work, it would completely remove the requirement for a developer to recreate their work in HTML / CSS, along with the friction, the meetings and compromises that come with that awful process.
The workflow
So with this goal in mind, we designed a workflow that allows a designer to work directly within the codebase, using agentic AI and git, whilst still retaining the creative freedom they need to piece together decent interfaces and visuals.
Visual exploration: Some projects begin with a visual exploration and/or a first draft of the design system with Figma; others start directly within the codebase. This depends on the designer's preferences and the nature of the project. Either way, the first iteration is often outside of the main project repository, and more of an exploration to set the direction.
Set up the scaffolding: Before the real design begins, a developer sets up a git repository and spins up the scaffolding for the main project, which could be an empty Statamic site or a vanilla Laravel install. This scaffolding will also include various agentic harnesses and skills that we use to structure our builds.
Transfer in: The developer then imports the design work completed so far using agentic AI, which could be a design system and a series of wireframes, or even some basic pages. These will be set up as URLs within the site, allowing anyone with the repository checked out to spin up, run and work on the site locally. This is the one and only time that a developer will reproduce a designer's work.
The designer harness: At this point, a designer harness will be made available within the repo, giving the designers a framework that they can use to work on the site alongside the developers. The designer harness defines technical details such as the git branching strategy and front end frameworks, which the designer might otherwise struggle with, and it restricts access to backend code and other fundamental aspects of the source code. It also enforces the fundamental front end rules, such as ensuring all elements go through the design system first. When using agentic AI to work on the site, the designer harness gives designers the freedom to evolve and develop the site in a consistent and robust manner, without having to write a single line of HTML and CSS.
Review and merge: Once the designer is happy with their changes, the harness will commit those changes into a branch and issue a PR. A developer will then review that PR, and if everything looks good, they will merge those changes into the main branch.
Benefits
There are so many benefits to this approach:
Better communication: As described earlier in the article, this approach removes almost all of that tension that previously existed between designers and developers. It's a real breath of fresh air.
Efficiency: Not having to recreate every change that a designer makes saves huge amounts of time and energy in a project, helping to keep larger projects on track from a time and budget perspective.
Faster iteration: Throughout the project, and especially within the QA phase, designers can jump back into the project, weaving in client feedback and fixing layout issues, saving a lot of time in management and development.
Client review: Instead of looking at static mockups, clients review an iteration of the actual working product right there in their browser. This leads to much better feedback and ensures they're signing off on the real thing, not a re-creation.
Merging of roles: With this process, we are seeing a growing overlap between the designer's role and the developer's role. Designers now produce production-grade front-end code through the AI, without writing it by hand, and developers can use the design system and guidelines put in place by the designer to create great-looking, compliant interfaces. This overlap really helps to keep projects moving as teams change and evolve. It's definitely a good thing.
Focus: Rather than spending hours trying to get a gallery to work in Safari, or tweaking the height of a horizontal rule, developers can now spend more time on building out more unit testing, better architecture, backend logic and complex functionality. The result is a much more mature and robust end product.
Simplified project management: Because designers are committing changes and opening PRs directly in the main repository, the codebase becomes the main single source of truth. Project managers save time by not having to juggle separate Figma statuses against dev tickets or chase down endless handover tasks.
Transitioning
We have used this revised approach on a couple of really big projects recently, and it has made a significant difference. One project in particular presented some huge technical challenges that consumed a lot of unanticipated senior developer resource. If those developers had also had to worry about the front end of the site as well, we would have struggled to deliver the project on time.
There has been a learning curve for our design team. They have had to get used to moving away from a visual interface where they can create, drag and style blocks on the screen, instead explaining their requirements to an agentic AI tool like Claude Code.
It might not be a comfortable place for some designers; however, our team have adapted to it very well and is thoroughly enjoying the pace and freedom that it gives them in the work we produce for our clients.
In summary
Bringing designers directly into the codebase with an agentic AI harness has helped us to eliminate the traditional friction between design and development teams. Designers get the creative freedom to build and iterate on real, browser-rendered interfaces without writing HTML or CSS from scratch, clients get to review and sign off on the actual working product, and developers stay focused on complex backend architecture. There is a learning curve to trading visual canvases for AI prompts, but the payoff in speed, communication, and product quality makes it a workflow that we will be sticking with and evolving for the foreseeable.