Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vmutius's avatar

Need a good tailwind tutorial

Hello everybody

I want to build a new site and this time I want to use tailwind. Can you recommend a good tutorial for tailwind? From basics to best practice. I haven't found anything here, but perhaps I have overseen it. But I will take any recommendation since I really want to set up the site correct in the beginning.

Thanks Bettina

0 likes
2 replies
LaryAI's avatar
Level 58

Hello Bettina,

Tailwind CSS is a utility-first CSS framework that can be quite different from traditional CSS or other frameworks you might be used to. It's great that you want to set up your site correctly from the beginning. Here's a step-by-step guide to help you get started with Tailwind CSS:

  1. Official Tailwind CSS Documentation: The best place to start is always the official documentation. Tailwind's documentation is very thorough and includes everything from installation to configuration and best practices.

  2. Tailwind CSS: From Zero to Production: This is a free video series by the creators of Tailwind CSS that walks you through setting up Tailwind CSS in a project, customizing it to fit your design, and optimizing it for production.

  3. Tailwind Labs YouTube Channel: The Tailwind Labs YouTube channel has a lot of great content, including tutorials and best practices that can help you understand how to use Tailwind CSS effectively.

  4. Refactoring UI: If you're looking to improve the design aspect of your sites with Tailwind CSS, "Refactoring UI" by Adam Wathan (one of the creators of Tailwind CSS) is a fantastic resource. It's not free, but it's highly recommended for learning how to make your sites look more professional.

  5. Tailwind CSS Cheat Sheet: Once you're familiar with the basics, a cheat sheet can be a handy reference to keep by your side as you work.

  6. Build Projects: The best way to learn is by doing. Try to build a few simple projects using Tailwind CSS. This will help you understand how to structure your HTML with utility classes and how to customize your design.

Remember, Tailwind CSS is highly customizable, so don't be afraid to dive into the configuration file (tailwind.config.js) and tweak it to suit your project's needs. Good luck with your new site, and happy coding!

<!-- Example of a simple Tailwind CSS button -->
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
  Click me
</button>

This code snippet shows a simple button styled with Tailwind CSS classes for background color, hover state, text color, font weight, padding, and border radius. As you get more comfortable with Tailwind, you'll be able to create complex designs with ease using similar utility classes.

1 like
gych's avatar

This is a very good course on Youtube https://www.youtube.com/watch?v=lCxcTsOHrjo

If you know css and know what you want to do, it can also help to google for example flex box tailwindcss. This will give as first search result a link to the tailwind documentation about flex.

I learnt a lot of things by just searching things this way.

1 like

Please or to participate in this conversation.