Utilities
Tailwind’s utility classes are the most important part of Tailwind to understand. Here’s how they work and how I’ll talk about them in the book.
Tailwind is made up of thousands if not millions of utility classes, most of which set the value of a single CSS property. For example, the font-bold Tailwind utility class is an alias for the CSS property, font-weight: 700. You’d use that utility in an HTML element as part of the class attribute, as in class="font-bold".
There are far, far more potential Tailwind utility classes than you’d ever use in a single project, or that you’d want to send to your browser. To limit the CSS generated, Tailwind has a command-line tool that generates the set of utility CSS classes that are used based on ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access