postcss-line-height-px-to-unitless

postcss plugin to convert a line-height value with px to a unitless value

Usage no npm install needed!

<script type="module">
  import postcssLineHeightPxToUnitless from 'https://cdn.skypack.dev/postcss-line-height-px-to-unitless';
</script>

README

postcss-line-height-px-to-unitless

npm version travis dependencies devDependencies License

Postcss plugin to convert a line-height value with px to a unitless value.

// before

a {
  font-size: 16px;
  line-height: 26px;
}



// after

a {
  font-size: 16px;
  line-height: 1.63;
}

Install

$ npm i postcss-line-height-px-to-unitless

Usage

postcss([
    require('postcss-line-height-px-to-unitless')(),
    ...
])

License

MIT