sketch-hq / SketchAPI

The JavaScript plugin library embedded in Sketch
https://developer.sketch.com/reference/api
MIT License
842 stars 126 forks source link

Find and Replace Color #589

Open KevinGutowski opened 5 years ago

KevinGutowski commented 5 years ago

https://sketchplugins.com/d/1460-find-and-replace-color-from-plugin

Would be pretty helpful to not have to implement our own find and replace algo and just use the one in sketch. Aby shared some helpful code in the link as well.

KevinGutowski commented 5 years ago

I suppose this could potentially be accomplished via Mathieu’s find and replace thing he added a little while ago. Though, off the top of my head I don’t think you can .find some color that matches against styles.fills.color and styles.borders.color and optionally ignores opacities.