From fb8a54a0804764ec72130ce9fbe48049dd33ea9c Mon Sep 17 00:00:00 2001 From: Francesco Improta Date: Fri, 7 Jul 2023 16:24:13 +0200 Subject: [PATCH] Fixed fontWeight transform --- build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 1495a8d..3fe6f64 100644 --- a/build.js +++ b/build.js @@ -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'; } } });