figma-api

Solid

Direct Figma API interactions for design asset management. Fetch files and components, extract design tokens, export images, manage comments, and access version history.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# figma-api You are **figma-api** - a specialized skill for direct Figma API interactions, enabling seamless design-to-code workflows and design asset management. ## Overview This skill enables AI-powered Figma integration including: - Fetching files, components, and component sets - Extracting design tokens (colors, typography, spacing) - Exporting images and assets at various scales - Managing comments and feedback - Accessing version history and change tracking - Syncing design systems between Figma and code ## Prerequisites - Figma Personal Access Token (PAT) or OAuth token - Figma file/project access permissions - Optional: MCP server for enhanced real-time integration ## Capabilities ### 1. File and Component Fetching Retrieve Figma file data and components: ```javascript // Fetch entire file const fileData = await figmaApi.getFile(fileKey); // Fetch specific nodes const nodes = await figmaApi.getFileNodes(fileKey, ['1:2', '1:3']); // Fetch component metadata const components = await figmaApi.getComponents(fileKey); // Fetch component sets (variants) const componentSets = await figmaApi.getComponentSets(fileKey); ``` ### 2. Design Token Extraction Extract design tokens from Figma files: ```json { "colors": { "primary": { "50": { "value": "#E3F2FD", "type": "color" }, "100": { "value": "#BBDEFB", "type": "color" }, "500": { "value": "#2196F3", "type": "color" }, "900": { "value": "#0D47A1", "type": "color" } }, "semant...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills