All work

One design system for four marketplaces

From a Sketch UI kit to SUI, the shared React design system behind Coches.net, Fotocasa, Milanuncios and Habitaclia, themed per brand and open source.

In short

Problem
Coches.net was moving its web, iOS and Android apps to a new technology stack, and design worked from a UI kit in Sketch with no version control, so designers and developers drifted apart and each marketplace solved the same problems on its own.
What I did
Alongside my growth and retention work, I was one of the people responsible for the design system in the motor vertical: with researchers and designers from every platform we merged several systems into one, built on an inverted triangle structure I proposed, from Sketch with Abstract for versioning step by step until the components were fully customised React components in SUI, themed for each brand.
Result
One shared system served Coches.net, Fotocasa, Milanuncios and Habitaclia. Between 2017 and 2019 the public library grew from about 24 loose components to some 42 organised as atoms and molecules, each brand on its own theme.

The result

The SUI button rendered from the public package in four designs and six colour roles.
Client
Adevinta Spain (Coches.net, Fotocasa, Milanuncios, Habitaclia)
Role
Senior UX/UI Designer, Growth and Retention
Team
Designers and the frontend community across the marketplaces
Duration
2 years
Year
2017 to 2019
Sector
Online marketplaces
Tools
Sketch, Abstract, React, SUI Components
Link
SUI Components on GitHub
Link
SUI Studio, the live component catalogue

Impact

  • 4 marketplaces on one system Brand themes in the public SUI repository
  • 24 → 42 components, now in atomic structure Public repository history, May 2017 to May 2019
  • 3 platforms in the transformation Web, iOS and Android

The problem

Coches.net was going through a technology transformation of its web, iOS and Android apps. Design still worked from a UI kit in Sketch, and Sketch had no real version control at the time: files were copied, renamed and overwritten, nobody knew which version was the latest, and what developers built drifted away from what design had drawn.

The same was true across Adevinta’s Spanish marketplaces. Coches.net, Fotocasa, Milanuncios and Habitaclia had different brands but very similar needs: listings, search, filters, forms, alerts. Each one was solving them on its own.

On top of that, each platform team had started its own design system. Web, iOS and Android each had good ideas, but none of them was the reference.

How do four brands share one system without all looking the same?

My role

I was a Senior UX/UI Designer in the Growth and Retention team. Next to that product work I took part in the technology transformation of web, iOS and Android, and I was one of the people responsible for the design system in the motor vertical (Coches.net). For every component that meant three checks:

  • Definition: does it solve the real need, with the right states and behaviour?
  • Implementation: is it feasible as specified, and does the built version match the design?
  • Library and platforms: is it in the shared library correctly, and does it work when applied on web, iOS and Android?

I validated, managed and tested components against those checks before they reached the products.

From several systems to one

I was part of a team of researchers, interaction designers and UX designers from the different platforms. Each of us had built a design system for our own platform, and for a while we improved them in parallel. After many conversations and shared reviews we agreed to work on a single system, and the question became how to structure it so every designer could use it the same way.

The inverted triangle

I proposed a structure borrowed from CSS: the inverted triangle. The widest layer, at the top, reaches everything and changes rarely; each layer below is more specific and builds on the one above. In practice, a foundation library in Sketch was linked to the components, and every component took its attributes from those foundations instead of defining its own.

FoundationsColour, typography, spacing and elevation in one Sketch library
ComponentsTake every attribute from the foundations, never their own values
AccessibilityContrast, focus, sizes and labels checked on every component
General patternsHow search, filters, forms and alerts behave everywhere
Vertical patternsWhat only motor, real estate or classifieds users need
The inverted triangle I proposed for the shared system: broad and stable at the top, specific to each vertical at the bottom.

Because every designer used the same foundations, the system aligned the team quickly: a change in a colour or a spacing value reached every component that used it, on every platform.

With the structure agreed, we worked down the triangle in order:

  1. Component definitionWhat each component is for, its states, variants and behaviour
  2. AccessibilityContrast, focus states, touch sizes and labels as part of every definition
  3. Interaction patternsGeneral patterns for all products, then the particular ones of each vertical

From the shared base to what each vertical needs.

