Skip to content

A simple PostCSS plugin that add `Placeholder` syntax behind the utility class selector.

License

Notifications You must be signed in to change notification settings

ShenTengTu/postcss-util-class-placeholder

Repository files navigation

PostCSS Util Class Placeholder Build Status

A simple PostCSS plugin that change utility class selector to Placeholder syntax (SASS-like).

.hover\:text-light-grey:hover {
  color: #666;
}
%hover\:text-light-grey:hover {
  color: #666;
}

Usage

const path = require('path')
module.exports = {
  plugins: [
    //specify the files which you want to process only
    require('postcss-util-class-placeholder')({files: [
      path.resolve(__dirname, './src/your-util.css')
    ]})
  ]
}

About

A simple PostCSS plugin that add `Placeholder` syntax behind the utility class selector.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published