figma-hello-world

Featured

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".

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 Hello World ## Overview Make your first Figma REST API call. Fetch a file's metadata and document tree, then inspect the node structure that represents every layer and object in a Figma design. ## Prerequisites - Completed `figma-install-auth` setup - A Figma file key (from the URL: `figma.com/design/<FILE_KEY>/...`) - `FIGMA_PAT` environment variable set ## Instructions ### Step 1: Fetch a File ```bash # Get the full document JSON for a file curl -s -H "X-Figma-Token: ${FIGMA_PAT}" \ "https://api.figma.com/v1/files/${FIGMA_FILE_KEY}" | jq '{ name: .name, lastModified: .lastModified, version: .version, pages: [.document.children[] | .name] }' ``` Expected output: ```json { "name": "My Design File", "lastModified": "2025-03-15T10:30:00Z", "version": "1234567890", "pages": ["Page 1", "Components", "Tokens"] } ``` ### Step 2: Understand the Node Tree Every Figma file is a tree of typed nodes: ``` DOCUMENT (root) ├── CANVAS (page) │ ├── FRAME (container / auto-layout) │ │ ├── TEXT │ │ ├── RECTANGLE │ │ └── INSTANCE (component instance) │ ├── GROUP │ │ └── VECTOR │ ├── COMPONENT (reusable master) │ └── SECTION ``` Key node types: `DOCUMENT`, `CANVAS`, `FRAME`, `GROUP`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `VECTOR`, `COMPONENT`, `COMPONENT_SET`, `INSTANCE`, `LINE`, `SECTION`, `BOOLEAN_OPERATION`. ### Step 3: TypeScript Hello World ```typescript // hello-figma.ts const PAT = process.env.FIGMA_PAT!; const FILE_KEY = proc...

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 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-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 Featured

figma-reference-architecture

Reference architecture for production Figma API integrations. Use when designing a new Figma integration, planning project structure, or establishing patterns for design-to-code pipelines. Trigger with phrases like "figma architecture", "figma project structure", "figma integration design", "figma best practices layout".

2,266 Updated today
jeremylongshore
AI & Automation Featured

figma-sdk-patterns

Production-ready patterns for the Figma REST API and Plugin API. Use when building reusable Figma client wrappers, extracting design tokens, traversing node trees, or creating typed API helpers. Trigger with phrases like "figma patterns", "figma best practices", "figma client wrapper", "figma typed API".

2,266 Updated today
jeremylongshore