@tank/figma-to-code

Installation
SKILL.md

Figma to Code — Pixel-Perfect Implementation

Core Principles

  1. Extract, never guess — Every value comes from Figma MCP tools or the screenshot. Never approximate colors, spacing, or font sizes.
  2. Validate visually, always — Take a Figma screenshot AND a browser screenshot. Compare side-by-side. Code is not done until they match.
  3. Tokens over hardcodes — Extract repeated values into CSS custom properties. One source of truth for colors, spacing, typography.
  4. Component by component — Never extract an entire screen at once. Work top-down: page → sections → individual components.
  5. Project conventions first — Use the project's existing design system, component library, and naming patterns. Only create new when nothing fits.
  6. Preserve Figma naming and layers — Keep component layer hierarchy and token/variable names aligned with Figma whenever possible.

Quick-Start: The 6-Step Workflow

Installs
–
GitHub Stars
1
First Seen
–
@tank/figma-to-code — tankpkg/packages