Yes, states are a hack with the way they’re achieved in the system.
Jon Moore
11

Lighten/darken functions are a good idea. The down side is that it involves conversations and flattening component assets, rather than being able to leverage Sketch’s in-document colours to generate a palette. How big of an issue that is would depend on your team’s development process.

Perhaps it would be possible to create a Sketch plugin that “flattens” effects in a group of layers to provide CSS as though the group was one layer…

Anyway, thanks for sharing your process, I enjoy all your articles.

Show your support

Clapping shows how much you appreciated Iain Dowling’s story.