Design systems, from repeating code to a reusable and accessible modular system

At RailNetEurope, the app was designed mostly in code, without shared components. At InPlayer, there was no component library, so we built our own on Chakra UI, in code and in Figma. At JWX, good coded components existed, but design and code weren’t connected, components were used inconsistently, and engineers spaced every page by hand. I treat a design system as an internal product, with designers and engineers as its users: it gives teams accessible patterns, saves engineers from rethinking the styling and UX of every component, and documents how the pieces work together as one environment.

This is how it went across three products, from a pattern library to full design systems.

Pages from design system documentation: color palettes in purple and blue with their contrast ratios, a typography scale, and form and pagination components.
Pages from design system documentation: colors, typography, forms and pagination

RailNetEurope at Netcetera, 2014 - 2017

I was the UX Architect on RailNetEurope’s Path Coordination System, an internal web app for planning international train routes.

2014 - 2015. The project started with wireframes in Balsamiq and was mostly designed directly in code. I proposed component-based development even then, but we didn’t have time to develop it.

2016 - 2017. We added coded prototypes and usability testing, and another designer joined me. We started working with components in code and put the designs together in Figma, first without components and eventually with them. I pushed for the first Angular pattern library and we built internal component documentation similar to Storybook.

Read the full story: Redesigning a web application for the European railway network ↗

Two images side by side. On the left, the inbox of the legacy Path Coordination System web app in 2013: a dense page of search filters above a long list of dossiers in a table. On the right, people sitting around a table in groups, working on paper during a workshop with users.
The legacy PCS inbox in 2013, before the redesign, and a workshop with its users
The RailNetEurope pattern library: a navigation menu on the left, and on the right a buttons page showing basic, primary, secondary, success, info, warning and danger buttons, buttons with icons, small and big buttons, disabled states, a block button and a segmented control.
The RailNetEurope pattern library: not yet a full design system

InPlayer, 2022 - 2023

As Director of Design, I led a team of 4 designers building a design system with Chakra UI. At RailNetEurope we had built the components ourselves. At InPlayer we built on Chakra UI, a well-executed open-source library that already used tokens.

Six screens of the old InPlayer dashboard in a grid: a pale blue login page with a green button, a list of video assets with blue summary boxes, a settings page with blue and orange buttons, analytics with red, blue and green tiles, a paywall preview with a green Buy button, and a page builder with a concert photo.
The InPlayer dashboard in 2021, before the redesign: different colors, buttons and layouts from page to page

The system included components, tokens and Storybook documentation. Chakra UI didn’t have a well-composed component library in Figma, so we built the Figma components from scratch. All four product teams working on the new dashboard adopted it, and within six months we built prototypes of the redesign and an MVP of the redesigned product. We wrote about it in two articles.

Video · 1:48 Watch the InPlayer onboarding prototype See the design system in action: a walkthrough of a flow put together with its components
A diagram of how a design token travels from Figma to the InPlayer dashboard: a button's system token is exported as JSON with a design tokens plugin, stored in GitHub, turned into a JS file with Kire js, applied to the Chakra UI components in a default theme and a custom theme, and shown in Storybook as design and developer docs, so the buttons in the dashboard match the Figma ones.
How a design token travels from Figma to the InPlayer dashboard

JW Player and JWX, 2023 - 2026

As Design Director, I led a team of 4 to 12 designers across three countries through an acquisition and a merger. A library of coded web components, WUI, already existed, so we built on it. We started the design system in Figma from scratch and overhauled the coded components: we connected all of them to the Figma variables, made them responsive, improved accessibility and added more specific layout components. We also redesigned how some components work to improve usability, and improved Atlas, our internal documentation.

Before and after, side by side. Before: a standard button and a red primary button, with a checkbox and a radio button. After: the same elements in blue, so the red color is left for dangerous actions.
Before and after: the primary button was red, which made standard and dangerous actions hard to tell apart, so we adopted the blue color from the checkboxes and radio buttons

I led the design-system initiative and its architecture, with Mihaela Vodeb as the lead designer and the whole team contributing. The components fully support dark mode across whole pages, and we made sure it’s accessible, although it hasn’t been rolled out to customers yet. Mihaela wrote about the work in two articles.

Two documentation pages side by side, one for light mode and one for dark mode, both titled contrast ratios. Each lists swatches for grey, blue, red, orange and green with their contrast ratio and WCAG level (AA or AAA).
Contrast ratios for the colors in light and dark mode, with their accessibility levels

Spacing and layout

Engineers used to build layouts with wuiBox, a flexbox container where anyone could add any spacing, which led to a lot of inconsistencies. I worked on the architecture that replaced it: the spacing variables with a semantic layer on top of the primitives, the rules for applying them to the components, and the layout components (wuiLayout, pageContainer, pageHeader and pageTemplate). Engineers no longer had to think about spacing and background colors, which made handoff faster and pages more consistent.

A comparison titled Building a form, Figma versus code. On the left, a form in Figma built from layout components: text groups with a heading and description, and form sections with labeled inputs, separated by dividers. In the middle, the same form with the layout components highlighted on top of it. On the right, the matching code: nested layout components of type text-group and form-section, with dividers between them.
Building a form with the layout components: Figma next to the code (open full size)

Contribution

Any designer could add a component in a Figma branch and any engineer could open a pull request, as long as they followed the existing architecture and best practices and got approval from the Core team, who own the Figma file and the codebase. Teams were no longer blocked by the Core team, and the review still protected quality. A Visual QA step between code and QA review kept the design standard high with each release. More recently, we adjusted the documentation for AI agents, which helps anyone build consistent prototypes directly in code.

All product teams adopted the system, along with teams building internal tools and side projects. We expected the share of the dashboard’s UI code that uses it to rise above 50%, with the rest staying custom for business logic. The dashboard it was built for is described in my work on the JWX customer dashboard.

About 42% of the dashboard’s UI code now uses design system components.

Measured by the lines of code that use the components
Documentation pages for the JWX design system in Figma: form layout components with their variants and code examples, specs for spacing, a page of upper-level Figma tokens, and color token swatches for system, error, warning, info, success and neutral.
Documentation for the JWX design system in Figma: components, specs for designers and developers, and tokens (open full size)

Looking back

I’m proudest of the design system we built at JWX, because it keeps paying back: every new feature starts from a stronger base, and the team can focus on real problems instead of rebuilding the basics. The layering of the tokens allowed flexibility while keeping consistency, and responsive layout components let us refactor pages for smaller screens quickly, like the mobile upload flow. If I did it again, I’d track adoption from the start, to see how it grew.

Read in detail