Package Exports
- postcss-clamp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-clamp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Clamp
PostCSS plugin to transform clamp()
to combination of min/max
.
Instalation
$ npm install postcss-clamp
Usage
The plugin make all colors more bright.
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var colorRgbaFallback = require("postcss-clamp")
// css to be processed
var css = fs.readFileSync("input.css", "utf8")
// process css
var output = postcss()
.use(colorRgbaFallback())
.process(css)
.css
Using this input.css
:
.foo {
width: clamp(10px, 64px, 80px);
}
you will get:
.foo {
width: width: max(10px, min(64px, 80px));
}
See PostCSS docs for examples for your environment.
LICENSE
See LICENSE