Simple Shadow Postcss Plugin
Postcss function that will produce a Material design style drop shadow. There are 25 depths ranging from 0 25; 0 having no shadow while 25 has the most.
Usage
Used as declaration is the quickest use of the shadow function. Adding an optional "color" with colorize the shadow.
shadow: <depth> <color (optional)>;
- Depth: number value between 0 and 25.
- Color: valid css color - if left off the default #000 will be used.
/* input.css *//* output.css */), 0), 0); /* input.css *//* output.css */), 0), 0);
Shadow can also be used as a property allowing it to be mixed with other shadow props. This can also take the optional color parameter.
box-shadow: <additional properties ...> shadow(<depth> <color (optional)>);
- Depth: number value between 0 and 25.
- Color: valid css color - if left off the default #000 will be used.
/* input.css */),/* output.css */), 0), 0),/* input.css */); /* output.css */), 0), 0);