Borders and Radius
Create cards, panels and controls using borders and rounded corners.
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="p-6 border border-slate-200 rounded-3xl bg-white">
<h2 class="text-xl font-bold text-slate-900">
Professional Card
</h2>
<p class="mt-2 text-slate-500">
Border and radius utilities.
</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?