# Mango UI: Unifying five systems into one

03 / 04 · Multi-Brand Design System

organisation: Humanforce
role: UX Designer / Engineer (Design System Lead, Mango UI)
timeline: Jan – Sep 2024
scope: 5+ coded systems · 3+ Figma libraries · Multi-brand
status at exit: Experimental (foundations built)

## The bet
Rapid growth through acquisitions left Humanforce with at least five design systems in code and three in Figma across incompatible web stacks. Existing libraries carried bespoke business logic, meaning a forced "swap and adopt" mandate would stall immediately. The question: how do you unify a fragmented, multi-framework ecosystem without halting product delivery?

## Proof points
- 5+ → 1: Coded systems targeted under one Web Components foundation
- 19 → 6: Dashboard typography combinations collapsed into one scale
- ~40 engineers: Engaged early via live architectural showcase
- 59%: Surveyed engineers eager to actively contribute

## Discovery & engineering alignment
Before drawing a button or writing CSS, I ran two discovery streams to ground the architecture in evidence:
- Baseline survey: Measured developer sentiment and uncovered inconsistent library naming, gaps in design system literacy, and a clear demand for plain-English documentation and hands-on support.
- Implementation audit: Audited live products across colour, contrast, spacing, and type—finding 19 distinct typography combinations on the dashboard alone.
- The Mango Playbook & Engineer Showcase: I authored a living playbook (covering governance, versioning, token architecture, and a v1.0 roadmap) and presented the proposal directly to around 40 engineers, inviting hard technical critique before locking in the stack.

## Decisions & trade-offs

### Decision 01: Build a framework-agnostic foundation rather than inheriting a legacy system
Extending one of Humanforce’s five existing libraries was the obvious shortcut—and the wrong bet, because each was tightly coupled to a single product framework. Instead, I architected a Web Components monorepo housing three clean packages: standalone tokens and foundations, core components and recipes, and an interactive documentation playground.

**Trade-off:** Building from scratch required upfront investment before squads could consume components, in exchange for an incremental adoption path that worked across every web stack without app rewrites.

### Decision 02: Tokens first, in three tiers, with code as the source of truth
I built a three-tier token hierarchy (Primitive → System → Component) spanning nine categories (colour, typography, dimension, border, breakpoints, motion, opacity, radius, elevation). Using Style Dictionary, CSS variables, and a custom Figma plugin, the codebase acted as the single source of truth while keeping Figma variables synchronised. In Figma, I separated Mango UI (production library) from Mango WIP (sandbox for maturing patterns).

**Trade-off:** Maintaining a custom Figma sync plugin added internal tooling ownership, but avoided fragile third-party plugin dependencies and guaranteed multi-brand parity across code and design.

#### Under the hood: Monorepo & Astro Starlight documentation architecture
- Monorepo packages: `@mango/tokens` (Style Dictionary + CSS variables), `@mango/components` (Web Components + recipes), `@mango/docs` (Astro Starlight Markdown site).
- Documentation principles: Written in plain English for designers, engineers, and PMs—integrating live Storybook previews, Figma links, component status indicators, and versioned changelogs.

### Decision 03: Tiered adoption over forced day-one consistency
Demanding 100% uniformity from day one guarantees pushback when squads are maintaining complex acquired products. I introduced a three-tier adoption model—Prescribed, Recommended, and Optional—so teams knew exactly where brand coherence was mandatory and where local flexibility was safe.

**Trade-off:** Full visual consistency across the suite would take longer to achieve, but squads gained a pragmatic, low-friction on-ramp that respected their delivery commitments.

## What I left behind
- Three-tier token architecture [Experimental]: Style Dictionary + CSS variables + custom Figma sync plugin across 9 token categories
- Web Components monorepo [Experimental]: Framework-agnostic component library, recipes, and interactive playground
- Mango UI & WIP Figma libraries [Experimental]: Production library + sandbox file built natively on Figma variables
- Astro Starlight docs & Playbook [Validated / Adopted]: Plain-English documentation site, governance model, and baseline survey (59% contributor interest)

Status when I left: Mango UI was still experimental—the multi-brand foundations, token pipeline, monorepo, and documentation were built and validated with engineering, while broader product adoption still lay ahead.

Next: Zango (TechEquipt): https://andyharris.com.au/work/zango.md

Say g'day: https://www.linkedin.com/in/andyjohnharris/
