figma-generate-library

Generate code-aligned Figma design systems with tokens, components, and documentation.

Updated May 13, 2026
One-click install
npx skills add https://github.com/DevPelumi/sleeqma --skill figma-generate-library-devpelumi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figma-generate-library
Source: https://github.com/DevPelumi/sleeqma/tree/main/backend/figma-plugin-bundle/skills/figma-generate-library
Command: npx skills add https://github.com/DevPelumi/sleeqma --skill figma-generate-library-devpelumi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Building and maintaining a Figma design system that stays in sync with a production codebase is a manual, error-prone process that leads to inconsistent tokens, mismatched components, and broken developer handoff. This Skill eliminates that friction by enforcing industry-standard best practices from real-world design systems like Material 3, Polaris, and Simple Design System.

Core Features & Use Cases

  • End-to-end design system orchestration: Guides you through a mandatory multi-phase workflow (discovery, foundations, file structure, component build, QA) with user checkpoints at every step to avoid costly rework.
  • Token and component generation: Includes reusable helper scripts to create variable collections, primitive and semantic tokens, component variant matrices, and documentation pages, all bound to your codebase's existing design tokens.
  • Use Case: For a product team with a React codebase using CSS custom properties for design tokens, use this Skill to automatically generate a matching Figma design system with color, spacing, and typography tokens, plus component libraries that are fully linked to production code via Code Connect.

Quick Start

Use the figma-generate-library skill to generate a complete, code-aligned design system in your Figma file, including all design tokens, component libraries, and documentation pages.

Frequently Asked Questions about figma-generate-library

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Figma design system from an existing codebase?

To generate a Figma design system from your codebase, you use an automated orchestration workflow that extracts design tokens and constructs matching component libraries. This ensures your Figma file stays fully aligned with production code.

How do I sync Figma design tokens with CSS custom properties from my codebase?

You can sync Figma design tokens with CSS custom properties by using token generation scripts that map codebase variables to primitive and semantic Figma tokens. This enforces consistency and prevents mismatched styling.

What is the best way to map Figma components to React code for developer handoff?

The best way to map Figma components to React code is by using Code Connect mapping during the design system generation process. This binds Figma components directly to production code, ensuring accurate developer handoff.

Can I use an automated workflow to build a Figma component library with variant matrices?

Yes, you can build a Figma component library with variant matrices by running component generation scripts. These scripts construct variant matrices and documentation pages based on industry-standard design patterns.

Does generating a Figma design system require manual checkpoints during the process?

Generating a Figma design system requires mandatory user checkpoints at every phase of the workflow, including discovery, foundations, file structure, and component build. This prevents costly rework and ensures idempotent state tracking.

What design patterns are enforced when generating Figma libraries from code?

When generating Figma libraries from code, the workflow enforces best practices and patterns from real-world design systems like Material 3, Polaris, and Simple Design System to ensure professional-grade, scalable output.