Skip to content

Commit

Permalink
Merge pull request #4 from trys/feat-math-pow
Browse files Browse the repository at this point in the history
Use math.pow() namespace
  • Loading branch information
Trys Mudford authored Mar 6, 2024
2 parents 7f88c85 + 8271c4d commit 92de02c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "utopia-core-scss",
"version": "1.0.0",
"version": "1.0.1",
"description": "Utopia.fyi fluid calculations in SCSS",
"main": "src/utopia.scss",
"style": "src/utopia.scss",
Expand Down
2 changes: 1 addition & 1 deletion src/utopia.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@function calculateTypeSize($config, $viewport, $step) {
$scale: helpers.range(map-get($config, 'minWidth'), map-get($config, 'maxWidth'), map-get($config, 'minTypeScale'), map-get($config, 'maxTypeScale'), $viewport);
$fontSize: helpers.range(map-get($config, 'minWidth'), map-get($config, 'maxWidth'), map-get($config, 'minFontSize'), map-get($config, 'maxFontSize'), $viewport);
@return $fontSize * pow($scale, $step);
@return $fontSize * math.pow($scale, $step);
}

@function calculateTypeStep($config, $step) {
Expand Down

0 comments on commit 92de02c

Please sign in to comment.