On our first attempt with Figma’s MCP, fixing the agent’s output cost us more than starting over from scratch. That review gave rise to a concrete question: how to transform the complexity of the design system in the projects we manage into an agentic workflow. To answer it, we had to go back to the origin of that design system, because the agent’s mistake stemmed from the way design had always been handed off to development.
Davide Salvadori (Head of Design & UI Designer) and Enrico Sato (Drupal Front-end Software Developer) have worked together for several years on SparkFabrik projects, and they shared their journey in the talk “From Figma to code: an end-to-end agentic workflow for the front-end”. The talk took place at our event Talks on my Machine: AI Native Engineering1 and is also available in video.
From PSDs to semantic tokens: the design system as a necessity
Ten, fifteen years ago, large quantities of PSD assets arrived at our front-end. They were exported from Photoshop, software created for other purposes: layers, sliced PNGs, gradients, material far removed from today’s tokens. Then came Adobe XD and Sketch, introducing the first stored variables, which were still unorganized. Today we use Figma, and it is with Figma that we have come to manage token semantics as well.

For years, the handoff between design and development worked in silos. As Davide explains, “we would close our design round, and Enrico would receive the output” for front-end implementation. However, on the development side, values turned out to be inconsistent, leaving the developer to inspect every artboard with a magnifying glass, always uncovering surprises. A variable was usually 24, but in a card it showed up as 32, in an adjacent component it was 28, and there were five or more greens across different parts of the site, all similar yet with different hex codes. And before release, values could change once again.
At this stage, hex codes and other values were already named tokens, but they lacked a semantic meaning translatable into the codebase. Realizing this was the first turning point. A named value says what it is, a green or a 24, while a semantic token says what it is for. Only then does development know where to use it2. On this distinction rests design token governance, and on this distinction we subsequently built the design layer.

We needed a design system out of a practical necessity, when we transitioned from small-scale websites to multi-site, multi-brand, multi-language, and multi-touchpoint ecosystems. In these ecosystems, the rules and relationships between variables allow the product to adapt based on design and technical choices, such as a change of mode or brand. We needed the design system to keep products within the same ecosystem consistent with one another. Without shared rules, this consistency collapsed. (Read also the whitepaper: Accessibility and Design System.)

The first attempt with Figma’s MCP and the review that dismantled it
Over the past year, the way we develop software with AI has evolved repeatedly. From early custom prompts in IDEs, we shifted to connectors, then to agents, autonomous agents, and development and design tools like Figma Make and Claude Design. The Model Context Protocol (MCP) is a connector that exposes a tool’s content to an AI agent. In the case of Figma, it seemed like the tool that would enable an agent to pull data from the design file and work autonomously.
A few months ago, we tested it. We configured Figma’s MCP with a detailed prompt specifying the design system file, the starting node, the component to build, instructions, and objectives. The agent completed the task without apparent hitches, identifying the elements and generating the code.
The review revealed a very different picture. We found colors outside the design system, hardcoded values, and broken layouts on several breakpoints. States were missing because the agent had not detected them, and naming differed from Figma. Correcting that output cost us more than starting over from scratch, which meant redoing the work manually as in previous months.

The root cause lay in the kind of access MCP provides. The agent sees the file but not the meaning behind the data: it reads values, but does not know which are tokens, which are exceptions, and which are shared decisions. This issue is especially pronounced in Figma files and codebases built up to that point by humans for humans. As Enrico reiterates, “having this access to data does not mean understanding it immediately and knowing what to do with it.”
Where things are unclear, the agent proceeds anyway. It produces something and attempts to achieve the goal via whatever path it chooses, often the shortest one. This behavior is far from a hallucination, since the chosen path is consistent with the assigned task, but fundamentally different from how we intended to build that component. We concluded that data alone is not enough and that a clear context around the model was needed, capable of enabling it to complete the task effectively.

