Remify
Type:
Function
__remify();
Remify Sass function is a handy tool to help you convert the
pixel
values to rem
.Tip: It’s especially useful when you work with rem units and having hard times to calculate how many rems that a pixel value you pass.
Arguments
Name | Type | Description |
---|---|---|
$value | number (with unit) | The pixel value that you want it to be converted to |
Examples
Simply call the function and pass a pixel
value to it!
.element {
font-size: __remify(30px);
}
//CSS Output
.element {
font-size: 1.875rem;
}