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 .... )

PLEASE HELP

4 Comments

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 .... (http://share.framerjs.com/8t6m91ab9p23/), 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? http://share.framerjs.com/ewyva09dsigi/

Read the entire post on Facebook