Skip to content

Instantly share code, notes, and snippets.

@yavallejo
Forked from crecotun/px to rem
Created March 25, 2018 16:39
Show Gist options
  • Save yavallejo/05670249db325144023f6dd4e3df6e60 to your computer and use it in GitHub Desktop.
Save yavallejo/05670249db325144023f6dd4e3df6e60 to your computer and use it in GitHub Desktop.
px to rem converter stylus mixin
rem()
values = ()
for i in arguments
push(values, i/16 rem)
return values
// e.g. padding rem(94px 0 75px)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment