Loading tutorials
flex, p-4 and text-lg.2 min readflex, p-4 and text-lg, and that you know what a CSS media query is. Here you will learn the five default breakpoints, what each one compiles to, and how to rea3 min readflex, p-4 and text-lg. You should also know the mobile-first model: an unprefixed utility applies at every width.3 min readsm at 640px, md at 768px, lg at 1024px, xl at 1280px and 2xl at 1536px. The breakpoint prefixes you already know are the tools here. This chapter shows how to combine them into layouts you 3 min readflex, p-4 and text-lg, and that you know what a media query is. Most responsive bugs in Tailwind come from a few wrong ideas about how breakpoint prefixes work3 min readsm, md, lg, xl, 2xl) and the mobile-first rule: an unprefixed utility applies at every width, and a prefixed one applies from that width upward. You should also know what a CSS media query is.5 min readsm 640px, md 768px, lg 1024px, xl 1280px, 2xl 1536px) and the mobile-first model. It also assumes you have used prefixes such as md:flex, and that you can read a CSS media query.3 min readsm, md, lg, xl, 2xl) and how mobile-first stacking works. It also assumes you can read a CSS file and a JavaScript config file. Here you will add breakpoints, replace the default set, and avoid the errors that come with both.2 min readsm, md, lg, xl, 2xl), how mobile-first prefixes work, and how max-* variants limit a style to a width range. It also assumes you can read a basic CSS media query.3 min readsm:, md:, lg:), and what a CSS media query is. It covers container queries, which respond to the width of a parent element instead of the viewport. The examples use Tailwind v4.3 min readsm 640px, md 768px, lg 1024px, xl 1280px, 2xl 1536px), and how to apply breakpoint prefixes. It also assumes you have used browser developer tools. Here you will learn how to check that a layout works at every w3 min read