Harbourline University · Applicant Portal
One set of tokens, seven themes, no screen left behind
The applicant portal has dozens of screens for phone and desktop, built by several developers at once. This is the system underneath it: the tokens, the type scale, the components and the rules for using them - written so that what is designed in Figma is exactly what gets built, and a change of colour reaches every screen on its own.
Overview
- Product
- The design system of the applicant portal
- My role
- Design system design, tokens, components, documentation
- Team
- Me as the product designer, with several front-end developers building screens in parallel
- Tools
- Figma variables; tokens and components in React and Tailwind CSS
The problem
Several developers were building portal screens at the same time, on phone and desktop. Without a shared language, each screen reinvented its own buttons, spacing and text sizes, and small differences piled up into a product that looked like several products.
The design file and the code had also started to drift. A colour changed in Figma stayed changed only in Figma, and nobody could say with confidence which of the two was right.
On top of that, the portal had to support a dark theme and a set of colour themes, in a right-to-left language. Any colour written straight into a screen would break the moment the theme changed.
Users & personas
Just tell me which token. I don't want to pick a blue.
Liam Carter
Front-end developer
- Goals
- Build a new screen from parts that already exist
- Know the right spacing and type size without asking
- Ship a screen that works in every theme the first time
- Frustrations
- Hard-coded colours that break in dark mode
- Three slightly different buttons for the same action
- A design file that no longer matches the code
If I change the brand colour, I want to change it once.
Priya Nair
Product designer
- Goals
- Design a screen that can be built exactly as drawn
- Try a new theme without redrawing screens
- Keep phone and desktop consistent without designing everything twice
- Frustrations
- Fixing the same detail in Figma and in code
- Components that look right on desktop and fall apart on a phone
- Rules that live only in someone's head
Process
I started by collecting what already existed across the screens - every colour, every size, every spacing value - and grouping them. Most of the differences turned out to be accidental, so the audit shrank to a short list of decisions: 15 token groups, 101 variables per theme, and only four font weights.
Then I named everything by its job rather than by its look. A token is called surface, text-muted or accent, never light-blue. That is what lets a theme swap the values underneath without any screen noticing, and it is why dark mode and the five colour themes cost almost nothing to add.
The type scale was designed for both devices at once: a page title is 34px on desktop and 25px on a phone, and every step below it moves down together. Components follow the same rule - a dialog on desktop opens as a bottom sheet on a phone, because a phone is not a shrunken desktop.
Finally I wrote it down: a guidelines document with the rules for using each part, and a script that generates the Figma variable files from the code tokens. The design file and the code now read from one palette instead of two that drift.
Key design decisions
Tokens named by their job
Surface, text, border, accent, state: every colour in the portal comes from a variable whose name says what it is for. No screen contains a hard-coded colour, so switching theme simply works.
Seven themes, one set of screens
Light, dark and five colour themes - purple, teal, sunset, pink and colourful - all run on the same 101 variables. The applicant picks one in Settings and every screen follows, including charts and status chips.
A type scale for two devices
Four sizes and four weights cover the whole product. Each size has a phone step and a desktop step, so the hierarchy stays the same while the screen gets smaller.
One component per pattern
Once a pattern appears on two screens, it moves into the component library. Developers assemble new screens from parts that already exist and already work in every theme.
Right-to-left and accessibility built in
Layout uses logical properties only, so the same components work in right-to-left and left-to-right languages. A status is never shown by colour alone - it always carries a word or an icon.
Figma and code from one source
The Figma variables are generated from the code tokens, not maintained beside them. A change made once reaches the design file and the product together.
Screens
Open full sizeSettings on desktop with the seven themes - Light, Dark, Purple, Teal, Sunset, Pink and Colourful - beside the personal area on a phone in the dark theme.
Open full sizeOn a phone the theme picker becomes a segmented control: Light, Dark, and a Colours menu with the five colour themes.
Open full sizeThe personal area in the dark theme: the same screen and the same components, with every colour taken from the dark set of variables.
Open full sizeThe same personal area in the teal theme: accents, links and figures all change together, without touching the screen's code.
Open full sizeThe desktop personal area in the dark theme: countdown, next steps and assessment results, all built from the shared components.
Open full sizeTasks in the purple theme: cards, status chips and deadlines keep their meaning in every theme, because a status is never colour alone.
Impact
New screens are assembled from existing components instead of designed and built from scratch, and they work in all seven themes the first time.
Figma and code share the same variable names, so a review is about the design rather than about which of the two is right.
Adding the dark theme and the colour themes took days rather than a redesign - the clearest proof that naming tokens by their job was worth the effort up front.
Got something like this to untangle?
Start a project