Posts, a community app by Read.cv

Thread
Akshar Dave 🌻

On the button with an icon that has more visual weight, equal padding on both sides works. This is because the keyboard shortcut indicator has almost similar visual weight as the icon.

Akshar Dave 🌻

On the button with an icon with lighter visual weight, the opposite side to the icon needs more padding to balance out. This is because the icon side visually feels like it has more padding due of its lighter visual weight.

Akshar Dave 🌻

Imagine if CSS allowed a property to center elements based on their visual weight. justify-content: visual-weight;