Inspect simplifies the design-to-development process. With Inspect, your team can access measurements, colors, and assets for desktop and mobile prototypes. Get pixel-perfect comps, export assets, and generate real code for any design element.
To get more familiar with Inspect, we recommend watching this guided video tour, led by one of our experienced InVision product experts:
The Inspect icon () will always be visible when viewing prototypes in InVision, but it will only work for screens you have uploaded via Craft Sync (or published via Studio).
To access Inspect in InVision Cloud:
After syncing your Sketch, Photoshop, or Studio document, sign in to your Cloud V7 account.
Navigate to the Documents page and open your prototype.
At the bottom of the page, click the Inspect icon ().
As seen in the screenshot above, the Inspect UI has a few different components:
Canvas: Use the canvas—between the two pink borders we've added to the screenshot above—to hover over and/or click any elements you want to inspect.
Layers panel: Select any groups or layers on the current screen.
information panel: Access your screen’s dimensions, colors, fonts, and more.
On the left-hand side of the page, you’ll notice a full list of groups and layers generated from your design document. The layers panel displays all the layers in the exact order, layer type, and hierarchy found in the source design file.
The following is a list of items and their associated icons that you’ll notice in the layers panel:
To expand or collapse a group, click the drop-down arrow to the left of the group name. To expand or collapse all groups, navigate to the top of the layers panel and click the collapse icon () at the top of the layers panel:
When hovering and clicking design elements on the canvas, Inspect selects the parent group by default. To select a nested group or layer, double-click the layer within that group. To access the most deeply nested layer, hold the Command key (Control for Windows) while hovering and clicking:
Selecting a layer on the artboard will also select that layer in the left-hand layers panel, and vice versa.
To deselect a layer, click the canvas outside the artboard or press the Escape key.
Measuring layer position
To display the relative distance between two layers, click the layer you want to measure and then hover over the layer you want to measure it against (either on the canvas or in the layers panel). To measure a layer's position relative to the artboard, select the layer and then move your cursor off the artboard:
If you're measuring from a text layer, hold Option to measure from the text baseline. Release Option to measure from the cap height:
The information panel is on the right side of the page. With a layer selected, the information panel displays layer-contextual information. With no layers selected, the information panel displays screen-contextual information.
To access the format settings, click the gear icon () at the top right of the page. Here you will find the unit, code, and color preferences for your prototype:
Each option will change the output of the properties found in the information panel. Choose among the following settings:
If you change any format settings from the defaults, Inspect saves those settings for you.
Any changes made to the format settings won't affect your collaborators. They can set their own preferred formats when viewing.
Dimensions and position
At the top right of the information panel, you can view the dimensions and position of a selected element relative to the artboard. When no elements are selected, you can view the dimensions for the artboard:
Within the right-hand information panel is the Colors section, where you can view the colors found on the current screen:
You can't delete document colors synced from Sketch. You will need to remove those colors in the original Sketch file and re-sync your prototype.
When no layers are selected, the right-hand information panel will display the Fonts section. This section lists all fonts used on that particular screen:
With a text layer selected, you can copy the text itself by clicking the Copy icon () next to the Text () field in the information panel, or you can copy the font name under the Styles heading:
When no layers are selected, the Layout section appears in the right-hand information panel. This section contains grid data from Sketch's Layout Settings. Click any grid value to copy it to your clipboard.
If any of your layers contain DSM data, a DSM section will appear in the right-hand information panel. In the left-hand layers panel, DSM layers are denoted with purple text. View information like library colors, text styles, and live components:
When you select a group or layer that contains data from a Sketch library, the Library section appears in the right-hand information panel. Depending on the layer type, the Library section shows the name of the Sketch symbol, text style, or layer style that's used as well as the name of the Sketch library that's referenced:
If you select a specific layer, the right-hand information panel will display the Styles section:
Depending on the layer type, this section will include information like color, alignment, and more. For example, if you select a text layer with multiple properties, you can view the different properties applied to each part of the text.
If you synced your prototype via Craft Sync for Photoshop, you won't be able to view multiple properties applied to different parts of the same text layer.
When you select a layer, you'll see the Code section of the information panel right next to the Styles section. Once you click Code, you'll see the layer's visual attributes in code form. To copy the snippet, click Copy Code:
When working inside groups, select the desired layer within the group before copying the code.
With Inspect you can view and download individual or multiple assets.
First, mark layers for export in Sketch and sync your prototype to InVision Cloud. If you don't complete these actions, the assets won't appear in Inspect.
For each artboard, we recommend giving a unique name to every group, nested group, and layer that you want to export as assets. If multiple layers or groups share the same name, it can prevent assets from being generated in Inspect.
With Craft Sync for Photoshop, you can generate assets for export by adding one of the following extensions to the end of the layer name:
Once you've marked layers for export and synced the prototype, you can view the assets by navigating to the top-right corner of Inspect and clicking the Assets tab.
Currently, there's not a way to remove assets within Inspect. To remove an asset, unmark the layer as exportable within Sketch and re-sync your prototype. In Photoshop, remove the extension from the file name and re-sync your prototype.
Downloading individual assets
There are two different ways to download individual assets while working in Inspect: Download the asset from a specific layer or use the Assets tab to download one or more assets for the entire screen.
To download an asset from a specific layer:
Click the desired layer—either in the layers list or on your prototype screen.
Below the thumbnail in the information panel, click Download.
If there are multiple formats available, this button will say Download all formats.
To download one or more assets for the entire screen:
Ensure that the screen itself, rather than individual layers, is selected.
At the top of the information panel, click the Assets tab.
Hover over an asset and click the Download icon (), or download all the assets on the screen by clicking Download assets.
The asset/s will download directly to your computer.
Generating 1x and 2x assets
In Sketch, you can generate 1x and 2x assets by creating 1x and 2x export versions in the export panel. After doing so, sync your prototype.
To generate an asset in Photoshop, add a file format extension to the name of the layer you want to export. All layer assets are exported at 1x by default. If you want to export the layer at 2x, add “@2x” to the end of the layer name (for example, “[email protected]”). Afterwards, sync your prototype.
It's not possible to adjust assets in Inspect. Manage your export settings within Sketch, and then re-sync your prototype. For Photoshop, change the file name and sync again.
Things to note
When using Inspect, here are a few things to keep in mind:
To limit processing time, keep your file as small as possible. If necessary, you can save your Sketch or Photoshop document as multiple smaller files.