Back to Plugins
Structure

Structure

HTML & SASS code generator / fine-tune results / easy to use. ________ 🏛️ What is Structure ? This plugin generates HTML & SASS code from Figma. Select an object, a component, a frame, anything, then click on "Inspect" and voilà ! BUT.. one problem with code generators can be code redundancy, especially with Figma objects where you can find instances inside instances inside.. In order to get a much cleaner code, you can use different options : • use " ↑ " to merge a div (and its css properties) with the parent div • use " - " to remove an element from code Merging and deleting affect both HTML and SASS generated code. You can freely experiment things, as you can find an undo button, if something didn't go as expected. ________ 🧰 Options • You can adjust settings by clicking on the "■" option (flex, absolute or relative positioning,..) • You can double click inside an input field to zoom on the Figma object related to your code • Figma styles can be displayed (or not) inside SASS code • Images are generated as base64 background in the preview, but are not added to SASS code. • Vectors are generated as SVGs, and you can display/hide them in HTML code. • This plugin works best with objects using autolayout (support for spacing, alignement,..) • HTML & CSS are rendered inside the preview zone, so you can easily see how your actions affect rendered code. ________ 🗒️ Notes • Using this plugin doesn't change anything in your Figma file. • This plugin is a WIP, and may not cover every cases. If you find bugs, or missing something from it, please feel free to contact me.

generatorcsshtmlcodesass

Plugin Preview

Structure preview

About this plugin

HTML & SASS code generator / fine-tune results / easy to use. ________ 🏛️ What is Structure ? This plugin generates HTML & SASS code from Figma. Select an object, a component, a frame, anything, then click on "Inspect" and voilà ! BUT.. one problem with code generators can be code redundancy, especially with Figma objects where you can find instances inside instances inside.. In order to get a much cleaner code, you can use different options : • use " ↑ " to merge a div (and its css properties) with the parent div • use " - " to remove an element from code Merging and deleting affect both HTML and SASS generated code. You can freely experiment things, as you can find an undo button, if something didn't go as expected. ________ 🧰 Options • You can adjust settings by clicking on the "■" option (flex, absolute or relative positioning,..) • You can double click inside an input field to zoom on the Figma object related to your code • Figma styles can be displayed (or not) inside SASS code • Images are generated as base64 background in the preview, but are not added to SASS code. • Vectors are generated as SVGs, and you can display/hide them in HTML code. • This plugin works best with objects using autolayout (support for spacing, alignement,..) • HTML & CSS are rendered inside the preview zone, so you can easily see how your actions affect rendered code. ________ 🗒️ Notes • Using this plugin doesn't change anything in your Figma file. • This plugin is a WIP, and may not cover every cases. If you find bugs, or missing something from it, please feel free to contact me.

Plugin Details

Version34
CreatedOctober 1, 2019
Last UpdatedMarch 21, 2020
CategoryUncategorized
CreatorFabien
Stats8627 installs, 211 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:ui.html
  • main:code.js

More Like This

Discover other plugins in the same category.

No similar plugins found in this category.