layout@Ibelick
Use size-* Utility
SHOULD
SHOULD: Use size-* for square elements instead of separate w-* and h-* classes. Reduces class count and communicates intent (this element is square).
Use size-* instead of separate w-* and h-* for square elements
Bad
Good
Why it matters
w-8 h-8 states two independent facts that happen to agree. size-8 states one fact: this is square. The difference shows up on edit — resize a w-8 h-8 icon and it is trivially easy to change one and not the other, producing a 32x24 "square" that nobody notices until it is next to a real one. It is a SHOULD, and it applies only where squareness is the intent (icons, avatars, icon buttons); an element that is coincidentally square is still correctly written as w-* + h-*.