<p align="center">
<img alt="Figma to HTML title" height="400" src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F7fbe481d20d74cee827ee7256b37a736" />
</p>
<p align="center">
Convert Figma designs into high quality HTML, React, Vue, Svelte, Angular, Solid, etc code via <a href="https://github.com/BuilderIO/jsx-lite">JSX Lite</a>
</p>
<br />
<p align="center">
<img src="https://i.imgur.com/BoKsLFs.gif" />
</p>
## How does it work
### Export designs to code
1. [Install the plugin](https://www.figma.com/c/plugin/747985167520967365/HTML-To-Figma)
2. Ensure all layers you want to import use autolayout as described [here](https://www.builder.io/c/docs/import-from-figma)
3. Click the "get code" button to launch into the Builder.io editor
4. Make any final adjustments, and click "get code" at the top of Builder to view code output, or copy and paste it to content of a Builder account to publish live
<img height="300" alt="JSX Lite diagram" src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fa74df82e1eaf47c6b73c8a1fdeb5853d" />
### Import webpages to Figma designs
1. [Install the plugin](https://www.figma.com/c/plugin/747985167520967365/HTML-To-Figma)
2. In Figma, open a new or existing document, then hit cmd+/ and search "html figma" and hit enter
3. Enter a URL you want to import
<a href="https://github.com/builderio/jsx-lite">
<img src="https://i.imgur.com/YNDD9dH.gif" alt="Plugin demo" width="480" />
</a>
## Why?
- Instantly convert designs into live webpages and code
- Easily import real live site styles for a starting point for designs and prototypes
- Quickly turn real site components into design components
- Easy import from storybook, etc
## Chrome Extension
Want to capture a page behind an auth wall, or in a specific state you need to navigate to? Then the [chrome extension](https://chrome.google.com/webstore/detail/efjcmgblfpkhbjpkpopkgeomfkokpaim) is for you!
<img src="https://imgur.com/ARz16KC.gif" alt="Chrome extension demo" width="480" />
## Using the library
```js
// npm install @builder.io/html-to-figma
import { htmlToFigma } from "@builder.io/html-to-figma";
const layers = htmlToFigma(document.body);
// E.g. send these to the REST API, or generate a .figma.json file that can be uploaded through the Figma plugin
```
## Limitations
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.
A few known limitations:
- not all element types are supported (e.g. iframe, pseudoelements)
- not all CSS properties are supported or fully supported
- not all types of media are supported (video, animated gifs, etc)
- all fonts have to be uploaded to Figma or a best effort fallback will be used
If you find any issues or have feedback at all please [make an issue](https://github.com/BuilderIO/html-to-figma/issues/new)
## TODO
- Support code import from [JSX Lite](https://github.com/BuilderIO/jsx-lite)
- Support Figma components
<br />
<p align="center">
Made with ❤️ by <a target="_blank" href="https://builder.io/">Builder.io</a>
</p>
没有合适的资源?快使用搜索试试~ 我知道了~
figma-html:将Figma设计转换为HTML,React,Vue,Angular等!

共47个文件
ts:16个
json:9个
png:4个

需积分: 50 46 下载量 159 浏览量
2021-04-30
01:53:01
上传
评论 4
收藏 549KB ZIP 举报
温馨提示
通过将Figma设计转换为高质量HTML,React,Vue,Svelte,Angular,Solid等代码 它是如何工作的 将设计导出为代码 确保要导入的所有图层均按照所述使用自动布局 单击“获取代码”按钮以启动Builder.io编辑器 进行最后的调整,然后单击Builder顶部的“获取代码”以查看代码输出,或将其复制并粘贴到Builder帐户的内容以实时发布 将网页导入到Figma设计 在Figma中,打开一个新的或现有的文档,然后单击cmd + /并搜索“ html figma”,然后按Enter 输入您要导入的URL 为什么? 立即将设计转换为实时网页和代码 轻松导入真实的现场样式,以作为设计和原型的起点 快速将实际站点组件转换为设计组件 易于从故事书等导入 Chrome扩展程序 想要捕获身份验证墙后面的页面,还是要导航到的特定状态? 程序适合您! 使用图书馆 // npm
资源详情
资源评论
资源推荐
收起资源包目录































































共 47 条
- 1




















格式:zip 资源大小:86.7KB










王牌对王牌飞行
- 粉丝: 44
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 中国智造与人工智能.docx
- 大数据背景下加强企业财务管理工作的研究探讨.docx
- 浅析统计学在工程项目管理中的应用.docx
- SB3DS-系统操作说明.doc
- 苗木实测项目管理检查记录表.doc
- 电力基建工程管理中引入项目管理的实践策略分析.docx
- 顺德职业技术学院电工及PLC实训室仪器设备采购(SD).doc
- CMIS培训Oracle数据库安装.doc
- 互联网+对地铁票务运作的影响.docx
- 试论信息化技术在医院管理中的应用.docx
- 天池算法比赛《BetterMixture - 大模型数据混合挑战赛》的第一名top1解决方案
- 集成 RAG、知识图谱等技术的 ChatGLM3-6b 智能对话系统提升回复质量
- 天池算法比赛《BetterMixture - 大模型数据混合挑战赛》的第一名top1解决方案
- 基于大模型微调的中文医疗问答机器人程序
- 一个基于大模型微调的中文医疗问答机器人应用
- 一个基于大模型微调的中文医疗问答机器人应用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0