Home
Daily
TailwindCSS 8: Shadow, Rounded Corners, and Effects
December 08, 2025
1 min

Table Of Contents

01
🎯 What You Will Learn
02
🟣 Rounded Corners (rounded)
03
🌗 Shadows (shadow)
04
🟡 Rings (ring)
05
🌫 Glass / Blur Effect (backdrop-blur)
06
🧪 Mini Demo: Modern Profile Card
07
✅ Summary

At this point, you’ve learned how to structure layouts, control spacing, apply color, and add hover animations. Now it’s time to make your UI look refined and modern.

Small visual details like rounded corners, shadows, and soft highlights can transform a basic interface into something polished and professional.

In this lesson, we’ll explore the most useful visual effect utilities in TailwindCSS.


🎯 What You Will Learn

UtilityPurpose
roundedControl the corner radius of elements
shadowAdd depth to elements
ringAdd focus/outline effects
backdrop-blurCreate glass-like blur effects

Let’s go step-by-step.


🟣 Rounded Corners (rounded)

Rounded corners are essential for modern UI design.

<div class="bg-gray-200 p-4 rounded">Small rounded corners</div>
<div class="bg-gray-200 p-4 rounded-lg">Large rounded corners</div>
<div class="bg-gray-200 p-4 rounded-full">Fully circular (badges, avatars)</div>

Common corner values:

ClassLook
rounded-smSlight
roundedDefault medium
rounded-lgSmooth rounded
rounded-xlExtra smooth
rounded-fullCircle / pill shaped

🌗 Shadows (shadow)

Shadows help create depth and elevation, making UI look layered and dynamic.

<div class="p-6 bg-white rounded shadow">Subtle shadow</div>
<div class="p-6 bg-white rounded shadow-md">Medium depth</div>
<div class="p-6 bg-white rounded shadow-lg">Large soft shadow</div>

Tip:

Use light shadows for UI that feels minimal and calm.


🟡 Rings (ring)

Rings are outer outlines useful for focus states — especially for inputs and buttons.

<input
class="p-2 border rounded focus:ring-2 focus:ring-blue-400"
/>

This provides clear feedback, improving accessibility and user experience.


🌫 Glass / Blur Effect (backdrop-blur)

This utility creates a frosted glass effect — perfect for modals and overlay sections.

<div class="backdrop-blur bg-white/30 p-6 rounded-lg shadow-lg">
Glass effect content
</div>

💎 You’ll see this style in modern UI like Apple and macOS design.


🧪 Mini Demo: Modern Profile Card

Combine everything we learned:

<div class="max-w-xs mx-auto p-6 bg-white rounded-xl shadow-md text-center">
<img
src="https://i.pravatar.cc/100"
class="w-24 h-24 rounded-full mx-auto mb-4"
/>
<h2 class="text-xl font-bold text-gray-800 mb-1">Alex Johnson</h2>
<p class="text-gray-500 mb-4">Frontend Developer</p>
<button
class="px-4 py-2 bg-indigo-500 hover:bg-indigo-600 text-white rounded-lg transition duration-300"
>
Follow
</button>
</div>

What makes this UI look great:

UtilityImpact
rounded-xl + rounded-fullSmooth, modern corners
shadow-mdSubtle depth and contrast
text-gray-500Soft typography tone
hover:bg-indigo-600Smooth interactive feedback

This is a simple component that looks professional instantly.


✅ Summary

UtilityPurpose
rounded-*Creates smooth or circular corners
shadow-*Adds depth and separation
ring-*Visual focus / input clarity
backdrop-blurSoft glass UI effects

These subtle visual enhancements dramatically improve UI quality.



Tags

#tailwindcss

Share

Related Posts

Tailwind CSS
TailwindCSS 9: Using `tailwind.config.js` to Create Your Own Design System
December 09, 2025
1 min
© 2025, All Rights Reserved.
Powered By

Social Media

githublinkedinyoutube