Skip to content
/ remify Public

Easily convert pixels to rems in Sass. Includes both remify() function for one-off conversion as well as rem() mixin for converting entire properties.

Notifications You must be signed in to change notification settings

mariusz/remify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

remify()

Simple set of Sass mixin and function to quickly convert pixels to rems. This solution assumes that baseline is 10px, you can override that easily by changing the baseline-px value in the _remify.scss.

Usage

  • Quick, one-off pixels to rem value conversion

    font-size: remify(12px);

  • Converting entire property

    margin-right: remify(0 20px 20px 0);

  • Converting entire property with a pixel fallback for older browsers

    @include rem('margin-right', 0 20px 20px 0);

About

Easily convert pixels to rems in Sass. Includes both remify() function for one-off conversion as well as rem() mixin for converting entire properties.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published