postcss-line-height

PostCSS plugin for converting pixel line heights to unitless line heights

Usage no npm install needed!

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

README

PostCSS Line Height Build Status

PostCSS plugin for converting px line heights to unitless line heights

.foo {
    line-height: 24px;
}
.foo {
  line-height: 1.5;
}

Usage

postcss([ require('postcss-line-height') ])

See PostCSS docs for examples for your environment.

Options

{
    baseFontSize: 16
}