Don't ask a model to speak Figma's plugin API. Don't ask it for CSS and hope a screenshot is a design.

I wanted a format a model can write, a schema can reject, and Figma can turn into native, editable frames.

That's Compact Design.

It's a small JSON language. @compact-design/core validates, normalizes, lints, and patches it. The Figma plugin is the first adapter. Core never depends on Figma.

Repo: github.com/Elliot727/compact-design