figma-mcp-stdio 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -28,7 +28,7 @@ const taskList = [
|
|
|
28
28
|
- 保存到编辑文件同级的images目录下
|
|
29
29
|
- 张图片下载失败时自动重试 2-3 次`,
|
|
30
30
|
`【页面生成要求】:
|
|
31
|
-
- 下列属性严格遵循Figma中的属性设置:borderRadius、fontWeight、fontSize
|
|
31
|
+
- 下列属性严格遵循Figma中的属性设置:borderRadius、fontWeight、fontSize禁止任何调整`,
|
|
32
32
|
'【前期准备】:',
|
|
33
33
|
"1. 使用能够获取Figma设计稿数据的工具提取页面的JSON结构数据,注入上下文中,数据名称 figmaJson",
|
|
34
34
|
"2. 页面整体的nodeId节点ID需要转换,使用【Figma节点ID转换规则】来获取转换规则, 使用【下载Figma图片工具】下载页面截图",
|
|
@@ -38,6 +38,7 @@ const taskList = [
|
|
|
38
38
|
"6. 使用【获取图片详情工具】获取截图详情",
|
|
39
39
|
"【生成页面】:",
|
|
40
40
|
`7. 根据截图详情内容生成页面,结合 figmaJson数据优化样式,截图为主,figmaJson 数据为辅。分段生成代码,例如template、script、scss,防止任务过大超时
|
|
41
|
+
- ⚠️ 重要提示:样式生成时gap转换为margin、font-weight: 600转换为font-weight: bold
|
|
41
42
|
`,
|
|
42
43
|
"【自检流程】:",
|
|
43
44
|
"8. 执行自检流程,利用截图详情执行【检查页面】工具自检",
|