mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-10 09:00:08 -05:00
6 lines
221 B
TypeScript
6 lines
221 B
TypeScript
|
export const translateFontVariantId = (fontName: FontName, fontWeight: number) => {
|
||
|
const style = fontName.style.toLowerCase().includes('italic') ? 'italic' : 'normal';
|
||
|
|
||
|
return `${style}-${fontWeight.toString()}`;
|
||
|
};
|