How to import a Figma design to Zero Block automatically
Using the Figma to Tilda plugin, you can import full-featured designs and layers directly from Figma to Zero Block in one click. Read the detailed guide on how to work with the plugin.
In your Figma account, click on the Actions in the bottom toolbar and select the Plugins & widgets tab. In the search, enter the name of the Figma to Tilda plugin and click on it or add the plugin via the link.
Click on the Run button to activate the plugin.
It's ready! Now you can import layers and elements to Tilda.
The recommendations for importing a Figma layout to Tilda.
The Frame must be 1200px size to be imported correctly.
Divide a big Frame to several separate Frames.
To import a button correctly, name the group of elements "button".
Important: No more than 6 nested group levels can be imported (if more levels are nested, they will not be imported).
Importing layers from Figma to Zero Block
Once you have added the plugin, select the layer you need in the layout. The selected layer will be displayed in the Selected layers field of the plugin window.
Note: When copying, you can select one layer as well as several ones. This can be the whole root Frame or a separate element — such as an image, button, or text.
In the plugin window, click on the Prepare to copy button to get layers prepared for importing.
When the Frame is ready to be imported, click on the Copy to clipboard button.
Go to Tilda → open Zero Block and click on the keyboard shortcut: Ctrl+V on Windows или Command+V on Mac.
Specific features of importing layers to Zero Block
You can import the Frame as a separate group or with the settings applied to the artboard and all current elements replaced.
If the artboard already contains elements, then you can also insert the Frame as a group, but this option will delete all elements from the artboard.
When the "Apply settings to artboard" option is selected, the settings of the Frame's root layer will be applied in Zero Block: The background color or background image, Auto Layout, and other settings supported by Tilda will be changed.
When several Frames are inserted, the pop-up with import options will not be displayed.
You can insert elements to the artboard as separate layers as well as within a group. When importing several elements, they will keep the same spacing.
For example, if the spacing between a button and text in Figma was 40px, they will be imported to Tilda with the same spacing and positioning to each other.
Go to the Figma main page and click on View Profile → Settings under your profile picture.
Then go to the Security tab, go to the Personal access tokens block, and click on Generate new token.
In the new window, specify the name of the Tilda token and select its expiration period. For example, 1 day, 7 days, 30 days, and 90 days.
In the Scopes area, select the Current user, Dev resources, File content, File versions, Library assets, Library content, and Projects checkboxes. Now click on Generate token.
Copy this key after you have created it to specify it in the Import settings in Tilda. You cannot view the key again, just create a new key.
How to import a layout to Zero Block
Click on the three dots menu in Zero Block and select the "Import from Figma" option.
Go to Figma. Open the Layout, select the Frame you need, and copy the Frame link from the browser address bar.
For the import to be correct, you need to add one Figma Frame to one Zero Block
In the window that opens, add the link to the Frame and the API token obtained in the Figma settings.
Wait until the layout is imported.
If you have added the correct link and there are no errors on the Figma API side, the layout will be imported to Zero Block.
Note that by default, images are loaded from the Figma servers, so if you want to upload them to Tilda, you need to go to the settings of the elements containing images and click on Upload to Tilda.
Layout requirements and import features
Layout
Layouts must be created on a frame with a width of 1200px.
We recommend importing the layout to several blocks rather than adding the entire layout to just one block.
Groups of elements
Any group can be imported as an image. For this, you need to specify "image" in its name. If you specify "svg," it will be imported as an SVG file.
You can import groups, too. If there are other groups inside, all elements will be in the first-level group.
Shapes and buttons
To import a button, you need to merge the shape and text into a group and add "button" in its name. The text alignment property will also be imported, so we recommend that you make the width of the text element the same as the shape.
If the shape has an effect that cannot be reproduced in Zero Block, it will be imported with the effect image in the background.