This assumes your base font variable is @base-font-size
. Change accordingly.
This does not work with borders or shadows yet.
You can use this to do any of the following operations:
#logo {
.rem(font-size, 40px);
.rem(margin, 20px 10px);
.rem(padding, 20px 20px 10px 15px);