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

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.

Like what you read? Give Iain Dowling a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.