From 47 collections to 5
Cutting AirFrame’s design tokens down to what it needs
Collections
Tokens
Before: one cluster per collection. 38 of the 47 belong to just one component.
One dot per token · drag to turnOverview
AirFrame is BA’s design system in Figma. Every colour, size and font in it is stored as a design token. Over the years it had grown to 695 tokens in 47 collections, and most of them were copies. I cut it to about 200 tokens in 5 collections. BA’s 12 colour themes still look exactly the same, and changes now take a fraction of the work.
The change
What changed
Collections
Down from 47, so there are far fewer places to look.
Tokens
Down from 695, because most were copies.
Themes
All 12 of 12 look exactly the same on screen.
Background
What a design token is
A design token is a named value. Instead of typing BA’s blue into every button, designers pick a token called “button background”, and the token holds the blue.
- Token
- button background
- Points to
- blue 500
- Colour
- #3468AD
The real button and token from AirFrame. Designers pick “button background”. They never type the colour code.
That means BA can change its blue in one place, and every button follows. Figma groups tokens into folders it calls collections.
Tokens also let one button suit different backgrounds. AirFrame has 12 themes, like white, Midnight and Sale red. The same token holds a different value in each theme, so the button stays readable wherever it sits.
The count
Where 695 tokens came from
AirFrame felt slow to change, so before tidying anything I counted every token and sorted them by what they were for.
sat in collections built around the three brands.
Built around the three brands
571- 290
- One collection per component38 collections, like Buttons, Tag and Accordion
- 249
- Raw colours and sizes3 collections: BAgel 3.0, BAgel 2.0 and Unbranded
- 32
- Brand switchPicks BAgel 3.0, 2.0 or Unbranded
Everything else
124- 61
- Sample flight detailsCities, times and prices for mock-ups
- 31
- ThemeColours for the 12 themes
- 28
- TypographyType sizes
- 4
- Forms and an empty collection2 collections
Counted from AirFrame’s Figma file: 695 tokens in 47 collections.
Over the years AirFrame had served three looks: BAgel 3.0, the older BAgel 2.0, and a plain Unbranded version. By 2026 only BAgel 3.0 was still in use. But most of the tokens were still there to switch between all three.
The problem
One button, four copies
Here’s what that meant for a single button. Its background colour went through the Buttons collection, which kept a separate version for each look.
1 button colour, 4 versions
ContinueThe button gets its background from the Buttons collection, which held all four.
| Version | Route | Ends at |
|---|---|---|
| BAgel 3.0 website | Theme→BAgel 3.0 colours | blue 500 #3468AD |
| BAgel 3.0 app | Theme→BAgel 3.0 colours | blue 500 #3468AD |
| BAgel 2.0No longer used | Skips the theme→BAgel 2.0 colours | blue 500 #2E5C99 |
| UnbrandedNo longer used | Skips the theme→Unbranded colours | grey 700 #70758F |
The real routes in AirFrame’s file. Only BAgel 3.0 was still used, but every component carried all four versions. The two old ones skip the theme, so they can’t change colour.
38 components each had a collection like this. So adding a component meant a new collection with four versions. Changing a colour meant checking dozens of places. And the two old versions skipped the theme altogether, so they could never change with the background.
The theme itself was in good shape. One collection held 31 named colours with a value for each of the 12 themes. The problem was everything built around it.
The fix
The fix: five collections
I kept what worked, the theme, and removed everything that only existed to handle the old looks.
3 collections, 4 versions
- Continue
- Buttons collectionprimary button background
- Themebutton background
- BAgel 3.0 coloursblue 500
Plus the same thing again in 37 other component collections.
2 collections, 1 version
- Continue
- themebutton background
- primitivesblue 500
Every component takes this same short route.
The button looks exactly the same. It just gets its colour in fewer steps.
That meant no more collections for single components, no brand switch and no BAgel 2.0 or Unbranded. The three sets of raw colours became one. What was left fits in five collections.
theme28 tokens × 12 themes
The named colours, like “main text” and “button background”. Each has a value for every theme, so components change with the background they sit on.
layout10 tokens
Spacing and sizes. It also holds the website or app switch, because a few sizes differ between the two.
typographyType sizes
Font sizes and line heights.
data / flight information61 tokens
Sample cities, times and prices, so mock-ups look real.
All four point down to
primitives80 tokens
BA’s raw colours and sizes. The only place a colour code is ever typed in.
The five collections, about 200 tokens in all. The top four point down to primitives.
The order
Doing it without breaking anything
Designers use AirFrame every day, so the order mattered as much as the plan.
Clear the dead ends
I removed old pages, broken links and the two unused looks.
Build the new beside the old
I made the 5 new collections while the old ones still worked. Where I could, I renamed tokens instead of remaking them, so nothing using them came unplugged.
Move each component over
I pointed every component at the new tokens, then checked it in all 12 themes.
Delete last
I removed the old collections only once nothing used them.
I ran all of this on a full copy of the library first, so the real one was never at risk. The copy ended up with exactly 5 collections.
The check
Twelve themes, nothing moved
If it worked, nobody should be able to tell. I compared AirFrame’s components in every theme, before and after. None of them changed.
The gain
What’s easier now
Fewer tokens isn’t really the point. The point is that changes are quick, and there’s only one place to look.
A new component
BeforeA new collection, with four versions of every colour.
NowIt uses the theme’s named colours, which are already there.
A new theme
Before31 colours in the theme, and hope every component followed.
Now28 colours in one collection, and every component follows.
A new look for BA
BeforeA new set of raw colours, plus changes in 38 collections.
NowNew values in primitives, in one collection.
Status
Where it stands
The real library is being changed in a Figma branch, waiting for review before it goes live.
Two things follow once it does. Other Figma files that use these tokens need updating. And the matching tokens in BA’s code need the same changes, so design and code stay in step.
Takeaways
What I’d take back to a team
Three things worked well, and I’d do them again on any design system.
Count before you tidy
AirFrame looked like it had too many tokens. Counting showed why: one brand switch, copied into 38 collections. Fixing that fixed most of the rest.
Keep what already works
The theme was already right, so I built on it. Renaming tokens instead of remaking them kept every link in place.
Try it on a copy, delete last
Running the change on a copy first kept the real library safe. Deleting old collections only once nothing used them meant nothing broke.
47 collections became 5, and 695 tokens became about 200. AirFrame looks exactly the same, and it’s far easier to change.
Next case study · 2026An airline app, rebuilt in a day →From a screen recording to a running native app