Loading tutorials
Intermediate · Mid: 12 chapters · 36 min read. States assumed prerequisites
Start readingflex, p-4 and text-lg.flex, 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 reaflex, p-4 and text-lg. You should also know the mobile-first model: an unprefixed utility applies at every width.sm 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 flex, 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 worksm, 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.sm 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.sm, 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.sm, 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.sm:, 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.sm 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 w