Tailwind is mobile-first. Start with mobile styles, then add breakpoint prefixes to override for larger screens. This lesson covers the breakpoint system and common responsive patterns.
Tailwind is mobile-first. Start with mobile styles, then add breakpoint prefixes to override for larger screens. This lesson covers the breakpoint system and common responsive patterns.
Add a breakpoint prefix before any utility to apply it at that screen size and above. No breakpoint = applies to all sizes (mobile first).
sm: 640px+ md: 768px+ lg: 1024px+ xl: 1280px+ 2xl: 1536px+
Main contentSidebarBig Heading
Card
md: or lg: to adjust for larger screens. Adding breakpoints to 'undo' mobile styles is a sign you started desktop-first.Card Title
Description text here.
lg: screens.overflow-x-auto).Before moving on, make sure you can answer these without looking: