From 9418ed21a1925403c217a6def5fb46ad61a32c48 Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit <13847569+woylie@users.noreply.github.com> Date: Thu, 25 Jul 2024 06:56:55 +0900 Subject: [PATCH] fix font size calculation --- src/tokens/size/font.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tokens/size/font.js b/src/tokens/size/font.js index 4e83794..b9a503e 100644 --- a/src/tokens/size/font.js +++ b/src/tokens/size/font.js @@ -19,7 +19,7 @@ const addSmallerSizes = (sizes, scale, smallerSizes) => { const addLargerSizes = (sizes, scale, largerSizes) => { for (let i = 1; i <= largerSizes; i++) { - let rem = Math.pow(scale, -1 * i); + let rem = Math.pow(scale, 1 * i); let xCount = i - 1; let name = "x".repeat(xCount) + "l"; sizes[name] = { $value: rem.toFixed(3) };