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

What is Framer? Join the Community
Return to index
Posted Aug 03 - Read on Facebook

Hi all

After I import my sketch file into FramerJS

i dont know how to replace my sketch file background color block to the layer which defined in FramerJS ( that's, bg = new layer .... )



Niels van Hoorn

If you have

sketch = Framer.Importer.load("imported/[email protected]")

You can just use

sketch.layerName.backgroundColor = 'white'

where layerName is the name of the layer you've imported from sketch


Niels van Hoorn, thanks reply, but in my case, i want to replace the sketch file background layer to .... (, how can i do that ????


u can see i want to change to use dynamic gradient layer which defined in Framer, i have no idea how to do that ...

Niels van Hoorn

You can set the backgroundColor to null to unset it, is that what you mean?

Read the entire post on Facebook