The last step mattered most. A car buyer, someone looking for a flat and someone selling a second hand sofa are different users with different needs. The shared system gave them the same quality and consistency, and the vertical patterns let each product answer its own users.

From a UI kit to a system in three steps

I did not replace everything at once. Each step fixed the most painful problem of the previous one.

  1. Sketch + AbstractOne shared library with versions, branches and review, instead of copies of files
  2. Shared foundationsColour, type and spacing as variables, components grouped as atoms and molecules
  3. React componentsFully customised components in SUI, the same pieces design used, themed per brand

From files to a living system, one step at a time.

  • Version control first. Abstract gave design what git gave engineering: a single source of truth, branches to explore without breaking the library, and a history of every change. It was the precondition for everything else.
  • Then a common language. Components were organised as atoms and molecules, and their styles moved to shared theme variables. Design and code started to use the same names for the same things.
  • Finally, code as the source of truth. The components became fully customised React components in SUI, so a change made once reached every product that used them.

The library file still keeps the foundations as they were defined: one type scale for desktop and mobile on a 16 px base, six colour roles with a full lightness range each, and spacing, icons and radius on an 8 px base.

Typography scale in Open Sans: headings from Giant to Large and body from Medium to xxSmall, each with its ratio to the base, size and line height for desktop and mobile.
Type scale: every size is the base plus or minus a step, for desktop and mobile.
Colour definition: primary #2B91C1, accent #D57C1B, gray #777777, success #00A544, alert #FF6335 and error #E93E40, each with a full lightness gradation and a compressed version.
Six colour roles, each with its lightness range.
Margins and paddings from 4 to 48 px on an 8 px base, icon sizes from 16 to 40 px, and border radius of 0, 2 px and 50%.
Spacing, icons and radius from the same base. From the SUI library file in Figma.

The public history of the repository shows the change. The library first grew as loose folders, then started again in atomic structure and grew from there.

Components in the public SUI library, every quarter

  • Loose folders
  • Atoms
  • Molecules and others
Components in the public SUI library, every quarter0306090Jan 17: 3 in loose foldersJan 17Apr 17: 21 in loose foldersApr 17Jul 17: 26 in loose foldersJul 1726Oct 17: 40 in loose foldersOct 17Jan 18: 58 in loose foldersJan 18: 5 atomsJan 18: 1 molecules and othersJan 18Apr 18: 65 in loose foldersApr 18: 7 atomsApr 18: 3 molecules and othersApr 18Jul 18: 68 in loose foldersJul 18: 13 atomsJul 18: 4 molecules and othersJul 1885Oct 18: 14 atomsOct 18: 9 molecules and othersOct 18Jan 19: 17 atomsJan 19: 13 molecules and othersJan 19Apr 19: 17 atomsApr 19: 20 molecules and othersApr 19Jul 19: 18 atomsJul 19: 24 molecules and othersJul 1942Oct 19: 18 atomsOct 19: 24 molecules and othersOct 19Sep 2018: loose folders removed,the library continues as atoms and molecules
Counted from the public history of the SUI repository on GitHub: one point at the start of each quarter. Before the change, components lived in folders by topic (cards, forms, tags); after it, by level.
See the data
QuarterLoose foldersAtomsMolecules and others
Jan 17300
Apr 172100
Jul 172600
Oct 174000
Jan 185851
Apr 186573
Jul 1868134
Oct 180149
Jan 1901713
Apr 1901720
Jul 1901824
Oct 1901824

One system, many brands

The key decision was to separate what is shared from what is brand. Behaviour, structure and accessibility live in the common components; colour, typography and other brand values live in a theme per marketplace.

LayerWhat it holdsShared by
ComponentsAtoms and molecules: buttons, inputs, selects, cards, alerts and more, with their behaviourEvery marketplace
Common themeThe variables every component reads: colour roles, type scale, spacing, radius, elevationEvery marketplace
Brand themeThe values of each brand for those variablesOne per marketplace: Coches.net, Fotocasa, Milanuncios, Habitaclia

That way Coches.net still looks like Coches.net and Fotocasa like Fotocasa, but a fix or an improvement to a component reaches all of them at once.

The same button component, rendered from the public packages with two themes: the base theme and the Milanuncios theme. Colour, radius and type change; the component does not.

