TailwindCSS is a utility-first CSS framework that lets you build custom designs without leaving your HTML.
- β Utility-first approach
- β Responsive design built-in
- β Dark mode support
- β Highly customizable
- β Small bundle size
- TailwindIntro - Basic setup and concepts
- Razorpay Clone - Full-featured project
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
<div class="flex justify-center items-center h-screen bg-blue-500">
<button
class="bg-white text-blue-500 px-6 py-3 rounded-lg
hover:bg-gray-100 transition"
>
Click Me
</button>
</div>
- Layout: flex, grid, block, inline
- Spacing: m-4, p-4, gap-4
- Colors: bg-blue-500, text-red-600
- Sizing: w-full, h-screen
- Responsive: sm:, md:, lg:, xl:
Master modern CSS with TailwindCSS! π¨