shakurocom / figma-extractor

https://figma-extractor.vercel.app
MIT License
22 stars 5 forks source link

feature: Add letter-spacing for text styles #22

Closed chdg61 closed 1 year ago

chdg61 commented 1 year ago

Hello.

I noticed the letter-spacing field is missed when the extractor is launching. I decided to add this field to the text styles file.

Also, Figma can have two variant of this field inside its UI (percent and pixel, moreover pixels turns into em measure inside figma's inspector), but API can get the only pixel variant. I've added the converter for this field to px or em, I guess it would be convenient.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
figma-extractor ❌ Failed (Inspect) Jan 27, 2023 at 0:51AM (UTC)
chdg61 commented 1 year ago

So, I have changed the logical a bit. I've removed convert function and this field is enabled by default (without setting from config)