Query builder
Pick a query type, set the values, copy the block.
Tip: replace the placeholder rule with your own styles.
Generate @media queries for common breakpoints, orientations, dark mode, print and retina screens. Pick a preset or set custom widths, then copy the CSS.
Pick a query type, set the values, copy the block.
Tip: replace the placeholder rule with your own styles.
Mobile-first CSS uses min-width queries that add complexity as screens grow: base styles target phones, then @media (min-width: 768px) enhances for tablets. Desktop-first does the reverse with max-width. Mobile-first is the modern default because it keeps the critical small-screen CSS lean.
Modern responsive design also adapts to user preferences: prefers-color-scheme for dark mode, prefers-reduced-motion to disable animation for sensitive users, and print to restyle pages for paper. These ship alongside breakpoint queries in a mature stylesheet.