Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix(android): correct mono fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed Jan 30, 2023
1 parent 1c1a635 commit e1c40c8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@ StyleDictionary.registerTransform({
return FONT_FAMILY_IDENTIFIERS.includes(token.type)
},
transformer: (token, options) => {
return 'FontFamily.Default';
console.log(token);
if (token.name === 'small') {

}
if (token.name === 'body' || token.name === 'expressive') {
return 'FontFamily.Default';
}
else if (token.name === 'mono' || token.path.includes('code')) {
return 'FontFamily.Monospace';
}
return `"a"`;

}
});

Expand Down

0 comments on commit e1c40c8

Please sign in to comment.