Behind the feature: Find and replace
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.
Related posts
- How we built AI search in Figma
Figma easyNovice
Figma pivoted from an AI design-autocomplete prototype to shipping visual and semantic search after research showed 75% of objects added to the canvas come from other files and designers struggle to find mid-level frames. To keep indexing tractable on an infinite canvas, the team indexed only UI-like frames found via dimension heuristics, deduplicated copied designs and unaltered file copies, and delayed indexing until a file was idle for four hours. Search quality was measured with evals built as a Figma plugin for labeling results, and the UI landed in the Actions panel with previews and filters to serve both exploration and execution workflows.
- 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.
- 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.
- The infrastructure behind AI search in Figma
Figma mediumAdept
Figma's AI search embeds frames and published components with a CLIP-based multimodal model, so screenshots, layer selections and text all query one vector space. Text queries are embedded directly, while selections are rendered to images first, which worked better than embedding JSON. Indexing runs as chained async jobs: a headless C++ editor enumerates frames, metadata goes to DynamoDB, thumbnails go to S3, SageMaker produces embeddings in batches, and OpenSearch kNN serves faceted vector search. Component search runs lexical and vector queries in parallel and merges them with min-max score normalization. Costs were cut by porting Ruby to C++, CPU rendering with llvmpipe, a four-hour indexing debounce (only 12% of data processed), dropping duplicates and drafts (index halved) and vector quantization; the post also covers an OpenSearch replica bug and a pitfall where excluding embeddings from _source wiped them on document updates.
- Improving performance in the layers panel
Figma mediumAdept
Figma rebuilt its layers panel to fix two problems: it computed data for every expanded node, and it recomputed everything after any change. Splitting data gathering into two passes means full row data is computed only for the few dozen windowed rows. Modeling the row tree with lazy, cached derived properties (spreadsheet-like dependency tracking) means only the affected subtree recomputes. A rope-like recursive list for cached ordered children avoids O(n²) memory, cutting memory by up to 99%, and key interactions got 30–50% faster in large files, with smoother editing overall.