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
Visit Chrome Web Store
Navigate to the TemPad Dev extension page in your Chromium-based browser
Step 2: Open Figma
Navigate to Figma
Go to figma.com and sign in to your account
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.
Step 3: Select Element
Click Any Element
Select any element on the Figma canvas - a button, text layer, frame, or component
View Generated Code
The TemPad Dev panel automatically updates to show:
- CSS code: Standard CSS properties
- JavaScript code: Object syntax for JSX/React
Example Output
When you select a button element, you’ll see:Step 4: Configure Basics
Open Preferences
Configure CSS Units
Convert pixel values to rem units:Apply Scale Factor
Scale all values for different screen densities:Configure Variable Display
Control how CSS variables appear in output:Reference Mode
Reference Mode
Shows variable names only:
Resolved Mode
Resolved Mode
Shows computed values only:
Both Mode (Recommended)
Both Mode (Recommended)
Shows variable names with fallback values:
Step 5: Enable Enhanced Features
Deep Select Mode
Automatically selects the deepest nested element without repeated double-clicks. Perfect for complex components.
Before Deep Select:
- Click → selects outer frame
- Double-click → selects inner group
- Double-click again → selects actual element
- Single click → selects actual element directly
Measure to Selection Mode
Displays spacing measurements automatically without holding modifier keys.
Scroll Selection Into View
Step 6: Install Your First Plugin
Plugins customize code output for different frameworks and design systems.Install Tailwind CSS Plugin
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
Common Workflows
Extract Design Tokens
Generate Component Props
Export for Multiple Frameworks
View All Formats
The Code panel shows multiple code blocks:
- Standard CSS
- JavaScript object
- Tailwind classes
- React Native StyleSheet
Tips and Best Practices
Use Deep Select for Nested Components
Use Deep Select for Nested Components
Enable Deep Select Mode when working with complex components that have many nested layers. This saves time by eliminating repeated double-clicks.
Configure Units Per Project
Configure Units Per Project
Set your units (px vs rem) based on project requirements. Most modern web projects benefit from rem units for better accessibility.
Create Custom Plugins for Design Systems
Create Custom Plugins for Design Systems
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.
Use Variable Display: Both
Use Variable Display: Both
The “Both” mode for variable display provides the most useful output - you get variable names for design tokens while preserving fallback values for reference.
Combine with Figma Dev Mode
Combine with Figma Dev Mode
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
Code Not Updating
Plugin Not Working
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: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