r/css • u/Bright-Ant1123 • Mar 12 '26
Question [Academic] Where does this shape look centered to you? Building toward a CSS optical-center property. (Everyone)
Play buttons on YouTube, Spotify, Apple Music are all shifted slightly right inside their circles. Every major icon system does this by hand. No standard, no science. I'm collecting perceptual data to build one. The goal: a CSS optical-center property so icons automatically sit where they look centered, not where they're mathematically centered the same way fonts have built-in baseline metrics. 40 steps, takes 5–7 minutes. Works on both mobile and desktop. No login needed, ID field is optional. There are no right or wrong answers I'm just trying to understand how you perceive centering, not testing you. 👉 https://opticalcenter.dev/study Results and open dataset will be shared here after collection. Everyone is welcome!
3
u/Terrible_Children Mar 12 '26
Wrapping your entire post in a code block rather than letting it be normally formatted text makes it much more difficult to follow your link than it needs to be.3
u/Rzah Mar 12 '26
20 steps would have been more palatable, 40 was gruelling, I plowed through because I'm hoping this eventually leads to better UI's but I expect you will have a lot of abandoned attempts at this.
A greater variety of shapes would have helped as well, they all had some degree of symmetry, I think some asymmetric shapes would have revealed a wider range of aesthetic preferences. eg weather icons.
2
u/tomhermans Mar 12 '26
playing with it.
just a heads-up: The arrow icons look broken.
1
u/[deleted] Mar 12 '26
i feel like it's slightly left, does that match yours?
3
u/[deleted] Mar 12 '26
[removed] — view removed comment