Skip to content

Commit

Permalink
round font sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Jun 30, 2024
1 parent 8e7db65 commit 6c2f235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokens/size/font.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const addSmallerSizes = (sizes, scale, smallerSizes) => {
let rem = Math.pow(scale, -1 * i);
let xCount = i - 1;
let name = "x".repeat(xCount) + "s";
sizes[name] = { $value: rem };
sizes[name] = { $value: rem.toFixed(3) };
}

return sizes;
Expand All @@ -22,7 +22,7 @@ const addLargerSizes = (sizes, scale, largerSizes) => {
let rem = Math.pow(scale, -1 * i);
let xCount = i - 1;
let name = "x".repeat(xCount) + "l";
sizes[name] = { $value: rem };
sizes[name] = { $value: rem.toFixed(3) };
}

return sizes;
Expand Down

0 comments on commit 6c2f235

Please sign in to comment.