Skip to content

Commit

Permalink
fix font size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Jul 24, 2024
1 parent 1b6134b commit 9418ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokens/size/font.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
Expand Down

0 comments on commit 9418ed2

Please sign in to comment.