I've been recently playing with luminance differences, and made an npm package that also generates alpha shades (black or white, with a certain opacity). It generates solid shades too, but I see you've taken care of that already.
I think this website could benefit from alpha shadows, since it's more common to have the box-shadow property set to something not fully opaque (as overlaps would look weird - overlapping shadows wouldn't be darker).
Since it's not a package (or something storage-critical), but just a website, I don't think there's any harm to adding extra dependencies for this utility. If you would consider this to be a good idea as well, I could PR that change.
If, however, you'd rather not add to the dependencies list, you could take a look at the mini-package I made to write it yourself faster.
I've been recently playing with luminance differences, and made an npm package that also generates alpha shades (black or white, with a certain opacity). It generates solid shades too, but I see you've taken care of that already.
I think this website could benefit from alpha shadows, since it's more common to have the
box-shadowproperty set to something not fully opaque (as overlaps would look weird - overlapping shadows wouldn't be darker).Since it's not a package (or something storage-critical), but just a website, I don't think there's any harm to adding extra dependencies for this utility. If you would consider this to be a good idea as well, I could PR that change.
If, however, you'd rather not add to the dependencies list, you could take a look at the mini-package I made to write it yourself faster.