Skip to main content

What You’ll Learn

This guide walks you through:
  • Installing the TemPad Dev extension
  • Opening a Figma file and selecting elements
  • Extracting CSS and JavaScript code
  • Configuring basic preferences
  • Using plugins to customize output
Time to complete: ~5 minutes

Step 1: Install Extension

1

Visit Chrome Web Store

Navigate to the TemPad Dev extension page in your Chromium-based browser
2

Install Extension

Click Add to Chrome and confirm the installation
3

Verify Installation

Check that TemPad Dev appears in your browser extensions list (chrome://extensions)

Step 2: Open Figma

1

Navigate to Figma

Go to figma.com and sign in to your account
2

Open Any Design File

Open an existing file or create a new design for testing. The extension works in both edit and view-only modes.
3

Locate TemPad Dev Panel

The TemPad Dev panel appears automatically in the Figma interface. Look for it in the right sidebar area.
If you don’t see the panel, try refreshing the page with Ctrl+Shift+R (Cmd+Shift+R on Mac)

Step 3: Select Element

1

Click Any Element

Select any element on the Figma canvas - a button, text layer, frame, or component
2

View Generated Code

The TemPad Dev panel automatically updates to show:
  • CSS code: Standard CSS properties
  • JavaScript code: Object syntax for JSX/React
3

Copy Code

Click the copy icon in the code block header to copy the code to your clipboard

Example Output

When you select a button element, you’ll see:
background-color: #6699cc;
color: #ffffff;
font-family: "Inter", sans-serif;
font-size: 16px;
font-weight: 500;
line-height: 24px;
padding: 12px 24px;
border-radius: 8px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);

Step 4: Configure Basics

Open Preferences

1

Access Settings

Click the settings/gear icon in the TemPad Dev panel header
2

Explore Options

Review available configuration options

Configure CSS Units

Convert pixel values to rem units:
1

Enable rem Units

In Preferences, set Units to rem
2

Set Root Font Size

Configure Root Font Size (typically 16px)
3

See Updated Output

Select an element again to see rem-converted values:
font-size: 1rem; /* 16px */
padding: 0.75rem 1.5rem; /* 12px 24px */
border-radius: 0.5rem; /* 8px */

Apply Scale Factor

Scale all values for different screen densities:
1

Set Scale

In Preferences, adjust the Scale value (e.g., 0.5 for 50% scale)
2

View Scaled Output

Select an element to see scaled values:
/* Original: 24px, Scale 0.5 */
font-size: 12px;

Configure Variable Display

Control how CSS variables appear in output:
Shows variable names only:
background-color: var(--color-primary);
Shows computed values only:
background-color: #6699cc;

Step 5: Enable Enhanced Features

Deep Select Mode

Automatically selects the deepest nested element without repeated double-clicks. Perfect for complex components.
1

Enable Feature

In Preferences, toggle Deep Select Mode ON
2

Test It Out

Click a complex component with nested layers. TemPad Dev automatically selects the lowest-level node.
Before Deep Select:
  • Click → selects outer frame
  • Double-click → selects inner group
  • Double-click again → selects actual element
With Deep Select:
  • Single click → selects actual element directly

Measure to Selection Mode

Displays spacing measurements automatically without holding modifier keys.
1

Enable Feature

In Preferences, toggle Measure to Selection Mode ON
2

View Measurements

Select any element, then hover over nearby elements to see spacing measurements displayed automatically

Scroll Selection Into View

1

Select an Element

Choose any element on the canvas
2

Find Scroll Button

Hover over the node name section in the TemPad Dev inspect panel
3

Click to Center

Click the scroll button to center the selection in the Figma viewport at 100% zoom

Step 6: Install Your First Plugin

Plugins customize code output for different frameworks and design systems.

Install Tailwind CSS Plugin

1

Open Plugin Settings

Navigate to Preferences → Plugins
2

Add Plugin

Enter the plugin name:
@tailwind
3

Click Add

The plugin installs automatically from the built-in registry
4

View Tailwind Output

Select an element to see Tailwind CSS classes:
<div class="bg-blue-500 text-white font-medium px-6 py-3 rounded-lg shadow">
  Button Text
</div>

Available Built-in Plugins

Install plugins by entering their @name in the plugin settings:
  • @tailwind - CSS to Tailwind CSS classes
  • @react-native - React Native StyleSheet format
  • @kong - Kong Design System components
  • @nuxt - Nuxt UI components
  • @fubukicss/unocss - UnoCSS utilities

