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

Output Tokens to a single file #169

Closed jkavalec closed 1 year ago

jkavalec commented 1 year ago

Hi,

I can see from the docs page, that Token output showcase is a single file with 'tokens' object containing Colors and Spacing, however when I run the extraction I get multiple files as an output.

I didn't notice any settings that could switch this behavior, am I missing something?

mikaelvesavuori commented 1 year ago

This was a basic example to express the idea of tokens, rather than showing the output of Figmagic. Outputting into a single file is not supported.

You can however choose to create such a file yourself that itself imports from the respective output files such as if you were creating an abstraction (like a theme).

jkavalec commented 1 year ago

Thank you,

I wanted to use it with Styled Components, so that is what I intended to do if I won't find option,

this is really nice project.