fixins
Version:
A collection of functions and mixins for use with precss and postcss-functions
18 lines (13 loc) • 369 B
JavaScript
;
module.exports = boxShadow;
const parseArgs = require('../parse-args');
const defaults = new Set([['color', 'rgba(0, 0, 0, 0.25)']]);
/**
* ### `fx-box-shadow([color=rgba(0, 0, 0, 0.25)])`
*/
function boxShadow() {
const color = parseArgs(defaults, arguments).color;
return {
'box-shadow': `0px 1px 2px 1px ${color}`
};
}