Remify

Arguments

NameTypeDescription
$valuenumber (with unit)

The pixel value that you want it to be converted to rem.

Examples

Simply call the function and pass a pixel value to it!

.element {
  font-size: __remify(30px);
}
//CSS Output
.element {
  font-size: 1.875rem;
}