Lesson 8 of 16
Borders & Shadows
Borders and Shadows in Tailwind
Borders:
border— 1px solid (default color)border-2,border-4,border-8— thicknessborder-gray-300,border-blue-500— color
Border radius:
rounded-none— no radiusrounded-sm,rounded,rounded-md,rounded-lg,rounded-xl,rounded-2xl,rounded-3xlrounded-full— pill / circle
Shadows:
shadow-sm— subtle shadowshadow— small shadowshadow-md— medium shadowshadow-lg— large shadowshadow-xl,shadow-2xl— very largeshadow-none— remove shadowshadow-inner— inset shadow
<div class="border-2 border-blue-500 rounded-xl shadow-lg p-4">
Styled card
</div>
Your Task
Create 4 elements demonstrating different border styles, rounded corners, and shadow depths.
Tailwind preview loading...
Loading...
Click "Run" to execute your code.