@toghen/figma
v0.1.15
Published
Toghen's Figma adapter: tokens to Variables and Styles, component files, and the toghen-figma command line
Readme
@toghen/figma
The Figma adapter of Toghen. A resolver document, resolved through @toghen/lib, becomes a Figma file's Variables and Styles: one collection per modifier, a mode per context. A component file (.component.kdl) becomes a component set in the same file. Running again changes only the difference.
pnpm add -D @toghen/figmaThe package holds three pieces:
- The plugin, built into
dist/with itsmanifest.json. Import it in the Figma desktop app. - Component files, the format a component set is built from. See component-files.md.
- The command line,
toghen-figma. It pairs with the open plugin over a local socket and runs the whole job from a repository: read and check everything, sync variables, sync styles, then build each component file.
The guide goes from a fresh checkout to a synced file, and the reference lists the protocol and the schemas.
License
MIT. See LICENSE.
