This is an appreciation post for the Cloud Four Blog . It’s one of those must-subscribes. I find myself adding almost every post they put out to my archive of posts to dig into. So since I’m overflowing with them a bit, and there is a hot-off-the-presses one, I figured I’d share that and a bunch of favorites.
In Responsive Letter Spacing , Tyler Sticka covers a scenario where you want to tighten up letter-spacing, but be smart about it. At big font sizes, some tightening looks good (I put it on my own starter ) but at smaller font sizes, it harms readability. Using em is a good start as it scales with the font size automatically, but then it’s better to reduce it as it gets smaller. Fortunately Tyler found a great way to do it with clamp() .
* { letter-spacing : clamp ( - 0.05em , calc(( 1em - 1rem ) / - 10 ), 0em ); } Code language: CSS ( css )
Great minds think alike as I was thinking about the UI/UX pattern of one-time password inputs lately too.…