Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
px to rem mixin
@function rem($pxs) {
@if type_of($pxs) == list {
$rem: ();
@each $px in $pxs {
$rem: append($rem, $px / 16 * 1rem);
}
} @else {
$rem: $pxs / 16 * 1rem;
}
@return $rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.