Variables in a single file? Easy.
Variables that need to work across multiple teams, brands, or design systems? That’s where things get interesting.
If your tokens are starting to feel stretched — or you’re duplicating work across files — it’s probably time to scale up with intent. This chapter will help you structure your setup to avoid chaos, reduce maintenance, and keep everyone (mostly) sane.
Before you do anything, ask yourself:
Your answers will point you toward one of two paths:
Good for:
How it looks:
This keeps things simple, but it can get crowded fast as complexity grows.
Good for:
How it looks:
This setup gives you flexibility and separation — but requires a bit more coordination.
🔁 Rule of thumb: Reuse > Redefine. Let libraries inherit from one another where possible — don’t reinvent the wheel in every file.
If Brand A uses color/primary/500
, make sure Brand B does too. Same pattern, different values. That way, switching themes is painless.
Every library needs a responsible human (or team). Without one, things break — and no one knows who to ask.
Even small edits can cause downstream issues. Version your tokens, keep a changelog, and let people know what’s new (and why).
Every library should have a short explanation:
Think of it like onboarding for your variables.
When your system grows beyond a single file, organization becomes everything. With a thoughtful library structure and clear ownership, you’ll be able to support more teams, more brands, and more complexity — without losing control.