PostCSS plugin to add tint filter to element.
Input:
.foo {
filter: tint(1, 200);
}Output:
.foo {
filter: sepia(1) hue-rotate(200deg);
}$ npm install postcss-filter-tintpostcss([ require('postcss-filter-tint') ])It is recommended that you use Autoprefixer to add vendor prefixes.
See PostCSS docs for examples for your environment.