Buttons with the SUI base theme: blue primary, orange accent, square corners.
Base theme
The same buttons with the Milanuncios theme: green primary, yellow accent, rounded corners and Verdana.
Milanuncios theme

Close to frontend

Throughout the project I worked very closely with the frontend developers. That taught me how they needed things and how design had to be prepared so the handover caused less friction. It changed the way I delivered work:

  • The same names as the code, so a component or a variable meant the same thing in Sketch and in React.
  • Values from the theme, never loose values, so what developers received already matched the variables they used.
  • Every state and edge case in the definition, so fewer questions came back during development.

That closeness is also what made the move from Sketch to React components possible without losing what design had defined.

Those values are still in the code. The default theme of SUI today uses the colours, font and scales defined in the library:

In the libraryIn the SUI theme today
Primary #2B91C1$c-primary #2b91c1
Accent #D57C1B$c-accent #d57c1b
Gray #777777$c-gray #777777
Success, alert, error #00A544, #FF6335, #E93E40$c-success, $c-alert, $c-error with the same values
Open Sans$ff-sans-serif Open Sans
Type base 16 px, steps of B + 12, + 8, + 4, + 2, − 2, − 4, − 6$fz-base 16 px, with the same steps
Spacing base 8 px, from 4 to 48 px$p-base and $m-base 8 px, from 4 to 48 px

In the library, each component was defined with all its states before it was built. The button sheet covers primary, secondary, tertiary and accent buttons, with icons, in normal, hover and disabled, on light and on brand backgrounds.

Button sheet from the SUI library: rows of primary, secondary, tertiary and accent buttons in normal, hover and disabled states, with and without icons, on a light background and on the blue brand background.
The button as defined in the library, before the code.

Design decisions became props in code. The button has four designs and six colour roles, and each one is a value a developer passes, not a new component.

The SUI button in four designs (solid, outline, flat, link) and six colour roles (primary, accent, neutral, success, alert, error).
One component, 24 combinations, each chosen with two props: design and color.

Open by default

SUI is open source. The code, the history and the brand themes are public on GitHub, and SUI Studio shows the live catalogue. That openness was part of the model: proposals and bugs were discussed in the open, and every package had its own version, so a team could upgrade a component without waiting for a global release.

The code is the work of Adevinta Spain’s frontend community. My part was on the design side for the motor vertical: starting the system in Sketch, versioning it, validating and testing each component for definition, implementation and use on every platform, and keeping design and code aligned while it moved to React.

Every component is its own package with its code, demo, tests and changelog in the same place. The button also keeps its original definition, the spec design wrote before the code.

components/atom/button/

  • SPEC.mdThe definition: purpose, types, sizes and rules, with its status, version and owners for UX, UI and front end
  • README.mdHow to install and use it
  • src/The React component and its styles, which read the theme
  • demo/The live examples in SUI Studio: design, colour, size, accessibility, keyboard
  • test/Automated tests
  • CHANGELOG.mdEvery version, published on its own

The button package, as it is on GitHub today.

Decisions and trade-offs

1. One system instead of one per platform. Web, iOS and Android each had a design system with good ideas, but none was the reference.

Trade off: Each platform team gave up its own system. Gain: One reference for every designer and developer across the four marketplaces.

2. Step by step instead of a big rewrite. Abstract first, then shared foundations, then React components in SUI.

Trade off: A slower path than replacing everything at once. Gain: Each step fixed the most painful problem of the previous one, and the teams kept shipping.

3. Shared behaviour, brand in themes. Components hold behaviour, structure and accessibility; each marketplace has its own theme.

Trade off: Less brand freedom inside the components. Gain: A fix to a component reaches all four brands at once.

What I learned

  • Alignment comes from conversations, not files. One system only worked once every platform team had shaped it together.
  • Version control is a design problem too. Until design had history and branches, every other improvement was fragile.
  • Separate brand from behaviour early. Themes let several brands share one system without anyone giving up their identity.
  • Move step by step. Each step made the team’s work easier right away, which is what kept people using the system while it was still being built.
  • Sit with frontend. Understanding how developers need things is the fastest way to remove friction between design and code.