tokens-bruecke / figma-plugin

TokensBrücke is a Figma plugin that converts Figma variables into design-tokens JSON.
MIT License
39 stars 7 forks source link

Inter Semibold wrong 400 weight #23

Closed pws-pm closed 2 months ago

pws-pm commented 2 months ago

Hi Everybody, I got an issue with the Inter Semibold font that should be exported in weight 600 but in the JSON is weight 400, just like the regular weight.

Thanks, Luigi.

correct wrong
JeroenRoodIHS commented 2 months ago

The issue will be solved by this PR: https://github.com/tokens-bruecke/figma-plugin/pull/20

The problem was caused by case-sensitivity regarding the font weight names.

PavelLaptev commented 2 months ago

@JeroenRoodIHS thanks for the PR. @pws-pm I've just published a new version

pws-pm commented 2 months ago

Screenshot 2024-04-15 at 10 33 35 @PavelLaptev Thanks for the new version, however, I tried to re-run the plugin and I still see the issue. Am I doing something wrong? thanks!

PavelLaptev commented 2 months ago

Thanks for the report @pws-pm I'll check it out

PavelLaptev commented 2 months ago

@pws-pm fixed :-) the problem was that Figma return the font-weight for inter like this semi bold so I added a regex to concat words.

pws-pm commented 2 months ago

Amazing, thanks!