Hello legends,
I’m currently working on a futuristic/cyberpunky looking web project and ran into a particular design problem.
As you can see in the attached photo below, the design contains a card and a button that are custom shaped (have cuts on the corners). And the problem I’m having is that I don’t really know how to implement this design into the web and scale it appropriately.
At this point, I’m just using the PNGs as the custom shaped backgrounds with 100% width and height properties, but the problem with this solution is that these visuals are still pixel-based, don’t scale beautifully and cannot customize them. If the height of the card changes, those cut corners become stretched and look like crap.
Maybe you have any suggestions or recommendations on how I can make some UI components custom-shaped and scale them properly? Perhaps there is a way to bypass it with some CSS rules?
Thanks in advance!