postcss-emify

PostCSS plugin to transform all em( px ); declarations into its em equivalent.

Usage no npm install needed!

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

README

PostCSS Emify Build Status

PostCSS to transform all em( px ); declarations into its em equivalent.

.foo {
  font-size: em(16);
}
.foo {
  font-size: 1em;
}

Usage

postcss([ require('postcss-emify') ])

See PostCSS docs for examples for your environment.