Running the Sample App

The sample code for this book is extremely simple. It consists of a few pages of static HTML linked to a static CSS page that was generated using the Tailwind CLI without using any framework or dynamic content.

To run the sample code, you need to download it from the book’s page on the Pragmatic Bookshelf website.[4] To view the code samples, just open any of the HTML pages in the html directory in a browser as a file. They will link to the css/output.css file, which has been pre-generated using the Tailwind CLI. (For more information about using the Tailwind CLI with that code, jump ahead to ​Using the Sample Code​.)

Please note that the world has possibly changed since this book was released, and the distribution ...

Get Modern CSS with Tailwind, 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.