mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
807 stars 71 forks source link

Offline support #160

Closed ppsirius closed 2 years ago

ppsirius commented 2 years ago

Is it possible to transform the json file without giving Figma API?

mikaelvesavuori commented 2 years ago

If you have valid JSON you can set the ’recompileLocal’ option to not fetch new data via the Figma API. This should solve your issue. See https://github.com/mikaelvesavuori/figmagic#recompile-data-from-local-figma-json-file

ppsirius commented 2 years ago

Thanks, it's running but I get: Error: TypeError: Cannot read property 'children' of undefined

mikaelvesavuori commented 2 years ago

I would expect that there is something that does not comply with the regular output and expectations on pages and overall format. Do you get it to work using the Figma API and following the instructions/prereqs?

ppsirius commented 2 years ago

I missed that I need to use your Figma template 🙈

mikaelvesavuori commented 2 years ago

Technically you do not need to use the template but you do need to follow the documented conventions :) Good you are going though! ;)