Our goal went beyond visually correct pages. We were looking for a solid, distributable, and maintainable design system over time. That is why we decided to overhaul the entire workflow, from start to finish.
Starting from the end: review as the first piece of the harness
We started from the end of the workflow: the review phase. Even before that, however, we mapped out the points where the old process generated divergence.
Design crafts the experience, development builds it and makes it usable. Between them lies the handoff, the bridge connecting design work to the front-end. In the old workflow, variables were declared to serve design needs, but did not map one-to-one to what development required. Furthermore, component variants ignored the impact on code-side foundations. And handoff was manual: every change to foundations, no matter how small, had to be mapped, tracked, and communicated, with the risk of losing details along the way.
On the development side, this meant retrieving the design system and reconstructing its values through a painstaking, manual investigation. The result was prone to errors, so in the end a collaborative review between design and development was often necessary. The critical issue is that where design and development act as interpreters, divergence can arise. And an agent placed in this context can neither understand nor manage that divergence.
That is why we introduced agents one step at a time, starting from the end. Review became the first piece of the harness: the set of context, instructions, skills, checklists, and checks we build around the model so it can complete the task. Our quality standards originate in the review.
“The artificial intelligence can do the checking, but the criteria used to check specific things remain ours.”
At first, we still used custom prompts in VS Code. We turned the checklists that each of us used to verify manually into prompts, and during the initial iterations, we spotted things the agent missed. Then the agent began catching things we had overlooked. After countless iterations, agentic review surfaced real gaps and became our first solid agentic context.

With the verification of the end point delegated to an agent, we took a step back in the overall process toward front-end development on Drupal. We started with the first Single Directory Components (SDC), the format Drupal uses to gather templates, styles, and component definitions into a single folder, making integration between design systems and Drupal more direct. Then we created and tested our initial skills and moved on to the implementation data structures. We built end-to-end tests and visual regression tests agentically, leaving final verification to the review workflow. The individual steps worked, but chaining them together was far from simple.

Showroom and the design layer: an interpreter between Figma and code
The most challenging part of the workflow was the bridge between design and development, because the information originating in Figma did not speak the language of code. Previously, that gap was bridged by conversations between designer and developer. We needed a conversion and translation layer to make design information usable and understandable for code. The starting point was using identical naming conventions and logic on both sides. If design rearranges or edits a variable collection, development needs to be able to do the same, and we evaluate its feasibility before proposing it.
On this bridge we built Showroom, an in-house tool we created that acts as an interpreter between design and development. Showroom does not simply export Figma variables: it describes the entire design through metadata, including colors, spacing, fonts, text groupings, buttons, images, and logos. This collection of metadata is what we call the design layer.

The design layer gathers five types of information:
Tokens in DTCG format: JSON files with tokens in the format defined by the Design Tokens Community Group, a group formed within the W3C that produced the standard for design tokens3.
Semantic groups and relationships: brand green stops being just a code and becomes the primary action color, and the button background references that color instead of a raw value.
Component spec sheets: variants and states for each component, alongside tokens.
Web catalog: the design layer can be inspected directly in code and via a web catalog accessible to both design and development.
Versioning: at any given moment, we have an exact snapshot of what has been produced in design.
With this information, the nature of the task assigned to the agent changes. The rule we need is already written into the design layer, so it does not have to be repeated in every prompt.
“An agent reading this design layer no longer has to invent anything, because the design team has already made that decision.”
If something is missing from the design layer, it is missing from Figma as well, meaning the agent should not create it. We wanted the design layer to be framework-agnostic, which in our case is Drupal, so a single design can serve multiple applications, websites, and technologies. The single source of truth remains Figma, because it is the entry point for many processes and where any enhancement becomes tangible, shared with development, stakeholders, and clients.
Previously, every design update had to be communicated manually to development. The most tangible result is that updates now reach the developer automatically and accurately, without anyone needing to hunt them down. This applies to colors and spacing, typography, viewports, and breakpoints, with seven or eight screen sizes to produce each time. Beyond the UI deliverable, Figma’s output has become a metadata documentation layer that development consumes and interprets seamlessly.
Guardrails on the design side too: plugins, audits, and exception governance
The design layer solved the handoff to development. On the design side, however, the risk remained that the design system might proliferate with variants, exceptions, and new additions. A simple prompt was not enough to steer agentic generation within these rules, so we built an internal tool for design as well.
The design plugin parses the information required to enforce the rules during agentic generation. We tested it directly on active projects. It understands the foundations, builds components by reusing existing ones wherever possible, and composes responsive pages across all screen sizes that developers previously had to request manually. The plugin suggests design system updates, but a human always approves them4. Generation extends to clickable, interactive prototypes deliverable to development, stakeholders, and clients alike, and design file normalization is now handled by the agentic pipeline as well.
The same package runs audit checks before work leaves the design phase. If a component uses a non-existent token, the issue surfaces during the design process and never reaches development. A component moves to development only after passing a design checklist.
If you manage an ecosystem with multiple stakeholders requesting custom components, requests that fall outside the rules become the friction point. When a client asks for an off-standard component, we do not add it as a one-off custom feature just for them. The request enters a governance pipeline we defined. We convert it into a feature available across the entire ecosystem, evaluate it, and standardize it for other touchpoints that might benefit from it.
The goal is a library without duplicates or redundant elements that do the same thing, where new components are added only when genuinely needed. In an ecosystem with many sites and multiple stakeholders, what one client adds for a specific need feeds into a shared catalog that grows for everyone.
On a project with 20,000 live pages: today’s workflow and open areas
We rebuilt these foundations on an active production project with 20,000 live pages and teams actively working on it, rather than on a sandbox POC5. Users continued browsing while we dismantled and rebuilt the foundations, needing to push new updates to production daily, “without knocking a single picture off the wall.” Precisely because mistakes were possible, we checked and tested the workflow repeatedly.
Today the workflow moves through distinct steps:
- Design develops the update, whether a new element or a change to an existing one.
- Once the update is decided, a tool exports the data, generates the design layer, and provides the necessary information without any manual searching.
- Development starts from the design layer and relies on the harness we built.
- Review relies on checklists, verification skills, and design layer data, giving agents concrete information against which to validate the work.

