Closed bwinton closed 5 years ago
Can you tell me more how I can try this out @bwinton? So excited 🙌
npm run import
should work, and import the one figma file you shared with me.
Oh, you’ll also need to get a personal access token from https://www.figma.com/developers/explorer and set your FIGMA_TOKEN
environment variable to that…
Do you know if the API has access to this field?
If I turn all the icons to symbols there is a new field "Component / Description" that we could use to list tags and categories so we could potentially generate the whole JSON automatically. For example if in Figma we have:
then the JSON could look like:
{ "name": "pin",
"tags": ["filled", "new tab"],
"categories": ["new", "content"],
"source": {
"android": {
"24": "icons/android/pin-24.svg"
}
}
},
Ooh, interesting idea… I'm not sure, but I'll look into it.
So, I don't think this is the flow we want to follow, interesting though it was… Closing for now.
I'm not sure if we want to use this, but at least now we've got a pull request for it. 😉