Skip to content

Instantly share code, notes, and snippets.

@Andy-set-studio
Created June 20, 2018 12:34
Show Gist options
  • Save Andy-set-studio/b005efedde93bf38f1da86d8d167108c to your computer and use it in GitHub Desktop.
Save Andy-set-studio/b005efedde93bf38f1da86d8d167108c to your computer and use it in GitHub Desktop.
Convert pixel value to REM
/**
* To Rem
* -------------------------------------//
* Convert pixel value to REM
*/
@function to-rem($pixel-size: 16) {
@return ($pixel-size / 16) * 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment