Breakpoints
The project uses Tailwind’s default breakpoints:| Prefix | Minimum width | Typical target |
|---|---|---|
| (none) | 0px | Mobile |
sm: | 640px | Large phones |
md: | 768px | Tablets |
lg: | 1024px | Laptops |
xl: | 1280px | Desktops |
2xl: | 1536px | Wide screens |
Grid layouts
Start with a single column and expand at larger breakpoints:Typography scaling
Scale font sizes up at wider viewports:Spacing
Adjust padding and gaps at different sizes:Visibility
Show or hide elements at specific breakpoints:Flexbox direction
Stack content vertically on mobile, horizontally on wider screens:Full example
A card grid component that adapts from one to three columns:Guidelines
- Write base styles for mobile first, then layer breakpoint overrides.
- Prefer Tailwind responsive prefixes over custom media queries.
- Test layouts at
sm,md, andlgbreakpoints as a minimum. - Use
gap-*utilities on grid and flex containers instead of margins on children.
Related
Tailwind CSS
How @apply and Tailwind v4 are configured.
CSS Modules
File structure and scoping rules.