
miraanand.design /
Log
Available from Jan 7
Mira
A design log, kept in public. Updated weekly.
ESSAY

Tokens before components
We named colours by the job they do, not by the hue they happen to be. That one decision made dark mode a one-day task.
THE ESSAY
When I joined the Orbit project, the payments team had 212 colour values in Figma.
Components inherit whatever decisions sit underneath them, so we went one level down and wrote tokens first.
Dark mode was the test. We wrote a second set of values for the same forty names and switched modes.
Three ideas to take away from this one.
Name the job
A colour called action-primary tells you where it goes. A colour called blue-500 only tells you what it looks like.
Fewer, on purpose
Forty tokens that everyone understands beat two hundred values that nobody can remember.
Modes are values
Light and dark are the same names with different values. If a mode needs new names, the names were wrong.
IN PRACTICE
Nº
Decision
Before
After
001
Colour values
212
40 tokens
002
Text styles
31
9
003
Components
41
19
004
Dark mode effort
A quarter
1 day + fixes
ESSAY

Tokens before components
We named colours by the job they do, not by the hue they happen to be. That one decision made dark mode a one-day task.
THE ESSAY
When I joined the Orbit project, the payments team had 212 colour values in Figma.
Components inherit whatever decisions sit underneath them, so we went one level down and wrote tokens first.
Dark mode was the test. We wrote a second set of values for the same forty names and switched modes.
Three ideas to take away from this one.
Name the job
A colour called action-primary tells you where it goes. A colour called blue-500 only tells you what it looks like.
Fewer, on purpose
Forty tokens that everyone understands beat two hundred values that nobody can remember.
Modes are values
Light and dark are the same names with different values. If a mode needs new names, the names were wrong.
IN PRACTICE
Nº
Decision
Before
After
001
Colour values
212
40 tokens
002
Text styles
31
9
003
Components
41
19
004
Dark mode effort
A quarter
1 day + fixes
MENU