...

/

Tailwind Screen Widths and Breakpoints

Tailwind Screen Widths and Breakpoints

Learn about the utilities of responsive design by using screen widths and breakpoints.

Overview

All the examples we have seen so far in this course have one thing in common. They are not designed to look good on smaller screens, like smartphones or tablets. The process of making a CSS design that works on multiple-sized screens is called responsive design.

In plain CSS, responsive design can be a complicated tangle of CSS classes and the @media tags. Tailwind provides prefixes that can be applied to any Tailwind utility to control the set of screen sizes.

The complexity of responsive design

Tailwind does not take away all the complexity of the responsive design. We still need to consider many factors when designing for multiple sizes. For example, we need to think about which elements of our site are most important and need to be emphasized when the user is looking at a smaller screen. Tailwind makes it easier to experiment with different designs at different sizes and to be able to see all the ...