Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Exclude Layers #20

Open
maxkarkowski opened this issue Nov 8, 2022 · 1 comment
Open

[Feature Request] Exclude Layers #20

maxkarkowski opened this issue Nov 8, 2022 · 1 comment

Comments

@maxkarkowski
Copy link

Hi,

would be nice to exclude Layers from export via config like this for example

{
  "figmaPersonalToken": "XXX",
  "fileId": "XXX",
  "page": "XXX",
  "frame": "XXX",
  "iconsPath": "src/assets/icons",
  "removeFromName": "",
"excludeLayers": ['DescriptionLayer', 'IconLabels' ]
}

Would be helpful because the designer would also use the same Frame for describing each icon, but i don't need the labels and descriptions as a svg file

Thanks :-)

@mariohamann
Copy link

mariohamann commented Jan 7, 2024

I've created a rewritten fork of this repo, which makes everything a lot more configurable: https://github.com/mariohamann/figma-export-assets

There you can decide which assets you want to finally download and even in which format or which one in which folder etc.

Here's an example in the wild: https://github.com/synergy-design-system/synergy-design-system/blob/main/packages/assets/scripts/fetch-assets.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants