Buttons
Create attractive buttons using Tailwind 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="flex flex-wrap gap-3 p-6">
<button class="px-5 py-3 bg-slate-900 text-white rounded-xl">
Primary
</button>
<button class="px-5 py-3 bg-indigo-600 text-white rounded-xl">
Action
</button>
<button class="px-5 py-3 border border-slate-300 rounded-xl">
Secondary
</button>
</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 prefix is commonly used for medium-screen responsive styles?