Smooth rounded corners or continuous corners (used throughout iOS) can be easily achieved in Figma and other design software. I’m fairly sure there’s no way to do this simply on the web and it drives me mad. Do y’all know of any ways to do this that can actually be used in production?

  • silas@programming.devOP
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    1 year ago

    These are just standard rounded corners, I’m talking about the type of smooth rounded corners used in iOS

      • silas@programming.devOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Thanks! Didn’t think of bezier curves in relation to this, that’s a good search term.

        Highly doubt it, but you know if it’s possible to do this with a border and box-shadow on the element?

        • phorq@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Not sure, but worst case scenario you could have a second div z-indexed behind the custom shaped one that you do a standard border radius and blur on and it would look pretty close to being a shadow that fits. Obviously that’s messier, but it’s a possibility.

          • silas@programming.devOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Oh nice, yeah that could still be pretty convincing. I might even be able to get away with an ::after instead. I’ll mess around with it, thanks!

      • silas@programming.devOP
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        1 year ago

        Nope, It’s kinda confusing because it looks very similar. Smooth corners are actually a different mathematical calculation than the standard ones from the border-radius property, that’s why I’m kinda doubtful there’s an easy way to do it