Skip to content

Instantly share code, notes, and snippets.

@mauricerenck
Created January 3, 2015 19:08
Show Gist options
  • Save mauricerenck/e4c9061ee90140ce8d12 to your computer and use it in GitHub Desktop.
Save mauricerenck/e4c9061ee90140ce8d12 to your computer and use it in GitHub Desktop.
[scss] font pixel rem setup
@mixin font-size($sizeValue: 16) {
font-size: $sizeValue + px;
font-size: ($sizeValue / 10 ) + rem;
}
html {
font-size: 62.5%;
}
body {
@include font-size(16);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment