Package Exports
- postcss-math
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-math) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PostCSS Math 
Work-in-progress!
PostCSS plugin for making calculations with math.js.
This plug-in supports:
- Plain-old maths, as per math.js built-in functionality
pxunits- CSS-friendly rendering (
10cmnot10 cm) - Unit stripping e.g.
strip(25px)becomes25
Contributions are very welcome!
.foo {
font-size: resolve(2 * 8px);
padding: resolve(strip(16cm) + (2px * 3));
margin: resolve(4px + resolve(2 * 3px));
}.foo {
font-size: 16px;
padding: 22px;
margin: 10px;
}Usage
postcss([ require('postcss-math') ])See PostCSS docs for examples for your environment.