You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgalt="Shows the CSS and JavaScript code for a selected element."src="packages/extension/assets/code-light.png"width="720">
39
39
</picture>
40
40
41
41
Select any element, and you can obtain the CSS code through the plugin's Code panel. In addition to standard CSS code, TemPad Dev also provides styles in the form of JavaScript objects, making it convenient for use in JSX and similar scenarios.
<imgalt="Shows units and root font size settings in preferences."src="packages/extension/assets/unit-light.png"width="720">
47
47
</picture>
48
48
49
49
You can configure CSS units and root font size to convert `px` dimensions in CSS to `rem` units. You can also apply a `scale` factor to scale `px` values according to your handoff requirements.
@@ -54,29 +54,29 @@ You can configure CSS units and root font size to convert `px` dimensions in CSS
<imgalt="Shows the deep select mode in preferences."src="packages/extension/assets/deep-light.png"width="720">
60
60
</picture>
61
61
62
62
In Figma's read-only view, selecting nodes requires double-clicking to drill down, and it often takes repeated double-clicks to select the lowest-level node. Although Figma offers a <kbd>⌘</kbd> + click shortcut, many users are unaware of this feature and need to perform extra key operations each time. Therefore, TemPad Dev provides a deep select mode in preferences.
<imgalt="Shows the measure to selection mode in preferences."src="packages/extension/assets/measure-light.png"width="720">
70
70
</picture>
71
71
72
72
In Figma's read-only view, you need to hold <kbd>⌥</kbd> and move the cursor to display the spacing between other nodes and the selected node. For similar reasons to the deep select mode, TemPad Dev provides a measure to selection mode in preferences.
<imgalt="Shows the scroll selection into view feature."src="packages/extension/assets/scroll-light.png"width="720">
80
80
</picture>
81
81
82
82
When you hover over a node name section in TemPad Dev's inspect panel, a corresponding button appears. Clicking it will scroll the current selection to the center of the Figma viewport. Figma has a similar <kbd>⇧2</kbd> shortcut, but it zooms in to fill the viewport, which often doesn't meet the needs. Figma actually exposes an interface in the plugin API to move and zoom to 100%, so we also provide this capability as a supplement.
@@ -86,9 +86,9 @@ When you hover over a node name section in TemPad Dev's inspect panel, a corresp
4. Keep the TemPad Dev tab active while using MCP. If you have multiple Figma files open (and therefore multiple TemPad Dev instances), click the MCP badge in the TemPad Dev panel to activate the correct file for your agent.
225
+
226
+
### MCP connection status
227
+
228
+
When MCP is enabled, a badge appears in the TemPad Dev panel title bar showing the current connection status:
229
+
230
+
-**Unavailable**: The local MCP server is not configured or not running.
<imgalt="MCP status badge showing Unavailable."src="packages/extension/assets/mcp-unavailable-light.png"width="720">
236
+
</picture>
237
+
238
+
-**Inactive**: TemPad Dev is connected to a local MCP server, but this tab is not currently active because multiple Figma tabs are open. Click the badge to activate MCP for this tab (this deactivates MCP in other tabs).
215
239
216
-
4. Keep the TemPad Dev tab active while using MCP. If you have multiple Figma files (and thus multiple TemPad Dev extensions) open, click the MCP badge in the TemPad Dev panel to activate the correct file for your agent.
<imgalign="right"alt="Choose “Duplicate to your drafts” to ensure standard mode instead of quirks mode."src="assets/duplicate-light.png"width="360">
269
-
</picture>
270
-
271
301
**2025.04.01**: Figma removed the `window.DebuggingHelpers.logSelected` API, which was used to extract style data. As a result, Quirks mode is no longer usable.
272
302
273
303
**2024.11.04**: TemPad Dev now managed to bring back the `window.figma` API under view-only mode. But we still cannot guarantee the long-term validity of this feature. If Figma removes the related interface again, this mode will also become unavailable.
274
304
275
305
**2024.04.08**: TemPad Dev successfully retrieved most style information using currently unblocked debug interfaces, providing a new [Quirks Mode](#quirks-mode). This mode does not rely on `window.figma` but instead parses debug logs to generate style code, with slight differences from the standard mode.
276
306
277
-
**2024.04.03**: The Figma team adjusted the expected time from "in the coming weeks" to "in the coming months", effectively shelving the issue.
278
-
279
307
**2024.03.20**: After we posted complaints on the Figma Community Forum, the Figma team stated that they would reinstate the `window.figma` interface in view-only mode in the coming weeks. You can track the progress of this issue on this [thread](https://forum.figma.com/t/figma-removed-window-figma-on-view-only-pages-today/67292).
280
308
281
-
**2024.03.19**: Figma removed the `window.figma` interface in view-only mode. As a result, we can no longer seamlessly view information and code for Figma elements in view-only mode.
0 commit comments