figma-core-workflow-b

Featured

Export images, icons, and assets from Figma files via the REST API. Use when building an asset pipeline, exporting icons as SVG/PNG, or rendering frames to images for documentation or previews. Trigger with phrases like "figma export", "figma images", "export figma icons", "figma assets", "figma render".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

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

Skill Content

# Figma Core Workflow B -- Asset Export ## Overview Export images, icons, and assets from Figma files using the REST API. Render specific nodes as PNG, SVG, JPG, or PDF. Build automated asset pipelines for icons, illustrations, and component previews. ## Prerequisites - Completed `figma-install-auth` setup - Node IDs of the frames/components to export (from `figma-hello-world`) - `FIGMA_PAT` and `FIGMA_FILE_KEY` env vars set ## Instructions ### Step 1: Render Nodes as Images ```typescript const PAT = process.env.FIGMA_PAT!; const FILE_KEY = process.env.FIGMA_FILE_KEY!; // GET /v1/images/:file_key?ids=X,Y&format=png&scale=2 // Supported formats: png, svg, jpg, pdf // Scale: 0.01 to 4 (SVG always exports at 1x) // Max image size: 32 megapixels (larger images are auto-scaled down) async function exportImages( nodeIds: string[], format: 'png' | 'svg' | 'jpg' | 'pdf' = 'png', scale = 2 ): Promise<Record<string, string | null>> { const params = new URLSearchParams({ ids: nodeIds.join(','), format, scale: String(format === 'svg' ? 1 : scale), // SVG is always 1x }); const res = await fetch( `https://api.figma.com/v1/images/${FILE_KEY}?${params}`, { headers: { 'X-Figma-Token': PAT } } ); if (!res.ok) throw new Error(`Image export failed: ${res.status}`); const data = await res.json(); // data.images: { "nodeId": "https://..." | null } // null means the node failed to render (invisible, 0% opacity, or invalid ID) // URLs expire after...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

figma

Integrate with Figma API for design automation and code generation. Use when extracting design tokens, generating React/CSS code from Figma components, syncing design systems, building Figma plugins, or automating design-to-code workflows. Triggers on Figma API, design tokens, Figma plugin, design-to-code, Figma export, Figma component, Dev Mode.

2 Updated today
Makiya1202
AI & Automation Featured

figma-ci-integration

Automate Figma design token sync and asset export in CI/CD pipelines. Use when setting up GitHub Actions for Figma, automating icon exports, or validating design token changes in pull requests. Trigger with phrases like "figma CI", "figma GitHub Actions", "automate figma export", "figma CI pipeline".

2,266 Updated today
jeremylongshore
AI & Automation Featured

figma-core-workflow-a

Extract design tokens, colors, typography, and spacing from Figma files via REST API. Use when building a design-to-code pipeline, syncing design tokens, or extracting styles from a Figma design system file. Trigger with phrases like "figma design tokens", "extract figma styles", "figma to CSS", "sync figma colors", "figma typography".

2,266 Updated today
jeremylongshore
AI & Automation Solid

figma-api

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

1,034 Updated today
a5c-ai
AI & Automation Featured

figma-hello-world

Make your first Figma REST API call to fetch a file and inspect its node tree. Use when starting a new Figma integration, testing API connectivity, or learning the Figma document structure. Trigger with phrases like "figma hello world", "figma first call", "figma quick start", "fetch figma file".

2,266 Updated today
jeremylongshore