Case study · Upside Business Travel

Purple Design System

Team member in building a company's first design system.

Deliverable
Design system
Team
3 product designers
Client
Upside Business Travel
Date
Jan–Aug 2021

Purple was Upside Business Travel's first design system, and my first time building one. It started with a practical problem: the design team was moving from Sketch to Figma, and the old Sketch library didn't survive the trip. Two other product designers and I took that moment to ask a bigger question. What would it take for designers and engineers to share one language?

Over eight months we listened to designers and developers, studied how design systems are built, tested three different ways to structure the library, rebuilt Upside's foundations, components, and travel patterns in Figma, planned a documentation site, and audited the product for accessibility. Upside closed before we could launch everything we planned, but this project is where design systems and accessibility came together for me.

Cover of Purple's documentation site
Purple's documentation site
Overview

Problem definition and context

The Upside design team made the move to Figma at the beginning of 2021. As we brought our Sketch files into Figma, we realized that the Sketch library was not very comprehensive or consistent.

Two other product designers and I started meeting with designers and developers to learn about their process and the pain points of shipping a product. Besides the lack of components and organization, we learned that there was a lot of inconsistency between the designs and the code. There was a lot of discordant implementation. We suggested creating our first design system: a universal language that would benefit designers and developers.

Nobody asked us to build a design system. We saw the migration as an opening, made the case for it, and then had to earn the time to do it alongside our product work.

Approach and solution

To create a universal language for designers and developers!

1. Styles, components, patterns, and pages in Figma

Patterns are a solution to a commonly recurring problem. Having a framework available would save designers time, so they don't have to constantly rebuild repeating elements and can focus their time on problem solving. Our approach was to build from the ground up, with a similar idea to atomic design, but more compatible with our own elements and building blocks of design.

2. A documentation site

The main goal here is consistency. This site would bridge the gap in understanding between designers and engineers while streamlining handoff to developers. Engineers were using Material UI, though there was still a lot of hard coding. A later phase of this project would be to break away from a structured design framework, such as Material UI, and establish our own.

3. A standard for adoption and measuring success

The design system is a tool designers and developers will be using. How do we know if what we are building is helpful? If designers are using components correctly? How do we create a method for creating new components? All of these are questions we constantly asked in our Design Systems guild. Though we did not get a chance to implement these next steps of adoption, it was something we found very important to keeping our system useful and functional.

Customer and business impact

  • Have a universal place for design and code consistency.
  • Create a way to easily work on "white label" products.
  • Designers will save time wireframing, and engineers will save time coding!

My role

Team member in a group of 3 product designers.

This grew into a small team of designers and engineers. We advocated for a product manager to join our guild, but there wasn't the bandwidth at the time. So we took it upon ourselves to set goals and timeframes to measure our success.

Research

Brainstorming and ideating

Listening to the pain points of designers and developers was the first step in understanding the problems we needed to solve.

"My designs aren't being deciphered correctly. When I am looking for a component, I am not sure where to find the correct one and the standard styling information."

Product designer

"I implement the designs I am given, but they do not always adhere to what is available in the system. I often hardcode items when I don't have time to find the best solution."

Developer

Those two quotes describe the same gap from opposite sides. Designers couldn't find the right component, so they made their own. Developers received designs that didn't match anything in code, so they hardcoded them. Each workaround made the next one more likely.

Reading and conceptualizing

We wanted to become more knowledgeable about how design systems are built. Through the process of atomic design, we structured Purple around the concept of building smaller pieces to form components and templates.

What we did differently was structure our system according to our product and vision. The best way to do this was through the different personas and customer journeys our users and product go through to achieve their goals.

So how do we formulate our component library?

We mapped out three possible structures in FigJam before committing to one. All three shared the same four tiers, borrowed from atomic design but named for how Upside's product actually worked:

  • Tier 1 components: building blocks like buttons, fields, and chips.
  • Tier 2 patterns: more complex components used globally or to build inventory-specific components, like tables, menus, and text inputs.
  • Tier 3 templates: inventory-specific components, like flight, hotel, and car inventory cards, the trip details edit bar, and airline avatars.
  • Tier 4 pages: full layouts, like the homepage, the flight inventory table, and the hotel detail page.

Where the options differed was how the files were organized in Figma: one shared design system document, files split by line of business and product area, or separate projects per product with desktop, iOS, and Android documents.

Proposed structure C: one Upside Design System document with pages for UBT Desktop and UBT Native
Proposed structure C: one design system document, with pages for desktop and native
Proposed structure B: team or line of business, then project or product, then file
Proposed structure B: line of business → product → file
Proposed structure A: a Foundations project plus separate projects for each product, with desktop, iOS, and Android documents
Proposed structure A: Foundations plus a project per product, split by desktop, iOS, and Android

Component library

We decided to organize our component library around a workflow of "jobs to be done."

The library was split into three Figma files: Foundations, Components, and Patterns. Each file cover showed its status at a glance, with a check when it was ready to use and a tools icon while it was still being built.

Figma file covers for Foundations, Patterns, and Components, with status icons
Foundations, Patterns, and Components in Figma

Foundations: the styles and assets that define our product

Purple's color palette
Palette
Purple's typography styles
Typography
Purple's color styles
Color

Components: the building blocks of our patterns

Label component from the Figma component library
Label component
Button component from the Figma component library
Auto-width button component
Alert component from the Figma component library
Inline message component

Patterns: larger components and templates

Templates
Navigation
  • Global (layout, header, footer)
  • In-page navigation
Shopping
  • Trip search
  • Flight
  • Hotel
  • Rental car
Checkout
  • Right rail
  • Review
  • Purchase
  • Itinerary
Manage
  • Trips
  • Reporting
  • Settings
  • Profile
  • People
  • Preferences
  • Company settings

These groups follow the traveler's journey: get around the product, shop for a trip, check out, and manage what you've booked. Organizing patterns this way meant a designer working on checkout could find everything checkout needed in one place.

Trip search template

The trip search form is the first thing travelers see on the home page. One key component handles flights, hotels, and rental cars, with round trip, one way, and multi-city options. Each variant shows only the fields that trip type needs.

Key trip search form component for search options on the home page
Key trip search form
Key options for the checkout component: flight, hotel, and car variants
Flight, hotel, and car variants
Flight search template

The flight search page needed the most pieces of anything in the product. We broke it into expanded inventory pieces for every fare class, inventory row pieces for each airline, header pieces, and seat selection pieces, so the whole page could be assembled from parts.

All the different variants used to build the flight search page
Every piece used to build the flight search page
Example of building the search page in Figma
Building the search page in Figma

When building complex components…

This was the most in-depth Figma file. Another designer and I focused heavily on it. We spent a lot of time taking screenshots and documenting every page and instance a persona would encounter on the website. We also spent a lot of time inspecting the website, making sure we established consistent spacing and sizing. It was important to keep everything spaced on our 8-point grid.

Components are built with a key component, which makes it easier to add and edit when a new variation is added.

We also made it a habit to name every layer. Yes, this can take time, but it's so important to build things correctly. It also lets other designers understand how components are built, and makes it easier to turn layers off and on.

Documentation site

A team member in the Design Systems guild led the brainstorming and wireframing for the documentation site. I assisted with feedback and ideation. Below are some examples of our brainstorming and sketches.

Documentation sites are an essential part of the design system product. They enable your system to progress, and they're your manual! Without instructions, you really limit how many people can benefit from your component library. Documentation creates the design language, and it's especially important when working remotely.

We asked the team:

  • What are our goals?
  • Who is our audience?
  • What is the proposed content, and how do we phase releases? (What is our MVP?)
  • What are our questions and blockers?
  • Who is our inspiration?

