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.
After running npm run figmagic, the tokens as well as the elements are imported correctly under the src/frontend directory. However, the elements are also imported directly in the project root (./).
I've taken a look at the Figma file and all seems to be where it should be: tokens under "Design Tokens", and elements under "Elements". The "Graphics", "Components", and "Views" sections are empty.
Are we doing something wrong in the Figma file or the configuration? Is this a bug?
Below is our current
figmagic.json
configuration:After running
npm run figmagic
, the tokens as well as the elements are imported correctly under thesrc/frontend
directory. However, the elements are also imported directly in the project root (./
).I've taken a look at the Figma file and all seems to be where it should be: tokens under "Design Tokens", and elements under "Elements". The "Graphics", "Components", and "Views" sections are empty.
Are we doing something wrong in the Figma file or the configuration? Is this a bug?