You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting Figma to Builder, the plugin requires all elements to be in auto-layout. However, it's not possible to auto-layout a vector. The alternative here is to use Figma's `rasterize selection` command on your vector. If the output of that is too low-resolution, then you can try this plugin: https://www.figma.com/community/plugin/837846252158418235/Flatten-Selection-to-Bitmap.
60
61
61
62
If you want the Builder end-result to have a vector, then consider this rasterized selection as a placeholder, and swap it back with an SVG in the Builder editor.
@@ -65,6 +66,7 @@ If you want the Builder end-result to have a vector, then consider this rasteriz
65
66
Importing HTML layers to Figma is a best-effort process. Even getting 90% there can save you a ton of time, only having to clean up a few things.
66
67
67
68
A few known limitations:
69
+
68
70
- not all element types are supported (e.g. iframe, pseudoelements)
69
71
- not all CSS properties are supported or fully supported
70
72
- not all types of media are supported (video, animated gifs, etc)
@@ -81,3 +83,36 @@ If you find any issues or have feedback at all please [make an issue](https://gi
81
83
<palign="center">
82
84
Made with ❤️ by <atarget="_blank"href="https://builder.io/">Builder.io</a>
83
85
</p>
86
+
87
+
## Architecture
88
+
89
+
-`builder.io/api/v1/html-to-figma`: API endpoint that converts a URL's layout to a Figma design. The logic of that endpoint lives in this repo, under [./lib/html-to-figma](./lib/html-to-figma).
90
+
-`builder.io/api/v1/figma-to-builder`: API endpoint that converts a Figma design to a Builder content JSON. The logic of that endpoint lives in Builder's API.
91
+
92
+
## DEVELOP - Figma plugin
93
+
94
+
### Setup local development plugin
95
+
96
+
- install the Figma desktop app through https://www.figma.com/
97
+
98
+
- Right click Plugins -> Development -> Import plugin from manifest
99
+
<imgsrc="./assets/dev-import.png" />
100
+
101
+
- Choose `manifest.json` in this repo
102
+
103
+
- Now you can access/test the local plugin code in this repo by navigating to: Right click Plugins -> Development -> HTML <> Figma
0 commit comments