4 ms·
A web design opinion that has increasingly solidified in my thinking is that box-shadow should never be relied on to distinguish an edge. Not only is it (obvio
by koboll 4y ago
A web design opinion that has increasingly solidified in my thinking is that box-shadow should never be relied on to distinguish an edge.
Not only is it (obviously) less distinct than a border or an edge where color changes, it breaks outside the visual box model of the page due to spreading outside the element's grid placement, which makes everything look less distinctly part of a grid. box-shadow, when relied on to distinguish edges, is anathema to the human visual system in an unconsciously subtle way. It's fit for light touches that add onto an already clear and accessible design but never for relying on to achieve clarity or accessibility.
We realized this during the flat design era but then proceeded to overshoot things pretty far until exterminating shadows became a hot trend. Now there's a backlash, of which 'neumorphism' is the apex, which swings things too far back in the other direction. Just keep shadows light and use them sparingly, it's not too hard.