Install Custom Plugin from URL

1

Get Plugin URL

Find a plugin repository (or create your own) and copy the raw JavaScript file URL:
https://raw.githubusercontent.com/username/tempad-plugin/main/plugin.js
2

Add URL in Preferences

Paste the full URL into Preferences → Plugins and click Add
3

Verify Installation

Select an element and check that new code blocks appear according to the plugin configuration

Common Workflows

Extract Design Tokens

1

Select Element with Variables

Choose an element that uses Figma variables/styles
2

Set Variable Display to Both

In Preferences, set Variable Display to Both
3

Copy Variable References

The output includes both variable names and fallback values:
color: var(--color-text-primary, #1a1a1a);
background: var(--color-surface-raised, #ffffff);

Generate Component Props

1

Select Component Instance

Click any component instance on the canvas
2

View Component Code

If using a plugin with transformComponent hook, you’ll see component invocation code:
<Button variant="primary" size="lg">
  Click me
</Button>

Export for Multiple Frameworks

1

Install Multiple Plugins

Add plugins for different frameworks:
@tailwind
@react-native
2

Select Element

Click any element on the canvas
3

View All Formats

The Code panel shows multiple code blocks:
  • Standard CSS
  • JavaScript object
  • Tailwind classes
  • React Native StyleSheet
4

Copy Desired Format

Click the copy icon for the format you need

Tips and Best Practices

Enable Deep Select Mode when working with complex components that have many nested layers. This saves time by eliminating repeated double-clicks.
Set your units (px vs rem) based on project requirements. Most modern web projects benefit from rem units for better accessibility.
If your team uses a custom design system, create a plugin to map Figma components to your actual component library. See the plugin development guide for details.
The “Both” mode for variable display provides the most useful output - you get variable names for design tokens while preserving fallback values for reference.
TemPad Dev complements Figma’s native Dev Mode. Use Dev Mode for layout and spacing, and TemPad Dev for extracting actual code.

Troubleshooting

Panel Not Appearing

1

Hard Refresh

Press Ctrl+Shift+R (Cmd+Shift+R on Mac) to hard refresh the Figma page
2

Check Extension Status

Verify TemPad Dev is enabled in chrome://extensions
3

Check Figma URL

Ensure you’re on a valid Figma file URL (figma.com/design/* or figma.com/file/*)

Code Not Updating

1

Reselect Element

Click away and reselect the element
2

Check Element Type

Some element types (like locked layers) may have limited inspection
3

Disable Conflicting Extensions

Temporarily disable other Figma-related extensions

Plugin Not Working

Plugin URLs must support CORS. Use GitHub raw URLs or Gist URLs for reliable access.
1

Verify Plugin URL

Test the URL in your browser to ensure it returns valid JavaScript
2

Check Export Format

Plugin must use export default definePlugin(...) or export const plugin = ...
3

Remove and Reinstall

Delete the plugin and add it again to clear cached errors
4

Check Browser Console

Open DevTools (F12) and look for plugin-related errors

Next Steps

Learn More

Plugin Development

Create custom plugins to transform code output for your workflow

MCP Integration

Connect TemPad Dev to AI coding agents via Model Context Protocol

Configuration Reference

Explore all configuration options and preferences

API Reference

Learn about the plugin API and available hooks

Join the Community

GitHub Repository

View source code, report issues, and contribute

Discord Community

Chat with other users and get help

Create Your First Plugin

Ready to customize TemPad Dev for your specific needs? Follow this example:
1

Install Plugin SDK

npm install -D @tempad-dev/plugins
2

Create Plugin File

import { definePlugin } from '@tempad-dev/plugins'

export default definePlugin({
  name: 'My Custom Plugin',
  code: {
    css: {
      title: 'Custom CSS',
      transform({ style }) {
        // Transform CSS properties
        return Object.entries(style)
          .map(([key, value]) => `${key}: ${value};`)
          .join('\n')
      }
    }
  }
})
3

Deploy to GitHub

Push your plugin to a GitHub repository and use the raw URL to install it
For complete plugin development guide, see the Plugin Development documentation.

Summary

You’ve learned how to:
  • ✅ Install and verify the TemPad Dev extension
  • ✅ Open Figma and locate the TemPad Dev panel
  • ✅ Select elements and extract CSS/JavaScript code
  • ✅ Configure units, scale, and variable display
  • ✅ Enable enhanced features like Deep Select
  • ✅ Install and use plugins for framework-specific output
You’re ready to streamline your design-to-code workflow!