This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Joelle Peters
Posted Jul 04 - Read on Facebook

Very new to Framer. How do you handle changing the fill color of an imported Sketch graphic / group in different states (for example, changing the fill of a button on click)?

Is there a way to change the color of the fill, do people make duplicate layers in Sketch for the 'active' state or is this usually better to handle as a Framer layer (and just change the BG color) rather than an imported Sketch graphic / group?

Thanks!

2 Comments

Trevor Phillippi

Sketch layers are imported as images, so in my experience if you're working from Sketch, it's best to have a naming convention for grouping your button states, and handle it as you're saying above.

Sigurd Tapio Mannsåker

What Trevor said. One basic exception is if it's just a plain rectangle. Then you can just set its image to null and then set its background color to whatever you want. I keep a Layer::fill() function in my personal helper module as a shortcut for that, comes in handy sometimes.

Read the entire post on Facebook