Skip to content

Commit

Permalink
Fixed fontWeight transform
Browse files Browse the repository at this point in the history
  • Loading branch information
zetareticoli committed Jul 7, 2023
1 parent c95172e commit fb8a54a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ StyleDictionary.registerTransform({
const fontWeight = prop.original.value;
switch (fontWeight) {
case 'Regular':
return 'normal';
return '400';
case 'SemiBold':
return 600;
case 'Bold':
return 700;
default:
return 'normal';
return '400';
}
}
});
Expand Down

0 comments on commit fb8a54a

Please sign in to comment.