Implementing a Figma design in React means translating the file's layout, type, color, spacing, and interactive states into components that behave correctly at every screen size. The key condition is treating Figma as a specification, not a picture: you read structure, tokens, and states from the file, build them into reusable React components, then verify against the design at defined breakpoints. The steps below cover that full path, from preparing the Figma file to shipping a responsive, accessible build that matches what the designer intended rather than only the frame they showed.
Most mismatches between a Figma file and a React app come from skipping the boring parts: unclear naming, missing states, ad hoc pixel values, and no agreed breakpoints. A disciplined pipeline fixes those before a single component is written, and it keeps fixes cheap because spacing, color, and type live in one place instead of being scattered across inline styles.
Step 1: Prepare the Figma file before you open your editor
You can't implement what the file doesn't specify. Before coding, walk the design with the person who made it and resolve gaps. Figma's own interface helps here: the Inspect panel exposes CSS for a selected layer, Dev Mode (a paid seat type in Figma's plans) exposes measurements, code snippets, and ready-for-development status, and variables/design tokens can be exported or synced to code.
Check for these, and ask for each if missing:
Components and variants for buttons, inputs, cards, navigation, and anything reused. A frame of loosely grouped rectangles is a red flag; implementing it invites inconsistency. States for every interactive element: default, hover, focus, active, disabled, loading, error, empty, and success where relevant. Breakpoints, or at least representative frames for mobile, tablet, and desktop. Ask which widths matter, not just which frames exist. Tokens: named colors, type styles, spacing scales, radii, shadows, and border widths. These become your CSS variables or theme config. Content rules: truncation behavior, maximum line counts, image aspect ratios, and what happens with long text or missing data. Assets: icons and illustrations, ideally as SVG, with a decision on whether they come from a library (Lucide, Heroicons, Material Symbols) or exports.
Name things according to what they are, not what they look like. "Primary button" survives a redesign; "blue rounded rectangle" doesn't. If the file uses auto layout consistently, the designer has effectively described flex behavior already, which makes your job easier.
Step 2: Choose the styling approach and set up tokens
React doesn't care how you style it, so pick one approach for the project and stay consistent. The main options and their honest trade-offs:
| Approach | Strengths | Drawbacks |
|---|---|---|
| CSS Modules | Scoped class names, plain CSS, no runtime cost | Manual token wiring, no utility shorthand |
| Tailwind CSS | Fast iteration, tokens via config, small production CSS after purge | Verbose class lists, needs team discipline |
| CSS-in-JS (styled-components, Emotion) | Dynamic theming in JS, colocated styles | Runtime overhead, extra bundle weight |
| Vanilla Extract or CSS variables + plain CSS | Typed tokens, zero runtime | More setup, smaller ecosystem |
For most new projects I'd pick Tailwind with a token-driven config or CSS variables plus CSS Modules, because both keep the design system close to the code without a runtime cost. Whichever you choose, map Figma tokens to code tokens once:
1: Create a theme.css (or Tailwind config) with CSS custom properties for color, spacing, type scale, radii, and shadows. 2: Name them semantically: --color-surface, --color-text-muted, --space-4, --radius-md. 3: Record the mapping in a shared document so a designer changing a token knows exactly where it lands in code.
This is the single highest-leverage step. When a color or spacing value appears in exactly one place, every later adjustment is a one-line change instead of a find-and-replace hunt across components.
Step 3: Read the design as a component tree
Before writing JSX, sketch the component hierarchy on paper or in a scratch file. Figma's layer structure usually mirrors it if the file is well built, but verify rather than trust. Ask three questions per element:
Is it reusable? A card appearing six times is a Card component with props; a one-off decorative banner can stay inline.
What varies? That's your props and variants. A button varies by variant (primary, secondary, ghost), size, icon position, and state, not by being copy-pasted four times.
Where does data come from? Layout should be separated from data. A ProductCard receives a product object; it doesn't fetch one.
A practical example: a Figma "pricing section" with three plan cards is one PricingCard component rendered three times with different props, plus a PricingSection wrapper that owns the grid and heading. Build the card against the most demanding variant (usually the one with the most content, such as a feature list with a long item), confirm it holds at that extreme, then the lighter variants fall out for free.
Step 4: Build the layout shell first, using a mobile-first order
Layout is where most "it looks wrong" bugs originate, so get it right before polishing visuals. Follow this order:
1: Page shell: header, nav, main, footer landmarks, and the overall max-width container (commonly 1200–1440px, but read it from the file). Use semantic HTML: , , , , with headings. 2: Major sections in vertical order, with placeholder blocks for content. 3: Grid and flex containers per section, translating Figma's auto layout into display: flex or display: grid with gap, justify-content, and align-items. 4: Content and components filling those containers.
Build mobile-first: write base styles for the smallest breakpoint, then add min-width media queries or Tailwind's sm:, md:, lg: prefixes upward. If the file only shows desktop, derive the mobile behavior from the design's stacking logic and confirm with the designer rather than guessing silently.
Figma's auto layout maps almost directly to flexbox. "Horizontal, gap 16, align center, space-between" becomes a flex row with justify-content: space-between; align-items: center; gap: 1rem. When a section is genuinely two-dimensional (cards that wrap into columns), grid is the better tool: grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) handles a lot of responsive card rows without bespoke media queries.
Step 5: Translate spacing and sizing consistently
Two failure modes dominate here: eyeballing pixels, and mixing units. Use a single spacing scale pulled from the file (often a 4px or 8px base) and apply it everywhere. If the designer used 12px in one place and 13px in another for what should be the same gap, ask which is intended; the difference is usually an accident.
Production notes:
Use relative units (rem) for type and spacing so browser zoom and user font-size settings work. Keep borders and icon sizes in pixels where appropriate. Don't set fixed heights on text containers. Figma frames have explicit heights because Figma requires them; content on the web grows. Use min-height and padding instead so text wrapping doesn't clip. Respect line-height from the file as a multiplier of font size, not a fixed pixel value. Check letter-spacing; designers often tighten headings, and missing it makes type look subtly wrong. Match radii and shadows exactly from tokens; hand-typed shadows accumulate drift fast.
For a card with 24px padding, 16px gap, and 8px radius, the component's styles should reference --space-6, --space-4, and --radius-sm (or the equivalent scale), not literal values. The literal values appear only in the token definitions.
Step 6: Build components against every state, not just the pretty one
This is where React earns its keep. Build interactive components as state machines with explicit variants:
Implement hover, focus-visible, active, and disabled states from the Figma variants as CSS. If the file didn't include a focus state (common and worth flagging), add a visible one anyway; keyboard users need it and it's an accessibility baseline, not a design flourish.
For form inputs, cover default, focused, filled, error, and disabled, plus the error message layout. For anything that fetches, cover loading, empty, and error states. A component that only renders the happy path from the design will look fine in review and break the first time real data arrives.
Step 7: Make images and icons behave
Export icons as SVG and render them as components, not as tags, so they inherit currentColor and scale cleanly. For photographic images:
Define aspect ratios per placement from the file (for example aspect-ratio: 16 / 9) so layout doesn't jump while images load. Provide width and height attributes or a CSS aspect ratio to reserve space and protect layout stability. Use srcset and modern formats (WebP, AVIF) with sensible sizes; Figma can export at 1x, 2x, and 3x, but most production front ends serve responsive sizes from an image CDN instead. Write meaningful alt text; decorative images get alt="".
Icons deserve one more check: confirm the stroke width and size against the file, because a 1.5px icon in an 18px box behaves differently from a 2px icon in a 24px box when scaled.
Step 8: Handle responsiveness against real breakpoints
Figma's responsive behavior is only as good as the frames provided. If the file shows a desktop frame and a mobile frame, the tablet range is undefined; ask the designer for guidance (stack the columns, reduce padding, hide secondary nav?) rather than inventing it.
Practical checks:
1: Resize the browser continuously from 320px to 1920px and watch for breakpoints where the design should change but doesn't. 2: Test the extremes with long text, translated strings, and large images. 3: Confirm tap targets are at least 44×44px on touch. 4: Check the layout doesn't require horizontal scroll at any width in the common range.
For multi-column sections, prefer intrinsic responsiveness (grid with auto-fit, flex wrap) over a breakpoint per component; fewer breakpoints mean fewer places for inconsistency to hide.
Step 9: Match typography precisely
Fonts are the most common source of "close but not quite." Load exactly the weights and styles the file uses via a proper font strategy: self-hosted files or a font CDN, with font-display: swap so text isn't invisible while loading. A design using Inter Medium (500) with a fallback that snaps to 400 will read visibly heavier or lighter than intended, so confirm each weight is actually available.
Then apply the type scale as classes or components (h1, h2, body, caption) mapped to tokens. Avoid hardcoding font sizes per element; heading levels should receive sizes from the scale, and semantic heading levels should follow document structure rather than visual size. If a section looks like an h2 visually but is structurally an h3, use the right tag and style it.
Step 10: Verify against the Figma file, then ship
Compare your build to the design systematically rather than by squinting:
1: Side-by-side at matching widths. Set the browser to a frame's exact width (for example 1440px or 375px) and screenshot both at the same scale. 2: Use a pixel-diff tool (or Figma's compare view with a screenshot) to catch spacing drift you'd miss by eye. 3: Check states by tabbing through the page for focus rings, hovering every control, and submitting forms with invalid and valid input. 4: Run an accessibility pass: keyboard-only navigation, a screen-reader spot check, color contrast of text and UI components (WCAG AA being the usual minimum), and clear labels on inputs. 5: Test on real devices, not just browser devtools emulation, for touch targets, sticky headers, and scrolling behavior.
When something in the design can't be implemented exactly (an unusual blend mode, a custom scroll behavior, a font not licensed for web), raise it early. A designer usually has a fallback in mind; discovering it in sprint review wastes the whole cycle.
Where the handoff usually breaks
Beyond the checklist, a few recurring problems are worth naming so you catch them faster:
The file is a flat picture. No components, no variants, no tokens. The fix is a conversation, not a workaround; implementing a flattened design means recreating a system in code that the file never described. Ask the designer to work in components and variables, and treat that as a standing team practice.
Designer and developer use different words for the same thing. "Primary," "Brand," and "CTA" button are the same component. Agree on a vocabulary in the file and in the codebase, and the miscommunication disappears.
Tokens drift. A design updated in Figma but not exported to code silently desyncs. Either use Figma's variables-to-code sync (or an export step via the REST API) or put token updates in the design review checklist.
"Just ship it" pressure. Skipping states and responsive checks saves an hour now and costs a bug report later. State coverage and breakpoint checks are cheap when done with the component; they're expensive once it's shipped.
Over-fidelity to the frame. Figma can't express content-driven layout well: a card grid with variable text length, or a table with real data, will expose constraints the frame never showed. Build with the content contract (max lengths, overflow rules) rather than only the sample content.
Animation handoff. Figma's prototyping can show transitions, but timing curves, springs, and performance budgets belong in code. Use CSS transitions for simple states and a library like Framer Motion only when interaction complexity justifies it; a static arrow from prototype to code is not a specification.
How long each stage actually takes
There's no universal estimate, but relative-time intuition helps with planning. File preparation and token setup are front-loaded: a well-organized file might take an hour of review, while a messy one takes longer and saves its time back in implementation. Component building is typically the largest block and benefits most from variant coverage. Verification is often underestimated; a full responsive, state, and accessibility pass can take as long as the initial build for a complex page, especially on first pass. If you plan the pipeline in this order, each stage's output is the next stage's input, and the final check is a comparison rather than an open-ended debugging session.
Frequently asked questions
Can I skip Figma Dev Mode and just use the Inspect panel? Yes. Dev Mode adds code-generation conveniences and a status workflow, but the Inspect panel gives measurements, CSS properties, and asset exports. Use what your team's Figma plan includes.
Should I export the design to HTML with a plugin and paste it into React? Some tools generate React or HTML from frames. They can be a starting point for a static page, but generated output tends to be non-semantic, hard to maintain, and unaware of your component library. Treat generated code as a scaffold you rewrite, not a finished implementation.
How do I keep code and design in sync after launch? Keep tokens in one source of truth (CSS variables or a Tailwind config synced from Figma variables when possible), store components in a shared library with examples, and include a visual regression check in CI so token or style regressions surface before release.
What if the design isn't responsive at all? Ask for breakpoint intent before building. If none exists, propose a simple, defensible scheme (stack at mobile, two columns at tablet, full grid at desktop) and confirm it with the designer so the assumption is recorded, not hidden.
Implementing a Figma design in React is less about translating pixels and more about translating a system: tokens become variables, frames become layouts, variants become props and states, and the file's gaps become questions answered before code is written. That pipeline produces a build that looks right on the frames you were shown and holds up in the situations you weren't, which is where the real value sits.