Back to articles
Mobile-First CSS: Is It Time for a Rethink?

Mobile-First CSS: Is It Time for a Rethink?

via A List Apartby Patrick Clancey

The mobile-first design methodology is great—it focuses on what really matters to the user, it’s well-practiced, and it’s been a common design pattern for years. So developing your CSS mobile-first should also be great, too…right? Well, not necessarily. Classic mobile-first CSS development is based on the principle of overwriting style declarations: you begin your CSS with default style declarations, and overwrite and/or add new styles as you add breakpoints with min-width media queries for larger viewports (for a good overview see “ What is Mobile First CSS and Why Does It Rock? ”). But all those exceptions create complexity and inefficiency, which in turn can lead to an increased testing effort and a code base that’s harder to maintain. Admit it—how many of us willingly want that? On your own projects, mobile-first CSS may yet be the best tool for the job, but first you need to evaluate just how appropriate it is in light of the visual design and user interactions you’re working on.

Continue reading on A List Apart

Opens in a new tab

Read Full Article
4 views

Related Articles