Installing Tailwind CSS
Learn the common ways Tailwind CSS can be added to a project.
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
<script src="https://cdn.tailwindcss.com"></script>
<div class="p-6 bg-indigo-600 text-white rounded-xl">
Tailwind CSS is ready!
</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?