typeplate/typeplate.github.io

unit conversion

Opened this issue · 0 comments

I did a few unit conversion functions https://gist.github.com/jakob-e/6579770
feel free to use :)

Example:
.foo { font-size:em(16px); } => .foo { font-size:1em; }
.foo { font-size:em(2,2,2); } => .foo { font-size: 0.5em; } // em compound handling
.foo { font-size:rem(1cm); } => .foo { font-size: 2.3622em; }