Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Rem Font Size mixins
.font-size(@sizeValue) {
@pxValue: @sizeValue;
@remValue: (@sizeValue / 10);
font-size: ~"@{pxValue}px";
font-size: ~"@{remValue}rem";
//Apply it by adding .font-size(16); to get 16px and 1.6rem
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.