Bird
Raised Fist0
Figmabi_tool~10 mins

Export and handoff plugins in Figma - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to export selected layers as PNG in Figma plugin.

Figma
figma.currentPage.selection.forEach(node => node.exportAsync({ format: '[1]' }))
Drag options to blanks, or click blank then click option'
APNG
BPDF
CJPG
DSVG
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a format that does not support transparency like JPG.
2fill in blank
medium

Complete the code to generate a JSON with node names and their widths for handoff.

Figma
const sizes = figma.currentPage.selection.map(node => ({ name: node.name, width: node.[1] }))
Drag options to blanks, or click blank then click option'
Awidth
By
Cx
Dheight
Attempts:
3 left
💡 Hint
Common Mistakes
Using height instead of width.
3fill in blank
hard

Fix the error in the code to export all selected nodes as SVG files.

Figma
for (const node of figma.currentPage.selection) {
  const svg = await node.exportAsync({ format: '[1]' })
  figma.ui.postMessage({ svg })
}
Drag options to blanks, or click blank then click option'
AJPG
BPNG
CSVG
DPDF
Attempts:
3 left
💡 Hint
Common Mistakes
Using raster formats like PNG or JPG for vector export.
4fill in blank
hard

Fill both blanks to create a plugin that exports selected nodes as PNG and sends their names to UI.

Figma
const exports = [];
for (const node of figma.currentPage.selection) {
  const image = await node.exportAsync({ format: '[1]' });
  exports.push({ name: node.[2], image });
}
figma.ui.postMessage(exports);
Drag options to blanks, or click blank then click option'
APNG
BSVG
Cname
Did
Attempts:
3 left
💡 Hint
Common Mistakes
Using SVG instead of PNG for export.
Using 'id' instead of 'name' for UI display.
5fill in blank
hard

Fill all three blanks to create a plugin snippet that exports selected nodes as JPG, collects their heights, and sends data to UI.

Figma
const data = await Promise.all(figma.currentPage.selection.map(async node => ({
  image: await node.exportAsync({ format: '[1]' }),
  height: node.[2],
  label: node.[3]
})));
figma.ui.postMessage(data);
Drag options to blanks, or click blank then click option'
APNG
Bheight
Cname
DJPG
Attempts:
3 left
💡 Hint
Common Mistakes
Using PNG instead of JPG for export.
Using width instead of height.
Using id instead of name for label.

Practice

(1/5)
1. What is the main purpose of export and handoff plugins in Figma?
easy
A. To help share design files and specs easily with developers
B. To create animations within Figma
C. To design logos and icons
D. To write code for mobile apps

Solution

  1. Step 1: Understand the role of export and handoff plugins

    These plugins are designed to make sharing designs and related information with developers easier and clearer.
  2. Step 2: Identify the correct purpose

    Creating animations, logos, or writing code are not the main functions of these plugins.
  3. Final Answer:

    To help share design files and specs easily with developers -> Option A
  4. Quick Check:

    Export and handoff plugins = share designs with developers [OK]
Hint: Think: Who needs the design details? Developers! [OK]
Common Mistakes:
  • Confusing export plugins with design creation tools
  • Thinking plugins write code automatically
  • Assuming plugins create animations
2. Which of the following is the correct way to export assets using a Figma handoff plugin?
easy
A. Restart Figma before exporting
B. Select the design elements, then choose export format and click export
C. Drag and drop assets into the plugin window
D. Write code in the plugin to export assets

Solution

  1. Step 1: Review the export process in handoff plugins

    Typically, you select the design elements you want to export, pick the format (like PNG or SVG), then click export.
  2. Step 2: Eliminate incorrect options

    Writing code or dragging assets into the plugin window is not how export works. Restarting Figma is unrelated.
  3. Final Answer:

    Select the design elements, then choose export format and click export -> Option B
  4. Quick Check:

    Export = select + format + export button [OK]
Hint: Export by selecting elements and clicking export [OK]
Common Mistakes:
  • Trying to write code inside the plugin
  • Dragging assets instead of selecting
  • Thinking restart is needed to export
3. Using a Figma handoff plugin, you export a button component as SVG and PNG. What will the developer receive?
medium
A. Only the PNG file
B. Only the SVG file
C. Two files: one SVG and one PNG of the button
D. A Figma file with the button design

Solution

  1. Step 1: Understand export formats

    Exporting as SVG and PNG means the plugin creates two separate files, one in each format.
  2. Step 2: Identify what the developer receives

    The developer gets both files, not just one format or the original Figma file.
  3. Final Answer:

    Two files: one SVG and one PNG of the button -> Option C
  4. Quick Check:

    Export multiple formats = multiple files [OK]
Hint: Multiple formats mean multiple files sent [OK]
Common Mistakes:
  • Assuming only one file is exported
  • Confusing exported files with Figma source files
  • Thinking plugin sends editable Figma files
4. You tried to export assets using a Figma handoff plugin, but the exported files are missing some layers. What is the likely cause?
medium
A. You did not select all the layers before exporting
B. The plugin does not support exporting layers
C. Figma does not allow exporting layers
D. Your computer is out of storage

Solution

  1. Step 1: Check selection before export

    Export plugins export only what is selected. Missing layers usually mean they were not selected.
  2. Step 2: Rule out other causes

    Plugins do support exporting layers, and Figma allows it. Storage issues usually cause errors, not missing layers.
  3. Final Answer:

    You did not select all the layers before exporting -> Option A
  4. Quick Check:

    Missing layers = incomplete selection [OK]
Hint: Always select all layers before export [OK]
Common Mistakes:
  • Blaming plugin capabilities incorrectly
  • Ignoring selection step
  • Assuming storage causes missing layers
5. A team wants to improve collaboration by automating asset export and documentation using Figma handoff plugins. Which approach best achieves this?
hard
A. Export only PNG files and email them to developers
B. Manually export each asset and write documentation in a separate file
C. Share the Figma file link without exporting assets
D. Use a plugin that exports assets and generates style guides automatically

Solution

  1. Step 1: Identify automation benefits

    Automating export and documentation saves time and reduces errors.
  2. Step 2: Choose the best plugin approach

    A plugin that exports assets and creates style guides automates both tasks, improving teamwork.
  3. Step 3: Eliminate manual or incomplete methods

    Manual export is slow, exporting only PNG misses other formats, and sharing links without assets can confuse developers.
  4. Final Answer:

    Use a plugin that exports assets and generates style guides automatically -> Option D
  5. Quick Check:

    Automation = plugin exports + docs [OK]
Hint: Automate export and docs with one plugin [OK]
Common Mistakes:
  • Relying on manual export and docs
  • Sending only one file format
  • Assuming sharing links replaces exports
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard