The quickest way to start using Tailwind CSS in your Rails project is to use Tailwind CSS for Rails by running
rails new my-project --css tailwind. This will automatically configure your Tailwind setup based on the official Rails example. If you'd like to configure Tailwind manually, continue with the rest of this guide.
Start using Tailwind in your project
Start using Tailwind's utility classes to style your content.index.html.erb
<h1 class="text-3xl font-bold underline"> Hello world! </h1>