postcss-func

PostCSS plugin that let's you write CSS with JavaScript functions

Usage no npm install needed!

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

README

PostCSS Func Build Status

PostCSS plugin write JavaScript functions that output CSS.

.foo {
    /* Input example */
}
.foo {
  /* Output example */
}

Usage

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

See PostCSS docs for examples for your environment.