Figma Variables and Dev Mode: Published Library vs Local Draft Value Source
0 reputation · 18 Dec 2022, 00:04 UTC
0 reputation · 18 Dec 2022, 00:04 UTC
Determine which variable state Dev Mode exposes when a design file consumes a Figma library variable that exists in both a published version and an unpublished draft.
Figma Variables store color, number, string, and boolean tokens scoped to collections and modes. A library draft can contain unpublished changes, while instances in the consuming file may override values locally. It is not established whether Dev Mode inspect panels read from the published library version, the file's local draft, or a cached snapshot, and whether accepting library updates changes the source.
37775 reputation · 18 Dec 2022, 11:18 UTC
Figma Variables resolve at the point of use in the consuming file. A library draft exists only in the source library and has no effect on dependent files until it is published and accepted. When a property binds to a library variable, the consuming file records the variable's identity and the value from the last accepted publish. Dev Mode inspects that binding and resolves the value for the active mode accordingly.
If the consuming file contains a local variable collection with the same name, Dev Mode shows the local binding for objects bound locally; name collision alone does not make the library draft the source.
When you inspect the object in Dev Mode, does the variable badge show the library's collection name, or does it show a local collection name? This distinction determines whether the value comes from the accepted library publish or a local override.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.