figma.com · Free post · Product design & UX · Execution, roadmaps & process

Behind the feature: Inline device frames

FigmaFeb 26, 20247 min
Sourcefigma.com
KindFree post
PublishedFeb 26, 2024
Originalfigma.com ↗
N:

Figma's inline device frames feature brings mobile, tablet, and watch interfaces directly into the editor, enabling designers to prototype with realistic device representations without leaving their workspace. The team overcame significant design and engineering challenges—including representing diverse device shapes, creating 50 unique interaction hit targets, and building custom tooling—to deliver an intuitive, tactile experience that bridges digital prototyping and real-world device handling.

01Key takeaways

  • Use SVGs for interactive UI elements requiring precise hit detection and shape differentiation across varied form factors.
  • Semi-automate repetitive design tasks with custom internal tools, but preserve manual control for edge cases and quality assurance.
  • Establish clear guiding principles early to align cross-functional teams and guide iterative design decisions.
  • Test features at the same fidelity level they'll be used—designers tested device frames as designers would interact with them.
  • Prioritize user-centric interaction design over factory-scale automation when quality and precision matter more than volume.
  • Collaborate across disciplines (engineering, design, product, marketing) from discovery through implementation to surface hidden constraints.

02Key sections

Why prototyping matters
Prototyping helps designers understand how their work actually functions in real contexts, revealing gaps and opportunities early. Inline device frames extend Figma's existing inline preview feature by embedding interactive device representations directly in the editor.
Guiding principles and collaborative foundation
The team established three north-star principles: seamless integration into design workflows, realistic device representation, and intuitive user interactions. Development was informed by community feedback and cross-functional input from engineering, design, product, and marketing.
Representing diverse device shapes
Capturing the spectrum of modern devices—from notched iPhones to dynamic islands, square and round bezels, and non-rectangular watches—required meticulous attention to detail. The team focused on mobile, tablet, and watch devices due to space constraints in the inline preview.
SVG-based interaction design
The team crafted 50 unique hit targets using SVGs, which provide built-in hit detection and allow precise differentiation between draggable bezels and resizable edges. Each SVG uses red shapes for drag zones and green outlines for resize areas, maintaining a consistent 16-pixel resize width.
Semi-automated hit target creation
An internal Figma plugin semi-automates hit target generation by extrapolating from hand-drawn device frames using heuristics like inner-to-outer frame ratios. Complex devices like watches still require manual refinement, balancing automation efficiency with design precision.
Boutique over factory approach
Rather than fully automating device frame creation, the team maintains a curated, manually-managed library. This approach allows focused attention on quality and solving deeper challenges while still providing a robust device offering without the overhead of supporting hundreds of devices annually.
“We wanted the device to feel tangible in the editor. You have to be able to grab it, resize it, and move it.”Nikolas Klein, Product Designer, Figma · figma.com
“The best solutions emerge from a mix of experimentation, attention to detail, and rigorous testing.”Chia Amisola & Jediah Katz · figma.com

03Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.