DesignOps in action: automated token delivery from Figma to Drupal
Learn how Figma variables sync with Drupal using automated tokens, multibrand setups, and smooth workflows that keep design and code always aligned.
Introduction
Keeping design and code in sync is one of the biggest challenges in modern digital projects.
Usually, Figma designs become outdated within a month after a project’s release. While code evolves, design often lags behind. For a business, maintaining alignment between both worlds is crucial for consistency and efficiency.
To solve this, we built an automated workflow between Figma and Drupal, powered by design system tokens that are exported from Figma to Drupal. Design tokens are the most important part of a multi-brand design system. They are all the values needed to construct and maintain a design system — spacing, color, typography, object styles, animation — represented as data. These can include anything defined by design, such as a color in HEX format, an opacity as a decimal value, or an animation using an ease function.
This setup allows designers to make updates once in Figma and see those changes automatically applied across all Drupal themes — saving time, reducing manual effort, and minimizing human error.
In general, all processes can be effectively analyzed and documented within a DesignOps framework.
Figma Variables structure and export plugin
Multibrand setup in Figma and Drupal
There are two main approaches to organizing a multibrand scalable design system: one Figma file with multiple modes and multiple Figma files with a Core Design System.
Building tokens with Node.js
To automate token generation, we use a custom Node.js script. It takes exported Figma JSON tokens and converts them into CSS variables for each theme and component.
Figma–Drupal automation
Three workflows are possible for connecting Figma and Drupal, depending on the level of automation needed. This flexibility is essential for teams building scalable design systems.
You can choose the workflow that best fits your team’s needs and infrastructure.
Release circle
The release process ensures that every design and code update is consistent, traceable, and aligned across all brands.
- Task created with design requirements.
- Figma updated — a new component is added or an existing one is modified.
- Tokens exported from Figma and imported into the Design System.
- Developers implement a new component and assign the corresponding variables.
Review a new component in Storybook — verify the component and test accessibility.
Once components are built, the pipeline runs automated accessibility tests. Tests cover color contrast, keyboard navigation, ARIA attributes, and other WCAG compliance rules. Any accessibility issues are flagged before merging or deployment.
- Deploy the component to Drupal and configure any new backend fields if needed.
- Test the component within the Drupal environment.
- Deploy to production once approved.
Every change in this process is traceable, versioned, and consistent across all themes and environments.
This ensures that every change is not only visually consistent but also accessible, improving product quality and reducing manual testing effort.
Conclusion
Using Figma variables and design tokens allowed us to create a smooth, automated bridge between design and Drupal.
Design updates are instantly reflected in the codebase, reducing manual effort and improving reliability.
Designers, developers, and product teams now work in perfect sync, making everyone’s job a whole lot easier. If your organization is planning to streamline its design system workflow or build a scalable design system from the ground up, Attico’s team can help you.
Related insights
Let's start with a complimentary consultation
Whether you have a small urgent task, or a large ambitious project, we can help