Shadows
Learn how to add depth using Tailwind shadow utilities.
Learning approach
Study the Tailwind classes in the example, run the preview, then modify the classes and observe how the design changes.
Tailwind Example
HTML + Tailwind CSS
<div class="m-6 p-6 bg-white rounded-2xl shadow-xl">
<h2 class="text-xl font-bold">
Elevated Card
</h2>
<p class="mt-2 text-slate-500">
This card uses shadow-xl.
</p>
</div>
Live Preview
Your Tailwind design will appear here.
Click Run Preview
See the lesson example here.
Test your understanding
Choose the best answer.
Which Tailwind utility creates a flex container?