Building CSS in cssbundling-rails

Our CSS setup is deliberately minimal. We are just using Tailwind to build up a CSS file. We aren’t using Sass or PostCSS, which are two popular CSS toolkits that allow for further CSS processing. For more information on what those tools do, see Chapter 7, ​Bundling​. For more detailed information in installing Tailwind see the Tailwind documentation[39] and the book Modern CSS with Tailwind.[40]

We already walked through our CSS setup in Chapter 1, ​Getting Started with Client-Side Rails​, but let’s look at it again.

Our main Tailwind loading and CSS file is at app/assets/stylesheets/application.tailwind.css:

​ ​@tailwind​ base; ...

Get Modern Front-End Development for Rails, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.