Repository navigation
v0.22.0
This release makes agent work easier to follow and keep: real provider marks appear on every AI surface, a layer takes a Markdown annotation, and pasting code creates editable layers. Grid and auto layout gain cell alignment, spans, wrap alignment, and first-on-top stacking; more values bind to variables; slices become their own layer type; .pen saves carry more of a file; boolean flattens and image exports draw what Figma does; and the editor and Home take the refined interface.
Added
- Add an annotation to a layer with a Markdown note and a category, and see annotation dots and measurements on the canvas from View › Annotations.
- Paste React or JSX source with Tailwind classes or inline styles, and HTML with CSS, as editable layers: flex and grid become auto layout, text keeps its runs, and colours and numbers bind to the document's variables when exactly one holds the pasted value. Components the source does not define become named frames, expressions that need their caller become placeholder text, one toast counts both, and a paste past the size it reads is refused instead of pasted as text.
import_codeover MCP andpairdraw importread the same source into layers without running it, and the canvas menu's Paste as code and Paste as text force either result. - A colour variable binds a drop or inner shadow's colour, while number variables bind a shadow's radius, spread, or offset, a layout grid's count, gutter, offset, or section size, and the grid gap and paragraph spacing and indent fields in the properties panel.
get_cssreads a paint's alpha and profile, andset_filltakes a CSS gradient string from it —linear-gradient(<angle>deg, …)ordiamond-gradient(…)— keeping its stops; a tagged alias survives reopening and shows as bound in Figma. export_imageand browser screenshots return an MCP image content block with a text summary, so vision-capable MCP clients can see the picture; apathargument still writes the file instead.set_text_range_stylesets line height, letter spacing, letter case, or decoration on a text range,set_layoutsets wrapped content alignment and first-on-top stacking,set_minmaxremoves a size limit by takingnull, andget_nodereturns character and paragraph runs withinclude_text_runs.- Picking a boolean operation with a boolean group selected changes that group in place, keeping its children, instead of wrapping it in another boolean; the menu marks the group's current operation.
- Combine as variants from the canvas context menu, the command palette, or the Design panel header turns selected sibling components into one variant set in one undo step, and plain component names become
Property 1values named after each component, as Figma does. - A component or component set has an editable description and one documentation link in the Design panel; an instance shows its main component's description read-only, and component proxies expose
description,descriptionMarkdown, anddocumentationLinks. - A layer's fill, stroke, or effect can be saved as a shared style from its section's create action, and a frame's layout grids as a shared grid style from the Layout grids section; every selected layer that supports it binds the style in one undo step. A shared style's name, description, and values can be edited from its picker, so linked layers, including instance children, update while detached layers stay untouched.
- A layer inside a grid auto layout can take a column or row start, a column or row span, and horizontal or vertical alignment within its cell from the Design panel, kept through save and reopen.
- An auto layout frame offers wrapped content alignment, first-on-top canvas stacking, and an Absolute position toggle for its children; a size control adds a minimum or maximum at the layer's current size, and Alt while dragging a resize handle resizes from the centre while Ctrl or Command keeps children where they are instead of placing them by their constraints.
- Noise fills draw their grain on shapes; text and lines keep the flat colour.
- Saving a document opened from a
.penfile writes it back in that format, and Save As can choose either a.figor a.penfile; anything the Pencil.dev format cannot hold is reported. - Slices are their own layer type: S draws one, it round-trips through
.figwith its export settings, the layer list marks it, and SVG, PDF, and PNG exports render the page region beneath its box. A slice takes no layers and never appears in design, DOM, Tailwind, or JSX exports. - Prototype transitions play and export every easing Figma offers — the Back bezier presets, the four spring presets, and custom bezier or spring curves — and interactions can set a variable, change a collection's mode, or branch on a condition with if, else-if, and else, played in place and exported as video without changing the document.
- A Figma file the reader could only partly use now says what it skipped:
pairdraw infoand MCPopen_filereport the diagnostics, the CLI and MCP reports name the components whose records could not be read and why, and the app shows one notice after opening. A healthy file shows no notice, and an agent-opened file gets the diagnostics without it. - A layer inside an instance resets its own changes to the component without clearing the rest of the instance, the properties panel marks a row whose value an instance overrides and resets just that property, and agents can reset individual overridden properties using the property panel's field names.
- Holding Option (Alt) with nothing hovered measures the selection against its frame's edges, and a spacing field for auto layout padding or gap shows every padding area and the gaps between children with their values while it is hovered or edited, and the bands leave when the selection or tool changes.
- View › Layout Grids hides every layout grid at once with Ctrl+Shift+4 (Control+G on macOS), carrying the choice across tabs and sessions without changing any frame.
- The CLI's MP4 and WebM export takes the ffmpeg binary from
PAIRDRAW_FFMPEGwhen it is set, falling back toffmpegon the path.
Changed
- The editor and Home take the refined interface: layered panel surfaces, consistent 14/8/6px corners across cards, fields, and chips, quieter section titles, Instrument Sans, and island-shaped document tabs, tool rail, and zoom control with hover-only resize seams. Home splits into a prompt, import tiles, and recent files on the dotted workspace; its kind chips and import tiles use the compact Home sizing, and Recent groups search, sort, grid or list, Open, and Design in one compact header, with cards at least 300px wide — so mid-size windows show two instead of three — that show a real preview when one exists and a styled placeholder otherwise. Disabled Send buttons keep readable contrast.
- Every AI the app names wears the real mark of the coding agent or model that answers — the top bar, chat header and typing state, canvas cursor labels, presence lists, and Home's prompt — staying neutral until a provider is configured. While a coding agent works, its mark and live dot appear in the Following toggle and Layers panel, the top-bar chat button shows the live dot, and the composer is an 8px inset-ring field with agent-tinted status. A reply refused for lack of credit offers the provider settings, and a rate-limit notice shows the wait and holds Retry until it passes.
- The built-in design skills ship verbatim from their upstream authors — Anthropic frontend-design, Impeccable, design-taste-frontend, the ui-ux-pro-max set, and Emil Kowalski's motion and interaction skills — each with its source commit and license.
- The Code panel says it is updating until the code's preview lands, and shows Up to date again when the code is cleared.
- A text layer whose characters a range styles differently shows Mixed in the typography panel instead of the first character's value; applying a change to the layer still clears that value from every run.
- HTML import keeps a CSS grid container as a grid, with its column and row tracks, gaps, and a child's span, instead of stacking its content.
Fixed
- Flattening a boolean outlines its result into a vector instead of leaving the boolean unchanged, and flattening a container merges its visible children with the topmost child's fills; a mask shapes the merged outline without adding paint, and a layer flattened outside a container keeps its strokes, effects, opacity, and blend mode.
- A layer replaced or edited inside an instance or slot keeps its change when the file is saved and reopened, a file from before slot content stopped counting as an override no longer shows a reset action that would do nothing, and reading a file that names one slot frame from more than one instance keeps the first owner instead of opening two owners.
- A style saved to a
.figfile keeps its description and publish flag. - A constrained child stops at its own minimum or maximum width and height when resizing the parent would push it past them.
- HTML and JSX imported outside a browser apply Tailwind utilities with arbitrary values such as
w-[1024px]andbg-[#4F46E5]; a tiled or cropped image fill keeps its placement and crop in HTML, JSX, Tailwind, and SVG export, a cropped rotation with no crop transform no longer turns, and pattern fills anchor their tiles at START, CENTER, and END and wrap them across the layer's edges. - Saving a
.penfile names the frames whose layout grids or tiled image fills it could not keep and the layers whose resize constraints it cannot hold, instead of leaving them out or silently returning them to defaults, and keeps the fields an instance overrides, an ellipse's inner radius and angles, a polygon's point count, and a frame that does not lay out its children. - A canvas that cannot start says why and offers Try again instead of a blank page, Space pans after the pointer pressed a toolbar or panel button, and clicking an MCP connection while its editor is closing reopens the editor.
pairdraw import --format json,pairdraw tokens --out, andpairdraw diff visualreplace their output files in one step, so an interrupted run leaves the previous file instead of a half-written one.- Counted notifications and save warnings use each language's plural rules, so Russian and Polish read the 2–4 form instead of the 5+ form, and the loading screen says what it is preparing in the app's language instead of always in English.
- Variable-font axes appear once the font's faces load, a mixed axis or OpenType switch shows its mixed state, and a mixed axis's slider waits for a value before changing anything.
Performance
- Opening a large
.figfile with the CLI uses about 340 MB less memory: the reader's decoded records are released once its visible pages are in the graph and rebuilt only when a save needs them. Saving a.figafter editing a layer inside a component slot writes a patch instead of a whole-document write that decodes every page, so a large file no longer spikes by gigabytes for that save.
Security
- Pasting JSX no longer loads remote images, fonts, or stylesheets through escaped, commented, or nested CSS in the styling sandbox.