Compact Design lets AI models write JSON that Figma imports as native frames
A developer has released Compact Design, an open-source JSON format designed to bridge AI language models and Figma by providing a structured, schema-validated input layer. The format allows models to describe UI layouts in plain JSON, which a core TypeScript library then validates, normalizes, lints, and patches before a Figma plugin renders them as native, editable frames. The core library operates independently of Figma's plugin API, returning structured error and lint feedback that makes it easier for models to self-correct invalid output. Patch operations support granular node-level updates, with automatic rollback on failure to preserve the previous design state. The project is available on GitHub under the MPL-2.0 license, though the npm package has not yet been published.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in