Oriol Banús Product designer and lecturer passionate about solving problems through design.

Responsive UX design guide: From mobile to desktop

6 min read 1871 106

Responsive Design Guide

According to Statcounter, mobile devices account for 56 percent of internet usage, while desktops account for around 48 percent of the users, tablet users being only 2 percent of the remaining market share.

Knowing that screen size matters when starting a UI project, you should consider building a responsive layout grid using a tool like Figma, which will help by saving and reusing a layout over multiple projects. A responsive grid ensures that your website adapts well to different screen sizes and provides a great and consistent user experience to all users.

With a responsive layout, we’ll also need to consider the language we will design for. According to Statista, Node.js and React.js are the most used ones.

Ready to design a responsive layout?

Designing for various screen resolutions

Different Layout Sizes

Now that we know there are different screen sizes and layout options, let’s find which screens are most used so we can then narrow it down to some specific breakpoints. According to Statcounter GlobalStatus, these are the most used screen sizes; it’s important to mention that if we filter by region or country, the data may differ:

Mobile:

  1. 360×800 pixels (or similar aspect ratios)
  2. 390×844 pixels (or similar aspect ratios)
  3. 414×896 pixels (or similar aspect ratios)

Tablet:

  1. 768×1024 pixels (or similar aspect ratios)
  2. 810×1080 pixels (or similar aspect ratios)

Desktop:

  1. 1366×768 pixels
  2. 1920×1080 pixels

Responsive design languages

You can see that users have a lot of options! Responsive grids and layouts will help us design for all these different screens.

But in order to design responsively, we need to use a language or framework capable of that.

Websites languages: Native vs. frameworks and responsive frameworks

Websites are usually built with frontend technologies. Commonly, the basic languages involved in the creation are the ones below:

HTML:

  • HTML is the skeleton or bones of the website, is the first thing that needs to be coded in order to later on add styles and functions

CSS:

  • CSS is used to stylize and beautify the HTML elements. It enables developers to control the layout, colors, fonts, and other visual aspects of a website. There are many CSS frameworks out there

JavaScript:

  • JavaScript is used to add interactions when the user interacts with the website’s components. There are multiple frameworks such as React.js or Angular.js

Basics are always important, but as the years went by, some genius put together frameworks to reduce the amount of work and code developers had to do to create a website; frameworks allow devs to reuse UI components, create grid systems, and streamline the web development cycle. Good examples of this would be Bootstrap, Foundation, or Bulma.

On top of that, it is important to note that some frameworks are responsive, meaning that the layout adapts and displays well on different screen sizes, creating a fluid and smooth user experience.

App languages: Native vs. hybrid apps

Native app development involves building separate apps for each platform (iOS and Android) using the given language of each platform (Swift/Objective-C for iOS, Java/Kotlin for Android). This approach meant that when only designing for mobile, you didn’t care much about screen resolutions because your options were quite limited.

Hybrid app development is increasingly more common due to its code reusability, cost efficiency, faster development cycle, cross-platform compatibility, and improved performance. To make it clear and understandable, by using web technologies and hybrid frameworks, developers can write code once and use it for web, iOS and android; This reduces costs and time knowing that the outcome offers near-native performance.

The anatomy of a responsive layout

Let’s go over the anatomy of a layout.

This section will continue with a sneak peak of the concept of spacing, because the pixels between components and other elements are key to break the layout in smaller pieces.



The last topic we will cover is the layout breakpoints, the most fundamental concept to understand and build a responsive grid. The breakpoints will provide a structured layout for elements, consisting of columns, gutters, and margins within the body region.

Layout basics

A layout is the architectural blueprint that orchestrates the symphony of visual elements on a screen. Like an artist’s canvas, it becomes the playground where images, text, and interactive components come together in a choreographed dance. A meticulously designed layout includes balance, rhythm, and harmony, fostering a delightful user experience that engages and captivates. It is the backbone of digital design.

The layout usually has multiple regions where the content is distributed; the minimum expression of the content is distributed in the following:

  1. Navigation: Usually placed or either in a left column for websites or in a bottom bar for mobile applications, but there are more possibilities to play with. This section allows the user access to all the content of the product; it plays the role of a table of contents for a digital product
  2. Body: The area where we find all the content of the website or app. The body is usually made from buttons, images, cards, and other components. This region is scalable to the size of the screen and it has four basic elements that will play an important role to the display of the elements:
    • Margins: Margins in a layout refer to the empty spaces surrounding the content and elements. They provide visual separation and breathing room between different sections, enhancing clarity and focus. There are two types of margins, fluid or fixed, in the case the margin is always the same size when the screen size changes we apply fixed margins, if the margin size changes according to the breakpoints, we apply what we call, fluid margins
    • Gutters: Spaces or margins between columns and other elements. They provide breathing room and separation, enhancing readability and visual clarity. Gutters help maintain a balanced and organized appearance while improving the overall aesthetics of the design
    • Columns: Columns in a layout are vertical divisions used to structure and organize content, providing a framework for arranging elements and establishing visual hierarchy within a given space. They help maintain balance and readability and facilitate responsive design
    • Regions: Distinct groups or areas that occupy specific space within the columns of a grid. They can span across different numbers of columns and dynamically resize with the grid. This concept is also referred to as column spans, representing the number of columns used to create a particular section or region. Regions play a vital role in organizing and structuring content within a layout, allowing for a flexible and customizable design

