Andy Twomey — design engineer
All projects

Designing the HMX design system

Harvard Medical School — HMX online learning: course platform, interactives, Partner Dashboard, and marketing site

Role
Lead UI Designer, Product Development
Built by
Development team from my wireframes and prototypes.
Tools
Sketch, HTML/CSS/JS, edX, WordPress

Where it started

HMX is Harvard Medical School’s online learning program. Its courses run on edX, a platform that was seeing a lot more traffic because of the pandemic. I was hired to improve the course experience, mostly by redesigning the parts of edX that students touch, like accordions, pagination, and form inputs. We couldn’t replace them, only improve them, and some, like drag and drop, couldn’t be used with a keyboard at all.

HMX had three other products besides the course platform: interactive course content, a marketing site on WordPress, and a Partner Dashboard where course owners, managers, and professors tracked their groups. Each one had been built separately, and none of them shared anything. That’s why I proposed a design system.

What I built

Namespace Symbols Purpose
LMS 207 Course player, assessments, navigation, outline
Global 167 Shared foundation — footers, accordions, pagination, inputs
Partner dashboard 80 Admin cards, reports, callouts
WordPress 76 Marketing pages, staff cards, site navigation

Accessibility in the system

I wanted accessibility settled during design, not caught in review afterward.

Focus, hover, disabled, and active states were designed as part of each component. Left to developers, a focus ring ends up different depending on who writes it. Designing the states up front meant keyboard users got the same experience as mouse users, everywhere, by default.

Each brand color got nine shades and nine tints in 10% steps, set up as variables. Some components use them and some content does. That way designers and developers weren’t each picking whatever looked good.

A reference card for the teal brand color. Nine shades and nine tints are shown as circular swatches in 10% increments, labelled S-90 down to S-10 and T-90 down to T-10. Each swatch is ringed by four arcs reporting its WCAG 2.0 level against black, against white, against 50% black, and against the base color, marked AA or AAA for small and large text, or left blank where the pairing is not accessible. A legend at the top explains the notation and the contrast ratios each level requires. A panel at the foot gives the base color as Pantone 3262 U/C, CMYK 76 0 38 0, RGB 0 166 156, hex #00a69c.
One of three color ramps. Every step is rated against black, white, 50% black and the base color, and left blank where the pairing isn't accessible.
A specification sheet for interaction states. Six copies of the same navigation bar show default, hover, focus, active when the page is in use, the active pseudo-class, and hover combined with focus — each labelled, several annotated with their behaviour: the hover line animates into place from left to right over 0.5 seconds; the focus line starts as a point and draws a circle around the focused object. Below, a button is specified in default, hover, active, focus, long-copy, minimum-width and disabled states.
A few of the components in the system.

The system in use

Two of the four products, built from the same library.

The partner agreements list rendered as cards — each agreement a white panel listing type, status, term, start, end, seats and a partner contact link, with an expand control at its right edge. The same agreements rendered as a table, with a dark blue header row of sortable columns and one row expanded into a full-width detail panel holding a description, an ID, a View Invoice button and a nested table of the courses that agreement covers.
Partner Dashboard. The same agreements as a table and as cards, switched by the control at top right. The table shows more at once, the cards work on a narrow screen. Same search, same buttons, same pagination under both.
A course assessment with nothing answered: a scenario table whose rows each end in a “select an option” dropdown, a diagram question with a tray of shapes to place, and a free-text question, each with its own Submit. Checkbox and radio questions after submission. Each chosen answer carries a green check or a red cross at the end of its row, the question heading carries the same mark, and an explanation has opened beneath. The same table answered incorrectly with both attempts used: every row crossed, the Submit button greyed out, and Show Answer now the filled button on the right.
The LMS. One assessment component untouched, graded, and out of attempts. The mark, the wording and the score all change together, so nothing depends on color alone. In the last one Submit is greyed out and Show Answer has taken over as the main button.

Rebuilding drag and drop

edX’s drag-and-drop component was used heavily in courses, for sorting items, labelling diagrams, and matching text to parts of an image. It couldn’t be used with a keyboard or a screen reader, and on a phone the drag fought with scrolling. I rebuilt it to be accessible and prototyped it in working HTML, CSS, and JavaScript for the development team to build. Courses used that version afterward.

The genetics pedigree is the same component with a heavy skin for genealogy content. Each family member is a <select> and the connector lines are CSS, so it reflows on a small screen instead of needing pinch and zoom. Because every node is an input rather than a picture, it can be graded: pick a status for each person, submit, and each one comes back right or wrong.

The rebuilt drag and drop, skinned as a genetics pedigree. Every family member is a native select, the connector lines are CSS, and submitting marks each node right or wrong.

Outcome

Courses adopted the components. When the LMS moved to a new version of edX, the team checked against the system, so upgrades didn’t undo design and accessibility decisions.

The Partner Dashboard was eventually dropped. The HMX team was later reorganized into a product development group, which is where my title came from.