Design to Dev hand-off
Tips and tricks to streamline the design to dev handoff
This documentation is based on the state of Figma and Dev Mode as of Monday February 5, 2024. If you find information out of date, please contact the Quantum team.
As a developer, using Figma can be daunting. Finding specific information about design elements often forces you to navigate through many different mockup/interface/screen layers. In this tutorial you'll learn how to navigate layers/frames/objects/elements/components more efficiently and quickly access their corresponding information.
Table of contents
- Prerequisites
- Introduction
- Available options
- Instructions
- Quantum Design-to-Code Figma plugin (Alpha)
1. Prerequisites
- You have a Figma license or view access on a Figma file. Figma is the official design tool at Thales.
- You know the basics of a Figma design file (if not, check this introduction guide from Figma).
2. Introduction
Mockups in Figma are made of design elements. Layers, frames, objects, elements and components are interchangeable terms to talk about design elements. But, bear in mind that not all design elements are created equal in Figma. In a nutshell:
- Layers, objects and elements are common terms to talk about any design elements
- Frames are specific design elements used as "containers". A special feature called Auto Layout can be activated to apply alignment and resizing rules to a frame's child elements.
- Components are reusable design elements composed of properties (highlighted in purple color in the Figma GUI)
- Asset is an umbrella word that include components and media like images or videos (jpg, png, svg, mp4, …)
From the Figma GUI, those design elements appears in:
- The canvas (middle working area). You can see the canvas as the viewing panel of your browser where the web page is displayed.
- The layers treeview (left sidebar). You can see the layers treeview as the DOM or the element pane from the browser developer tool, where you can find folders and subfolders ("containers") composed of elements like text, containers, assets, ...
- The inspector (right sidebar). You can see the inspector as the styles pane from the browser developer tool, where you can find information about a selected element.
Skeleton representation of the Figma GUI from the Figma help center
Also, keep in mind that, just like in the inspect mode of your browser it can take some clicks to select the right element and access the corresponding information. But don't panic! The flow is pretty similar to how it works in the browser and Figma even developed a specific mode for developers to ease that process!
Let's now dive into the practical matter.
3. Available options
Without Dev Mode
This view of Figma is similar to the one your designer with editor access is working with. As a developer, you usually have a view-only access meaning that you can't edit but only select elements from the layers treeview (left sidebar) or the canvas (middle working area) and read their corresponding information from the inspector (right sidebar). See instructions on how to use the view-only inspect mode in Figma below.
With Dev Mode (licence required)
Dev Mode offers a dedicated view of Figma for developers including:
- Quick information surfacing when hovering over design elements
- Easy access to individual design elements from the canvas (middle working area)
- Easy access to a summary list of assets in use on a mockup from the inspector (right sidebar)
- Code snippets preview
In a nutshell, Figma built this Dev Mode as close to what you're already used to: the debug view or inspect mode depending on your development environment.
See the comparative table below for more information about the difference of experience with or without Dev Mode.
Access to Dev Mode
Dev Mode is accessible to users who already have a Figma editor licence. Users with view-mode only access or a free figma account can't use Dev Mode at all. If you don't have a Figma editor licence, you will have to request a licence for Dev Mode access to your Figma point of contact at Thales (if you don't know your Figma point of contact, you can contact Estelle Pelleterat De Borde).
Comparative table: with Vs. without Dev Mode
Feature | With Dev Mode | Without Dev Mode (or no editor access) | Comment & Tips |
---|---|---|---|
Shared view of Figma between all collaborators on a project | ✅ (⚠️ see comment) | ❌ | With dev mode: designers (editors) can have the same view as their developers (viewers with dev mode access). If you need all the collaborators on a project to have the same view of Figma, all viewer-only users will need a Dev Mode licence! Without dev mode: as an editor you can't overview a file like if you were in the shoes of a viewer-only user and so have the same view as your team members who don't have a Figma or Dev Mode licence. |
Inspect variants of a component set | ✅ | ❌ | Without Dev Mode, you can't overview the component properties and their variants at the component set level. You have to inspect each variant component individually to see the corresponding component properties. |
Inspect properties of a component instance | ✅ | ✅ | |
Overview of the selected component | ✅ (⚠️ see comment) | ❌ | This feature is not very useful unless Figma adds auto-generated anatomy specs (like the EightShapes Specs Figma plugin does). |
Access to a component playground | ✅ (⚠️ see comment) | ❌ | With Dev Mode, you can play with the different variants of a component from your project file. Note that you can neither overview the component interactions (for example hover state) nor its responsive behaviour. |
Access to layout properties (padding, gap, width and height) | ✅ (⚠️ see comment) | ✅ | From the inspector (right sidebar), in Dev Mode you can overview the layout properties with the box model. From the canvas (middle working area), in Dev Mode you can easily surface layout/spacing values from a mouse hover. Without Dev Mode, you can have access to this information using the right keyboard control: hold Option or Alt when hovering over design elements. Also, note that in Dev Mode, you can't see the gap value from the inspector (right sidebar). You have to hover over the design element from the canvas (middle working area). |
Access to Styles or Variables | ✅ | ✅ (⚠️ see comment) | Without Dev Mode, the access to a style or variable is possible but less ergonomic. You need to select the exact layer where is applied the style/variable. Also, the name of the style/variable is not easily readable unless you hover over the value to see it in full in the tooltip. |
Access to assets reference | ✅ | ✅ (⚠️ see comment) | In Dev Mode, access to assets reference is made easy. Without Dev Mode, it is less ergonomic, you need to select the exact layer of the asset to have the corresponding information. |
Access to layers | ✅ (⚠️ see comment) | ✅ (⚠️ see comment) | The experience of selecting layers from the canvas (middle working area) is more flexible outside of Dev Mode. With the right use of keyboard control you can easily access granular layers or wrapper containers (see instructions on how to access layers without Dev Mode). In both cases, you can still use the layers treeview (left sidebar) to select the right layer. |
Access to layers treeview | ✅ | ✅ | In Dev Mode, your layers treeview is filtered. You have a simplified overview of the layers but you can still open the details when you need to. |
Access to plugins | ✅ (⚠️ see comment) | ❌ | In view-only mode, you can't use plugins at all. In Dev Mode you can load plugins that are made for Dev Mode but not standard plugins. |
Native Figma code snippets |