Columns, Margins, Gutters, and Regions

Using a responsive layout grid

The primary objective of a responsive grid is to facilitate adaptive layout transformations according to varying screen sizes, thereby guaranteeing consistent designs throughout different pages of your website.

By employing a responsive grid system, usually a 8px grid, the arrangement and positioning of elements intelligently adjust, allowing for optimal presentation and a seamless user experience across various devices and platforms.

Spacing

Example Grid

The 8px grid system stands as the most renowned choice, known for its benefits in scaling and consistency. By adhering to an even number, designing becomes more effortless and reliable. This system ensures that all components harmoniously align to an 8px square baseline grid, catering to mobile, tablet, and desktop interfaces.

The essence of the 8px grid lies in utilizing increments of 8px to size and space out web page elements. This means that any defined height, width, margin, or padding adheres to this increment. Fluid grids are created through division, while fixed grids rely on multiplication. Typography also aligns with the 8px baseline grid, calculating line height using multiples of 8.

Occasionally, a 4px grid can come into play. When designing for small screens, a smaller number may be necessary to create icons or provide space between components or typography. The flexibility of the grid system allows for adaptable and precise design decisions based on specific requirements.

Layout breakpoints

To facilitate efficient design and development, I propose a table as a reference tool for working on websites. The table outlines the corresponding column widths, with 12 columns equating to a fluid 8.33 percent width of the grid, and 4 columns equating to a fluid 25 percent width. By utilizing this grid system, designers and frontend engineers can achieve a cohesive and responsive design that adapts to different devices and screen sizes.

Find below different examples of breakpoints from popular software developers that can inspire you to create the best option for your design.

Example of Breakpoints and Dimensions

Figma grid setup for responsive design

Figma Grid Setup

Start creating a new file and adding one or more artboards to it. Before start designing you can create a grid by following the next steps:

  1. Enable the grid: Access the View menu in Figma and select Layout Grids. This will open the grid settings panel
  2. Customize grid properties: Adjust the grid properties according to your design requirements. Set the type, spacing, color, and opacity of the grid. You can choose between a regular grid, a column grid, or a modular grid
  3. Add the grid to the canvas: Click on the canvas to add the grid. Figma will automatically snap it into place based on your settings. The grid will provide a visual guide for aligning elements
  4. Align elements to the grid: As you design, elements will automatically snap to the grid, ensuring a consistent layout. Drag and place elements on the canvas, and they will align to the nearest grid lines. Use Figma’s alignment tools to further refine the positioning

By following these steps, you can quickly set up a layout grid in Figma, customize its properties, and align elements effortlessly for a well-structured design.

Inspirational responsive grids

When it comes to responsive grid systems, several major software developers have introduced widely used frameworks that empower efficient and adaptable web design.

Bootstrap, developed by Twitter, is renowned for its comprehensive set of CSS and JavaScript components, including a 12-column grid system.

Spectrum, a versatile design system created by Adobe, offers a responsive grid system that supports various screen sizes and devices. Discover Spectrum at Material Design, by Google, is a popular React component library with a responsive grid system.

You can also explore the IBM grid system, with breakpoints and other relevant information. These frameworks provide robust tools and resources for creating responsive layouts and are widely used by developers across the globe.

Conclusion

In conclusion, when designing for different devices, it is crucial to have a clear understanding of the target platforms beforehand. Tailoring the design to suit smartwatches versus computers requires careful consideration.

Additionally, effective collaboration with the development team is essential. Understanding the coding language, whether a framework will be utilized, or if custom code will be written from scratch, fosters smoother implementation and integration.

Lastly, early establishment of grids and layouts is vital. By incorporating a responsive layout grid, designers can ensure consistent structure and visual appeal across various screen sizes and resolutions.

By following these key principles, designers can create seamless and user-friendly experiences that adapt effortlessly to the diverse technological landscape.

LogRocket: Analytics that give you UX insights without the need for interviews

LogRocket lets you replay users' product experiences to visualize struggle, see issues affecting adoption, and combine qualitative and quantitative data so you can create amazing digital experiences.

See how design choices, interactions, and issues affect your users — .

Oriol Banús Product designer and lecturer passionate about solving problems through design.

Leave a Reply