How to inspect variables and code snippets in Figma Dev Mode
In Figma (verified 2026-10-24), press Shift+D (or flip the Dev Mode toggle) to enter Dev Mode, select a layer, then use the Inspect panel to copy code snippets (CSS, iOS, Android) and open Variable details (modes, aliases, raw values). With nothing selected, open the read-only variables table; for raw values, click to see suggested variables that match.
This builds on basic Dev Mode inspect — focus is variables, aliases and codegen handoff. Dev Mode needs a seat/plan that includes it; viewers without Dev Mode access may only see limited inspect.
Applies to Figma Design files in the browser or desktop app. Designers author variables in Design mode; developers consume them in Dev Mode. Plugin codegen can extend snippets.
Inspect variables and copy code in Dev Mode
Enter Dev Mode and select a layer
- Open the Figma file that has the design handoff.
- Press Shift+D or turn on the Dev Mode toggle in the toolbar.
- Click a frame or component instance you need to implement.
Read variables and code
- In Inspect, toggle Code vs List for properties.
- Set language (CSS / SwiftUI / Compose…) and units in the Code section.
- Click a variable name in the snippet or Selection colors to open Variable details (mode, alias chain, raw value).
Use suggestions and the variables table
- If you see a raw value, click it for suggested variables with the same value/scope.
- Deselect layers and open Open variables table to browse local collections read-only.
- Copy names/values you need; leave comments if a token looks wrong for engineering.
Our take: inspect aliases before hard-coding hex
If Background/Positive aliases Green/500, ship the token name — not the resolved hex — unless your pipeline requires literals.
If it fails
- No Dev Mode toggle: plan/seat lacks Dev Mode, or you are in FigJam — open a Design file.
- Empty variables: designers used detached styles — ask for variables or use suggested matches.
- Wrong language snippet: change the Code language dropdown with nothing selected first.
- Need docs links: check component playground / dev resources on instances.
Frequently asked questions
What is advanced Figma Dev Mode?
Using Dev Mode beyond basic inspect — variable details, aliases, suggested variables, variables table and multi-language code snippets.
How do I open Variable details?
In Dev Mode Inspect, click a variable in a code snippet or Selection colors, or use Variable details controls on the selection.
Can Dev Mode edit variables?
No — Dev Mode’s variables table is read-only; edit collections in Design mode with the right permissions.
What are suggested variables?
When Inspect shows a raw value, Dev Mode can propose existing variables with the same value and appropriate scope.
Does Dev Mode work offline?
You need access to the Figma file online; codegen plugins may need network too.