From e1c40c8fcd6954ffce82c1489d2d5ff710ef207b Mon Sep 17 00:00:00 2001 From: Brad Paugh Date: Mon, 30 Jan 2023 10:54:01 -0800 Subject: [PATCH] fix(android): correct mono fonts --- build.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index 24b2230..7437f14 100755 --- a/build.js +++ b/build.js @@ -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"`; + } });