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 2 months 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.

๐Ÿ” Tips to improve accuracy

  • If the design comp contains a background that spans multiple content areas, hide the background before generating the HTML.

  • Do not include unnecessary assets. (Example: Do not mix assets from the mobile design comp into the PC design comp.)

โœ๏ธ Export settings

  1. In Figma, set up export settings for each layer in your design. On the right-hand panel, click Export and set the desired scale (1x, 2x, 3x) and file format (e.g., .png, .jpg).

    โš ๏ธ 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. No need to export assets individually.

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

  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?