JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4271353
  • Score
    100M100P100Q213952F
  • License MIT

PostCSS plugin to transform clamp() to combination of min/max

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

Build Status codecov.io

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