Menu

One brand color, three platforms: what actually changes
📰

One brand color, three platforms: what actually changes

DEV Community: css·yang7206·18 days ago
#cHiDFY0a
#devtocss#devto#dev#primary#accent
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.