Utility Classes
Learn how Tailwind utility classes replace traditional CSS declarations.
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 m-4 bg-blue-600 text-white text-center rounded-xl">
Utility Classes
</div>
Live Preview
Your Tailwind design will appear here.
Click Run Preview
See the lesson example here.
Test your understanding
Choose the best answer.
What is Tailwind CSS?