Figma Support Forum

Create a color style with a plugin

Hello there,

I have a bunch of rectangles with a SOLID fill on them. What I’d like to do is onSelection of the rectangle, extract the fill and then create a colorStyle with that fill and the rectangle’s name.

Can anyone help with how this could be done?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.