Gerillass

v2.1.0

Remify

Type: Function
remify();

Converts a pixel length to rem, against a 16px root.

Arguments

NameTypeDescription
$valuenumber (with unit)Accepts a pixel length.

Examples

Pixel sizes emitted as rem.

Sass
.title {
  font-size: remify(30px);
  margin-bottom: remify(12px);
}
CSS
.title {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}