kristoferjoseph / postcss-modular-scale

PostCSS plugin for adding modular scale to your styles
MIT License
53 stars 9 forks source link

Any way to have a unit by default? #6

Closed lmartins closed 9 years ago

lmartins commented 9 years ago

Is there a way to avoid having to append the unit everytime I need a value;

That is:

font-size: ms(4);

instead of this:

font-size: ms(4)rem;
kristoferjoseph commented 9 years ago

I thought about this a lot. It would require adding code to output other units. The approach I took adds the least amount of code to this module while allowing the most flexibility.