How to create a Responsive Screen that adapts its Navigation Bar

Oscar de la Hera Gomez
A flower that represents Figma with the text "Variable Driven Responsive Navigation Bar" beneath it.

A Figma tutorial on creating and previewing a responsive screen that's driven by variables and which adapts its navigation bar based on the screens width.

Please note that design systems such as the one laid out in this article are only available on education, professional or organization Figma accounts.

Step One: Create the Design System

A screenshot of Figma showing Styleguide, Typography and Assets next to a variable window that shows that the project has a design system.� To learn how to create one, follow the tutorial in the link below.

Add assets to your Figma design file and follow the tutorial below to create a design system that uses variables.

To create responsive type, create the relevant styles for each breakpoint. In the case of delasign.com, we have two different categories: mobile or desktop, which we apply depending on the breakpoint and orientation.

Step Two: Create the Navigation Bar

A screenshot of Figma showing that we have created a navigation bar component that has two variants - a mobile and a desktop variant.  We have highlighted that each navigation uses color tokens and text variables from our design systems. It also applies typography from our responsive typography system. Not shown on the screenshot is that we have applied a maximum height variables to the navigation bar parent component.

Create a component for the navigation bar, with variants for each version that is required for your website.

Please note that the parent frame cannot be an auto-layout, as if you use auto-layout you will not be able to set the relevant constraints.

Once created, apply variables and text styles where necessary.

In the case of delasign.com, we have two versions of the navigation bar (mobile and desktop) and have applied variables for the navigation bar height, typography and text elements.

Step Three: Create the Responsive Screen

A screenshot of Figma that shows a component titled "work page." The variable window is open and we have highlighted how a token called "min-width" and "max-width" have been applied to the "Work Page" minimum width and maximum width properties. These tokens have four modes to match the four breakpoints that are available in a professional account. We recommend that you use 5 if you have access to an enterprise account.

Create a component for the responsive screen that holds the navigation bar and apply the maximum and minimum width token. This will allow us to preview it using sections later on.

A screenshot of Figma highlighting how we have created two isMobile and isDesktop boolean variables within our design system which varies depending on the breakpoint. We have also highlighted how the layer visibility of each navigation bar is tied to a variable (i.e. the desktop navigation bar only shows if isDesktop is true and the mobile navigation bar only shows if isMobile is true).

Add both navigation bars to the responsive screen component and set the visibility to match a variable from the layout manager (i.e. isMobile, isTablet, isDesktop) and that the constraints of the component variants are set to top and left and right.

A screenshot demonstrating that the variant of the navigation has a minimum and maximum width which matches the token within our variable system and that the horizontal resizing mode has been set to fill container.

Make sure that the width of both navigation bars are set to the maximum and minimum width token and that the horizontal resizing is set to Fill Container.

Finally, make sure that the navigation bars edges are touching the left and right of the responsive screen.

Step Four: Create the Sections

A screenshot of Figma showing how we have created 4 sections for each of the four breakpoints. Each section has a work page that looks different and can be scaled differently, based on the breakpoint mode that the section is set to.

Create sections for each breakpoint of your design and add the component to each section.

Set the breakpoint of each section to the relevant breakpoint you'd like to preview.

Step Five: Preview

A screenshot of Figma that highlights how you can stretch the work page component between the minimum and maximum width of the breakpoint by dragging the edges around the component.

Within each section, drag the edges of the screen to scale the component between the minimum and maximum width of the breakpoint to see how it looks and feels.

Frequently Asked Questions (FAQ)

How can I apply white space on the sides (i.e. margin auto) after a certain width ?

A screenshot of Figma that shows 4 sections for the four breakpoint in our design system. Each section shows a different design that matches the intended layout. At the bottom, in the largest version of the design we see that after a certain point the screen applies white space around the edges, fulfilling the intention of this tutorial.

To learn how to use margin-auto, follow the tutorial below.

Looking to learn more about Figma and Responsive Design ?

We recommend you check out our Responsive Design Figma Guide or search our blog to find educational content on learning how to use Figma.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details