One token, start to finish
Before
A literal in a view
Color(red: 0.95,
green: 0.55,
blue: 0.25)
“Warm amber,” typed by hand. One mode, and no name to change it by.
Primitive
A raw value, named
statusOrange
#F28C40statusOrangeDark
#F5A55EPrimitives hold values. They don’t know about modes.
Alias
A role, with modes
status/inProgress
Aliases hold meaning. Designs bind here, never to a primitive.
Swift
The same name in code
RexxColors
.Status
.inProgress
Resolves light or dark at runtime, from RexxStyles.swift.
The orange didn’t change. What changed is that it has a name, and the name is the same in both places.