Skip to main content

๐Ÿ“Ž Figma plugin

Learn how to export and upload files with the Figma plugin.

FRONT-END.AI avatar
Written by FRONT-END.AI
Updated over 3 weeks ago

With one batch, the Figma plugin exports everything required for HTML code generation.

๐Ÿ—’๏ธ File Requirements

You'll need the following to generate HTML code:

  • ๐Ÿ–ผ๏ธ Design comp (.png / .jpg, up to 20 MB)

  • ๐Ÿงฉ Asset images (.png / .jpg / .gif / .svg / .webp, total with design comp: up to 100 MB)

๐Ÿ’ก Notes

  • If you have both PC and mobile designs, please upload them one at a time โ€” not together.

  • Assets can be exported at 1x, 2x, and 3x resolutions.

  • If you upload assets and output.json without using the plugin, you may encounter errors due to data mismatches.

  • The plugin cannot extract text or images from external image elements, as it is designed to work with the structure created within Figma.

โœ๏ธ Export settings

  1. In Figma, set up export settings for each layer in your design.

    Select all the assets to be exported. On the right-hand panel, click Export and set the desired scale (1x, 2x, 3x) and file format (e.g., .png, .jpg).

    No need to export assets individually.

    โš ๏ธ Please export your design one page at a time. FRONT-END.AI analyzes each page individually.

    โš ๏ธ If you select PDF as the file format, the plugin will not export it.

    โš ๏ธ For more information, please refer to Figma's Official Guide.

  2. Select the entire page to export.

  3. Select Main Menu > Plugins > FRONT-END.AI.

  4. When the modal appears, click the "Export" button to download the ZIP file, then extract it.

    Please upload the exported files to your VS Code environment without modifying them.

Did this answer your question?