运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install figma-design-analyzer
镜像加速npx clawhub@latest install figma-design-analyzer --registry https://cn.longxiaskill.com镜像同步中
技能文档
Overview
This skill enables analysis of Figma design files to extract design system data and validate implementations.
Features
- Design System Extraction: Extract colors, typography, spacing, and components
- Screenshot Export: Export design screenshots
- Implementation Validation: Compare designs against actual code implementations
Usage
npm install figma-design-analyzer
Configuration
Required environment variables:
FIGMA_API_KEY: Your Figma API tokenFIGMA_FILE_KEY: The Figma file ID to analyze
Example
const analyzer = require('figma-design-analyzer');
analyzer.analyze('file-key', { extractColors: true, extractTypography: true, extractComponents: true }).then(results => { console.log(results); });