The plan was to start with a few easier pages, build the basic structure of the site, then wireframe more concrete page designs and write copy for the introduction, getting started, and how to use styles and components. We explored several page layouts, including how a single component page could show React and React Native code side by side for desktop, iOS, and Android.

Brainstorming layout ideas for the documentation site in FigJam: the plan, layout options, and sidebar categories
The plan, layout options, and sidebar categories
Brainstorming different layout ideas for the documentation site in FigJam
More layout ideas in FigJam

The wireframes welcomed people with a simple promise: Purple creates synergy between design, code, and copy. The site was organized into Overview, Foundations, Components, and Patterns. The Overview section held separate entry points for design, code, copy, accessibility, and contributing, so each role could start with what mattered to them.

Brainstorming layout ideas for the documentation site in Figma
Layout exploration in Figma
Wireframe layout of the documentation site home and overview pages in Figma
Wireframes: "Welcome to Purple" and the Overview page

Accessibility

Accessibility testing plays a key part throughout the entire development life cycle. It should never be an afterthought. Making a design system accessible means auditing both the designs and the code, from the atomic level to the organism level.

My plan for accessibility auditing
  • Meet with the Director of Design to decide how we want our company to represent accessibility, and where we want to be in terms of compliance.

For the testing process to be effective, this was my plan for auditing:

  1. Define the scope of the evaluation
  2. Conduct automated tests and manual tests
  3. Document all findings in a detailed report
  4. Plan for remediation based on findings from the tests
  5. Conduct regression testing to evaluate fixes
  6. Test alongside people with disabilities (test for all people)

*Unfortunately, I didn't get to implement this plan at Upside.

I did get far enough to show the team what we were dealing with. I audited the key booking flow using the ARC Toolkit, checking labels, focus order, and how the page held up when zoomed.

On the trip search form, the audit flagged a visible label with a hidden input, an input with no accessible name, a fieldset with no legend, and an orphaned label with no matching ID. Each of these means a screen reader user might not know what a field is asking for.

Accessibility audit showing label fields on the home and search page
Form labels on the home and search page

On the flight search page, I mapped the DOM order against the visual layout. Keyboard focus jumped back and forth across the search bar instead of moving in the order a sighted user would read it.

Accessibility audit showing the DOM order on the flight search page
DOM order on the flight search page

Across the home page, the toolkit found 18 errors and 28 warnings, including images without alt text, links and buttons with no text, missing landmarks, and insufficient color contrast.

Overview of using an accessibility extension tool on the home page
ARC Toolkit results for the home page

Checking page reflow at high zoom showed the layout breaking: tab labels wrapped awkwardly and trip type options ran off the edge of the card. My note at the time was honest: "not very good."

Accessibility audit showing the product's responsiveness when checking page reflow
Checking page reflow

Reflections

What came next
  • Have a set of rules and implementation guidelines
  • User testing, user testing… and more testing!
  • Plan for adoption
  • Create Jira tickets and plan out the release of the documentation website, Purple
  • An accessibility audit and plan for the company
  • More resources, open hours, and surveys
  • Create a dedicated team

As you can see, there were a lot of next steps for this product. Sadly, Upside Business Travel had to close down at the end of September, so we didn't get to move forward with our dream design system team.

I learned so much from working on this product, and it really opened up my excitement to become more involved with a design system team. It also helped me find a great fit for my passion for accessibility alongside my new enthusiasm for building design systems. The most important work I can do as an accessibility designer is to make sure the foundations of a product are built with accessibility in. You really become part of a very special guild on a design system team, and I can't wait for my next adventure!

Reach out if you'd like to hear about the presentations I gave on accessibility in Upside's product. Accessibility is a collaborative effort. Designers and developers need to work together to make accessibility a major priority, especially when implementing a design system.

Looking back, Purple was where I learned the shape of this work: listen first, structure the system around how people actually use the product, and build accessibility into the foundations instead of auditing it in at the end. Every system I've worked on since, from Nucleus to Gestalt to Cosmos, started with those lessons.