In the article, we will go into detail on how to use Border Radius
.
Border Radius
Basic usage
Rounded corners
Use utilities like .rounded-sm, .rounded, or .rounded-lg to apply different border radius sizes to an element.
Code
class="container mx-auto divide-y divide-gray-400 divide-dotted" style="font-family: Raleway">
- class="flex items-center justify-between px-4 py-2">
class="rounded-none border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
class="rounded-sm border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
class="rounded-md border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
class="rounded-lg border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
class="rounded-xl border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
class="rounded-2xl border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
class="rounded-3xl border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
the Robot
class="rounded-full border-2 border-red-500 font-bold text-red-500 p-2 my-2 text-center">Rivet
the Robot
class="text-xs font-mono font-light text-gray-500 mt-2"> class="font-bold">border-radius: rem
class="ml-5 text-right">
class="text-xs font-semibold inline-block font-mono whitespace-nowrap px-2 py-1 rounded text-white bg-pink-500 rounded-2">rounded(-SID)(-AMT)
class="text-xs font-mono text-gray-500"> class="text-black mt-3 inline-block">SID
t tl r tr b br l bl
class="text-xs font-mono text-gray-500"> class="text-black mt-3 inline-block">AMT
(.25) none-0 full-∞
sm-.125 md-.375 lg-.5
xl-.75 2xl-1 3xl-1.5
Full code:
The overall code will be attached to repo link.
Overall Output
Resources:
tailwind.css
Thank you for reading :), To learn more, check out my blogs on Flex Direction, Hackathons and Flex Wrap.
If you liked this article, consider following me on Dev.to for my latest publications. You can reach me on Twitter.
Keep learning! Keep coding!! ๐