Behind the feature: Inline device frames
Figma's inline device frames let designers drag and resize phone, tablet and watch bezels directly in the editor while still interacting with the prototype screen. Because device frames are raster images, the team built 50 per-device SVG hit targets: a red draggable bezel region that scales with the device and a green 16-pixel resize outline. SVG's built-in hit detection and mouse handlers separate bezel clicks from screen clicks, which made it a better choice than CSS-specified shapes or transparency checks. An internal Figma plugin generated most targets heuristically from existing hand-drawn frames, while watches and other unusual shapes were drawn by hand.
Related posts
- Version control: Three ways Figma explored horizontal scrolling
Figma mediumAdept
Adding horizontal scrolling to Figma's Layers panel was harder than expected because the list is virtualized (only visible rows render), rows are interactive (hide, lock, collapse, rename), and layer names vary in length. Three prototypes were rejected: sticky edge icons for out-of-view parents, which needed opaque backgrounds that clashed with the row structure; full auto-scroll to a selected layer, which disoriented users; and a rename text box that expanded while scrolling, which flickered because resizing was done in JavaScript. The shipped design leaves blank space above visible layers and resets an in-progress rename on scroll. It auto-scrolls only when a selected layer overflows the left edge by 50px or more, using an invisible render of unrendered rows to measure them for precise alignment.
- Building accessibility into a canvas-based product
Figma mediumAdept
Because Figma renders its canvas itself rather than through HTML, the browser's accessibility tree is nearly empty, so Figma rebuilt accessibility with a hidden but laid-out "Mirror DOM" synced to the scenegraph. It rests on four pieces: an incrementally updated internal accessibility tree of per-layer accessible summaries, a recursive React component that renders ARIA-labelled elements positioned via concatenated affine transforms, two-way sync between canvas selection and keyboard focus, and ARIA live-region announcements that merge repeated events like nudges into one message. Mirror DOM elements are deliberately not visually-hidden, so magnifiers, focus outlines and voice control still get correct spatial positions.
- Behind the feature: comments, contextually
Figma mediumAdept
Adding general and contextual (canvas-anchored) comments to Figma Community files turned out to be harder on interaction design than on code reuse. A bug bash surfaced UX problems that led to a lightbox-style modal replacing a fullscreen view that was easy to enter but hard to leave, plus pin icons, "See in context" hints and a scroll-back button for contextual comments in the feed. On the frontend, smooth panning between comment locations came from exposing animation parameters in Figma's Skew-based viewer. The hover expansion avoids canvas re-renders by keeping the viewer at full size and shrinking an overlaid border mask, and an intermediary state converts coordinates so CSS can animate the switch from absolute to fixed positioning.
- A conversation with Figma's accessibility team
Figma easyNovice
Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta. Open-beta feedback showed the feature worked in VoiceOver but needed fixes for JAWS and NVDA. Low-vision users also rely on visuals alongside the screen reader, so the team added positioning data to the accessibility tree, focus-triggered hover interactions, scroll-following, and focus-aware toolbar hiding. For FigJam, designs are translated into HTML with accessibility metadata, and reading order now uses a spatial heuristic that reads left-to-right and top-to-bottom while keeping sticky clusters together, borrowed from find-and-replace. Open problems include announcing real-time collaborative changes and giving designers control over the generated semantic HTML.
- Behind the feature: Find and replace
Figma easyNovice
Find and replace in Figma and FigJam turned out to be far harder than a search bar because canvas content is multi-directional, so result ordering had to be designed rather than inherited. The team first reused the prototyping engine's row-by-row sort, then moved to sorting by FigJam sections, a proximity-based spatial grouping algorithm, and heuristics where tall sections sort left-to-right and wide ones top-to-bottom. Zooming targets an 'effective font size' range (font size × zoom), and panning only happens when a match leaves an invisible central box. In Figma, search moved into the layers pane to favor layer and page search over consistency with FigJam, Enter-key behaviour was settled through internal testing, and smarter casing rules replaced the plugin's 'Keep original case' setting.