The main takeaway is the manual work we no longer do. Metadata is shared between design and development without human intervention and without the errors of manual handoff. After exporting to the tool, no further data in Figma is touched, and we proceed straight to build, release, and review. Previously, in Figma’s design mode, every component had to be built and declared by hand, and anyone creating a new one a month later was left guessing about consistency. To get here, we had to build guardrails that grew increasingly solid over time.
The process gave us a major boost, and every day we find another piece to refine. Having broken down the workflow and tackled individual elements, we are now focusing on chaining the steps together, from UI and design system all the way to development and final reviews. In our experience, the more complex the task, the longer the chain, and the more you need solid foundations and checks at every step. Without checks, errors from earlier steps accumulate at the end, making them much harder for people to resolve.
In the handoff from design to front-end, several areas are still being stabilized. Take a hypothetical scenario: icons, images, and textures seem simple enough, until you have to make them work across 200 components with 18 tone variants each. That is why we are standardizing the management of assets, media, ornaments, decorations, and brand customizations across design systems. The goal is for the tool to interpret them so updates reach development automatically via merge requests, without manual intervention.
The entry point is also open to evaluation. Today it is Figma, but the tool itself could change in name or nature. Figma is useful because, beyond defining the rules, it makes them visible, whereas those same rules could live in a package or a markdown file passed to development.
Solid foundations, multipliers, and where to start
What we built reflects about a year of rapid tool evolution. Over that year, things worked when the workflow was clear, governed, and the team was capable of revisiting, taking apart, and restructuring it. This is the same way of working we bring to UX, UI, and design systems projects, where design and development collaborate within the same teams.
“For us, building solid foundations does not mean making a process rigid. It means structuring the areas where ambiguity could lead down the wrong path, while leaving freedom where it is needed.”
“The serum amplifies everything that is inside, so good becomes great; bad becomes worse.”6 These tools are massive multipliers. Where context, codebase, and process are sound, order turns into a clear and effective structure; where there is disorder, disorder spirals into chaos.
If you want to replicate this journey, here is the order that worked for us. First, give the agent your review criteria by turning the checklists you currently verify by hand into prompts. Next, align naming conventions and logic between design and code, so that a collection or variant means the same thing on both sides. Only then should you build the layer that provides semantic meaning to values, starting with the primary action color rather than its hex code.
Each step took time, and we did it on a live project, not in a sandbox. If you want to tackle this for your own design system, we can begin together. Through the AI Native Journey, we support teams through this process, one step at a time. Contact us to tell us where you want to start.
Notes and sources
The talk “From Figma to code: an end-to-end agentic workflow for the front-end”, presented by Davide Salvadori and Enrico Sato of SparkFabrik, was part of edition 05 of Talks on my Machine, dedicated to AI Native Engineering. It took place on November 13, 2026, and is now available on YouTube. (source: Talks on my Machine: SparkFabrik’s tech event series) ↩︎
At SparkFabrik, we use design tokens to label values semantically: instead of defining a color as a hex code (#EB0000, our Spark Red), we call it, for instance, primary-main-heading-color, so changes propagate to all components using that token. (source: integration between design systems and Drupal) ↩︎
The design token standard is maintained by the W3C Design Tokens Community Group. (source: Design Tokens Community Group) ↩︎
According to our AI Native approach. (source: develop software with AI) ↩︎
The agentic workflow we use at SparkFabrik starts from the Figma file and extends through review, on real projects. It is the latest step in years of collaboration between design and development. (source: AI Native Engineering) ↩︎
From the movie “Captain America: The First Avenger”. ↩︎
Video source
This article is based on the video “Da Figma al codice: un flusso agentico per il frontend | Talks on my Machine”.



















