P

Pro Figma Implement Design

All-in-one skill covering translate, figma, nodes, into. Includes structured workflows, validation checks, and reusable patterns for creative design.

SkillClipticscreative designv1.0.0MIT
0 views0 copies

Pro Figma Implement Design

A Claude Code skill providing a structured workflow for translating Figma designs into production-ready code with pixel-perfect accuracy. Covers the complete design-to-code pipeline from file inspection through component implementation, responsive adaptation, and visual QA.

When to Use This Skill

Choose Pro Figma Implement Design when:

  • You have a Figma design and need to implement it as production code
  • You want a systematic approach to design-to-code translation
  • You need pixel-perfect implementation of complex layouts
  • You're building a component library from Figma design system files
  • You want to ensure your implementation matches the design spec exactly

Consider alternatives when:

  • You need basic Figma file inspection (use a Figma toolkit skill)
  • You want general frontend design principles (use a frontend design skill)
  • You need to set up a design system from scratch (use a UI design system skill)

Quick Start

# Install the skill claude install pro-figma-implement-design # Implement a page from Figma claude "Implement this Figma page as a React component: [Figma URL]. Use Tailwind CSS." # Build a component from design claude "Build a Card component matching this Figma design: [URL]. Include all 4 variants shown." # Full page implementation claude "Implement the dashboard page from this Figma file. Start with the header and sidebar layout."

Core Concepts

Design-to-Code Workflow

PhaseActivitiesOutput
1. InspectRead Figma file, identify components and layoutComponent inventory
2. TokenizeExtract colors, fonts, spacing into tokensDesign token file
3. StructureMap Figma frames to HTML/component hierarchyComponent tree
4. ImplementBuild components with stylingWorking components
5. ResponsiveAdapt layouts for all breakpointsResponsive implementation
6. QACompare implementation to designVisual diff report

Layout Translation Rules

Figma Auto Layout → CSS Flexbox
  Direction: Vertical → flex-direction: column
  Direction: Horizontal → flex-direction: row
  Gap: 16 → gap: 1rem
  Padding: 24 → padding: 1.5rem
  Alignment: Center → align-items: center

Figma Constraints → CSS Positioning
  Left & Right → width: 100% (or specific margins)
  Center → margin: 0 auto
  Scale → percentage widths
  Fixed → position: fixed/sticky

Figma Grid → CSS Grid
  Columns: 12, Gutter: 24 → grid-template-columns: repeat(12, 1fr), gap: 1.5rem

Component Mapping

Figma PatternCode PatternNotes
Component with VariantsProps-based componentMap variant names to prop values
Instance with OverridesComponent with propsOverride values become prop values
Nested ComponentsComponent compositionChild components receive props
Auto Layout FrameFlex/Grid containerDirect CSS mapping
Absolute Positioned Layerposition: absolutePreserve exact coordinates

Configuration

ParameterTypeDefaultDescription
frameworkstring"react"Target: react, vue, svelte, html
stylingstring"tailwind"Styling: tailwind, css_modules, styled_components, emotion
responsivebooleantrueInclude responsive breakpoints
component_librarystring"custom"Base: custom, shadcn, radix, mui
pixel_perfectbooleantrueEnforce exact pixel matching

Best Practices

  1. Work top-down: layout first, details last — Start with the page-level layout (header, sidebar, main content area), then implement sections within each area, then individual components. This prevents rework when the layout needs adjustment.

  2. Build reusable components for repeated patterns — If a design uses the same card in a grid, build the card component once with props for the variable content. Don't copy-paste styled divs for each card instance.

  3. Use Figma's auto-layout as your CSS guide — Figma's auto-layout maps directly to flexbox. Direction, gap, padding, and alignment all have 1:1 CSS equivalents. If the designer used auto-layout, your job is straightforward.

  4. Handle responsive design proactively — Figma designs are usually at desktop width. Implement the desktop version first, then add responsive breakpoints. Ask the designer about mobile layouts if they're not in the file.

  5. Visual QA with side-by-side comparison — Open your implementation next to the Figma design and compare section by section. Check spacing, colors, font sizes, and alignment. Use browser DevTools to measure values precisely.

Common Issues

Spacing doesn't match Figma exactly — Figma uses absolute pixels; your CSS might use rem. Ensure your base font size matches your conversion (16px = 1rem). Also check for auto-layout padding vs. gap, which map to different CSS properties.

Fonts render differently in browser — Font rendering varies between Figma and browsers. Use the same font family and weight, but accept minor rendering differences. Focus on matching size and line-height rather than pixel-identical rendering.

Complex layouts break on smaller screens — If the Figma design only shows desktop, implement with responsive design in mind. Use max-width containers, flexible grids, and test at 768px and 375px breakpoints even if the designs don't specify mobile layouts.

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates