Mobile-first layout rules for interfaces that hold up from a 360px phone to a 1920px desktop without horizontal scroll or broken touch targets.
0 downloads · Used by 0 stacks
Link back to this module from your own README.
[](https://markdowners.com/m/markdowners/responsive-ui-rules)No discussions about this module yet.
Start a discussionDesign for the smallest viewport first, then progressively enhance for more space — never the other way around.
%, rem, fr, vw/vh sparingly) for layout; reserve fixed pixel values for things that must stay physically constant (hairline borders, icon sizes).min-width media queries adding complexity upward) over a desktop-first one (max-width queries subtracting) — it keeps small-screen styles from being buried under overrides.width/height (or aspect-ratio) on images and embeds so the layout doesn't shift when they load — cumulative layout shift is both a UX and an SEO problem.srcset/sizes, or a framework's image component) so a phone doesn't download a 4K desktop hero image.:hover alone to reveal necessary functionality (a menu, a tooltip with required info) — touch devices have no hover state.mousedown/mousemove alone covers all devices.overflow-x: auto container, not a page-wide scrollbar.min-width: 0 on flex/grid children that contain text — the flexbox default (min-width: auto) causes text to overflow its container instead of wrapping.rem) so users who increase their browser's base font size get a working layout, not an overlapping one.
Comments (0)
Sign in to comment. Sign in
No comments yet. Be the first to add one.