✨ feature: Add function to convert pixel to rem
This commit is contained in:
parent
5e203ce469
commit
c1fbfaf9a9
6
src/functions/_functions.scss
Normal file
6
src/functions/_functions.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
@use "sass:math";
|
||||
|
||||
// Convert pixel to rem
|
||||
@function convert($size) {
|
||||
@return (math.div($size, 16px)) * 1rem;
|
||||
}
|
Loading…
Reference in New Issue
Block a user