

It’s a bit annoying and full of potential errors, I know. We can set up a responsive Typescale and then need to make sure to change text style (if applicable) when breakpoints are changing. Unfortunately, what kicks in automatically with media queries in CSS needs to be added by hand in Figma. This way, you could always split it in two again in case the margin or anything changes in the future. Note: Sometimes, you might use the same grid for several breakpoints, then just note, e.g., Grid: S+ M (from 576 to 992). We then just need to add the correct grid when testing the breakpoint range. With the necessary information, grids can be set up for several screen size ranges and then saved as styles and re-applied. We can use the same testing setup for responsive grids if needed. If You Want To Work With A Responsive Grid This way, we can really test our components and even entire pages and already have a pretty realistic idea of the look and feel. It is (loosely) based on flexbox, as you will notice when you glimpse at the Inspect tab. Auto LayoutĪuto layout is really powerful but takes some practice to work with (and will drive you nuts to start with, but stick with it!!!).
#Figma add desktop frame how to
Very important to know from a developer’s point of view is that we have no automated breakpoints in Figma (I will talk about how to deal with that in a bit). It depends a lot on what we want to build. We can use the above tools individually, not at all, or combine them. Our tools in Figma for responsive design: The tools we have for responsive design are the following: This is a big one! Let’s look at it step by step. We Can Set Up And Test Responsive Design!

Check out the (really well-made) documentation and this fantastic video by the creator Jan Six.
#Figma add desktop frame code
And even more impressive, you can connect and can align with code tokens. However, with the Figma Tokens plugin, you can create tokens in Figma and work with them. Also, we have no styles for spacing systems (yet). So you cannot set a base font size to scale and adapt the scaling rate. ( Large preview) Opportunities Between Design And Codeįigma Token Plugin to create or connect with existing tokensĪs you can see, Figma styles are a bit isolated and do not interact with one another. Oh, and there are no spacing systems styles, so we just need to document this and set the correct distances by hand. Just as with components, we can link to external styles.

Tip: Click on the grey background area of the canvas, and you get an overview of all (local!) styles.īut any design team usually documents styles and their use either within the same Figma file or in a separate file. The Figma component search also picks up the description, which is handy for larger systems. The link will create a button in the inspect tab linking directly to, e.g., the Github section of the same component in code. If you want to link components to a code base without much effort and documentation, you can simply add a link and a description to the Figma component documentation (a bit hidden). ( Large preview) Quick Link UI And Code Components In Figma Many videos and tutorials show how different teams handle this alignment process. So sit down with us, have a coffee, and show us the code base you have or dream of building. However, to do so, we need information about the structure, naming, behavior, etc., from development. ( Large preview) Opportunities Between Design And Code Align UI And Code Components In Naming And Structureĭue to the use of components, variants, and props, we can align our UI components with code components. This way, we can pull components into multiple files in Figma yet remain a single source of truth and tidy structure. Just as in code, we can store components locally or create external libraries. Hence we can follow a nice atomic design path.

In Figma, we can set up re-usable UI components and create instances. We Work With Components And Variants In Figma Components In Figma
