A while back I inherited a design system that had been ported from web to a mini program. The primary color made it. Almost nothing else did.
The tokens were all there. primaryHover , primaryActive , border , surface , textSub . Someone had copied them into the mini program stylesheet in good faith. Then, one at a time, they became dead weight. border had no consumer, because the mini program draws dividers instead. primaryHover sat there doing nothing, because a finger cannot hover.
The usual explanation is "the port was sloppy." I don't think that's it. The three platforms genuinely have different shapes, and almost nobody writes those shapes down. So I did.
I maintain a palette library with 100 palettes across the three platforms (31 app, 34 web, 35 mini program). Every palette has exactly ten color roles. I compared the role sets, the state transitions and the contrast behavior.…