Figma¶
The Figma plugin works well now and fits the same pipeline as the other surfaces.
Download¶
Install Shape¶
- Download
all2html-figma-plugin.zip. - Unzip it.
- In Figma, choose Import plugin from manifest...
- Select
manifest.json.
The extracted folder needs to stay intact because the manifest points at built files inside dist/.
Core Workflow¶
- Open a Figma file.
- Select one or more top-level frames.
- Name frames with all2html-style annotations such as:
story:640story:960story:dynamicstory:image- Run the imported all2html plugin.
- Choose a preset and output format.
- Export the ZIP bundle.
What The UI Exports Today¶
The current plugin UI exports:
HTMLStandalone HTML
The plugin downloads a ZIP that includes:
ir.jsonmanifest.json- emitted output files
- extracted assets
Frame Rules¶
Figma follows a tighter selection contract than Illustrator:
- only selected top-level frames export
- frames with the same base name become a responsive group
- equal-width variants in the same group fail clearly
This is deliberate. It makes the export surface explicit instead of guessing.
Config And Special Layers¶
The plugin keeps shared config in figma.root plugin data and local convenience state in figma.clientStorage.
The settings UI includes Google Fonts with Off, CSS @import, and Link tag modes. Figma text fonts are inferred into canonical font mappings automatically, and explicit config mappings still override the inferred mapping for the same sourceFont.
Top-level tagged child nodes inside a selected frame can define special layers with the Illustrator-aligned naming contract:
:png:svg:svg:inline:video:html-before:html-after
What Figma Is Good For Right Now¶
- newsroom story frames
- responsive frame groups
- direct export from a UI instead of handwritten JSON
- special hooks and visual overlays
It is less about full-file auto-discovery and more about clean, selected export roots.
Screenshot placeholder Crop the Figma plugin UI showing the selection summary, preset selector, and export format controls.