Work / Banco Sabadell

From inconsistent values to a three-level token system

How I tokenised Banco Sabadell's Galatea design system for light and dark mode across four breakpoints, set up its token engine, and documented its Foundations so design and development share one language.

Client
Banco Sabadell
My role
Token architect, token engine set-up and author of the Foundations documentation
Team
Sngular: Elliot Ackland and Irene Vega (Product & Design Systems Experts), Jon Rojí (Front-End Lead), with Banco Sabadell's Galatea team
Scope
Foundations, Figma libraries, components and documentation
Stack
Figma, Style Dictionary, JSON to CSS
Public reference
Sngular case study
Pages from the Galatea token documentation, showing the three token levels and the Style Dictionary token engine.

The challenge

Galatea launched in 2020 to unify design at Banco Sabadell, Spain’s fourth-largest bank, and it grew faster than its structure. When I joined, three problems stood out:

  • Inconsistency. The same visual decisions were applied in different ways across the system.
  • No room to scale. The structure could not absorb new themes, screen sizes or products without rework.
  • Accessibility. Several colour pairings failed contrast ratios.

The trigger was a change in how Galatea was organised, from an atomic model (buttons, inputs) to one based on function. That exposed weak links between design and development, especially in naming and organisation, and a library structure that was hard to scale.

My role

What My part
Token architecture: levels, naming, modes Owned
Token engine (Style Dictionary) Owned
Foundations documentation Owned
Library restructure into four libraries Joint decision, drawing on earlier design system experience
Components and their documentation Built with the team
Governance and contribution model Collaboration
Validation plugin Built by a developer on the team

The token architecture

I organised Galatea’s tokens in three levels, and only the upper two are ever consumed.

Diagram: level 1 base tokens are not consumed by design or code. Level 2 semantic tokens resolve light and dark mode across four breakpoints. Level 3 component tokens cover exceptions. Published tokens go from JSON through a Style Dictionary token engine into CSS and then into components in production.
Galatea's three token levels and the token engine.

Level 1, base, holds raw values. Galatea defines them but does not hand them to designers or developers: components are never styled directly from a base colour or type value.

Level 2, semantic, is where decisions live. A name like gamma-light-color-action-background-selected says what the colour is for, not what it looks like (gamma is the design system’s namespace). This is where light and dark mode and the four breakpoints (mobile, tablet, desktop, widescreen) are resolved, so a theme or screen change reaches every component with no redesign or development work.

Level 3, component-specific, is used only when a component needs an exception a semantic token can’t express. It keeps those exceptions visible instead of hiding them as overrides.

I set up the token engine on Style Dictionary: it takes the tokens as JSON and generates CSS that developers consume directly. The tokens are platform-agnostic, so React, Vue and Angular teams can all consume them.

“Conseguimos que el sistema fuera realmente agnóstico en cuanto a plataformas.” We made the system truly platform-agnostic.

Quoted in Sngular’s article on the project.

Foundations documentation

I wrote the Foundations so that designers understand the reasoning, not just the values. Each token level is explained with its benefit and its drawback, so teams know when a component-specific token is justified and when it only adds maintenance.

The documentation also covers:

  • Elevation: four levels (flat, raised, floating, hovering) as surface tokens, with guidance on choosing one by where a component sits and how much attention it needs.
  • Component documentation rules: a description and search tags on every component set, a link to its documentation, and “Simplify all instances” switched on so designers don’t override auto layout or colour.
  • Step-by-step guides, such as swapping a file’s Foundations library for another one.
Galatea Foundations documentation: elevation levels, component documentation rules and a guide to swapping the Foundations library.
Foundations documentation: elevation, component documentation rules and the library swap guide.

Libraries and governance

Together, the team split Galatea’s original library into four: Assets, Core Components, Foundations, and Pages & Templates. Foundations sit in their own library, so a file can switch to another set of Foundations without touching its components. All libraries were reconnected to the new structure.

The system is kept healthy by a governance model with clear roles, which I worked on with the team. A core maintainer team handles construction and QA, DS Heroes in product teams spread good practice, and DS Users bring requests. A satellite team adds expertise on demand, and a strategic forum of design, development, brand and architecture leads sets direction. Contributions follow five steps: conversation, assessment, collaboration, revision and publish.

A validation plugin, built by a developer on the team, compares a design’s components and styles with the official libraries, gives it a percentage adherence score and flags detached or custom elements. Universal adoption of the plugin is now a KPI.

Galatea governance slides: the maintainer team, DS Heroes and DS Users, the satellite team and strategic forum, and the five-step contribution process.
The governance model and contribution process.

Outcome

Galatea now has one token structure that serves light and dark mode on four breakpoints. Developers consume generated CSS instead of copying values, so a design change reaches code without redesign or rework. Colour pairings are defined at the semantic level, where contrast can be checked once and applied everywhere.

Sngular’s published case study reports better visual and functional consistency, more autonomy for design teams and fewer manual reviews for the core Galatea team. The bank projected significant savings from 2024, and design debt in later development stages is kept to a minimum.