Get perfect shadows every time for the non-designer. As seen on npm!
npm i shadowizard -- save
Then...
import { shadowizard } from "shadowizard";
shadowizard({
shadow_type: "soft",
padding: "15px" or 15 or true
});
Shadowizard supports 2 configurations, both of which are optional:
-
shadow_type:
hard / soft (Defaults to soft) -
padding:
boolean (Default false - true converts to "10px"),
number (Converts to pixels),
string in pixels (eg "20px")