component-to-figma

Map code-native components to Figma with strict token inheritance.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill component-to-figma
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-to-figma
Source: https://github.com/TechsioCZ/new-engine/tree/main/.agents/skills/component-to-figma
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill component-to-figma

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrates UI library components from code into a dedicated Figma design system, ensuring pixel-parity, consistent token inheritance, and smooth designer-dev handoff.

Core Features & Use Cases

  • 1:1 visual parity between code components and Figma components, including tokens and properties
  • Storybook inspection, Figma validation, and library integration workflows
  • Code Connect setup and ongoing synchronization for component tokens
  • Use Case: When migrating Button, Input, or Badge, align Figma tokens with CSS custom properties and ensure downstream code mapping

Quick Start

Migrate a Button component from code to Figma by aligning tokens and validating against Storybook.

Frequently Asked Questions about component-to-figma

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

FAQPage Schema
How do I migrate UI components from Storybook to Figma with pixel parity?

To migrate UI components to Figma with 1:1 parity, you map code-native atoms and molecules like Button or Input using strict token inheritance. This aligns Figma tokens with CSS custom properties and validates visual parity against Storybook before publishing.

How does token inheritance work when syncing code components to a Figma design system?

Token inheritance works by mapping consistent token chains across core, semantic, and component layers from your code into Figma. This ensures that Figma component properties accurately reflect CSS custom properties for a smooth designer-dev handoff.

Do I need Code Connect to sync Figma design tokens with my UI component library?

Code Connect is used for setup and ongoing synchronization of component tokens between Figma and your code. It links the visual Figma components to their code-native counterparts, ensuring downstream code mapping remains accurate during library integration.

Can I validate Figma component properties against Storybook before publishing to a design system?

Yes, validation against Storybook is a required step before publishing to the Figma library. This inspection workflow verifies that the mapped Figma components maintain strict 1:1 visual parity and token consistency with the code-native UI components.

What is the best way to maintain design token consistency between Figma and code-native UI components?

The best way to maintain design token consistency is enforcing strict token chains across core, semantic, and component layers. Validating these mapped tokens against Storybook and Figma prior to library publishing ensures continuous 1:1 parity.

What happens if my core and semantic token chains are inconsistent before component migration to Figma?

If token chains are inconsistent across core, semantic, and component layers, the migration cannot guarantee 1:1 visual parity. Consistent token aliasing and validation against Storybook and Figma are required prerequisites before publishing components.