Show HN: Apple-like smooth corners for Tailwind CSS
1–10 of 16 posts
Re: Show HN: Apple-like smooth corners for Tailwind CSS
#2Re: Show HN: Apple-like smooth corners for Tailwind CSS
#3Re: Show HN: Apple-like smooth corners for Tailwind CSS
#4Re: Show HN: Apple-like smooth corners for Tailwind CSS
#5Re: Show HN: Apple-like smooth corners for Tailwind CSS
#6Is this a joke, I can't see a difference.
Re: Show HN: Apple-like smooth corners for Tailwind CSS
#7Is this a joke, I can't see a difference.
Re: Show HN: Apple-like smooth corners for Tailwind CSS
#8Is this a joke, I can't see a difference.
When you drive around a street corner in a car, you start by turning the wheel to turn a little, then more, then less, then you drive straight again. This looks like that kind of curve.
Re: Show HN: Apple-like smooth corners for Tailwind CSS
#9From what I've read, Apple rounded corners are using G^2 or G^3 geometric continuity to generate smoother curves.
It's hard to tell which smoothing function this library uses since it looks like it's based on PNG masking.
Re: Show HN: Apple-like smooth corners for Tailwind CSS
#10I already knew about the whole “mathematically perfect corners” thing Apple does, so I was super curious how someone implemented that in CSS. I figured it was some sort of new CSS feature involving splines, but then I saw there was a folder called “masks” containing PNG files at 3 resolutions and I was immediately transported back to the mid-2000s.