What It Does
The Inspect Code feature allows you to select any element in Figma and instantly obtain production-ready CSS code. TemPad Dev provides both standard CSS and JavaScript object notation, making it convenient for use in JSX, styled-components, and similar scenarios.
How to Use
- Select an element in your Figma file
- Open the TemPad Dev panel
- View the generated code in the Code section
- Click the copy button to copy CSS or JavaScript code to your clipboard
Code Output Formats
CSS Format
Standard CSS properties with kebab-case naming:JavaScript Format
JavaScript object notation with camelCase properties:Configuration Options
Access these settings in the Preferences panel to customize code output.CSS Units

- px (default)
- rem
Output uses pixel units directly from Figma:
Root Font Size
When usingrem units, set the root font size (default: 16px) to ensure accurate conversion:
- 16px - Standard browser default
- 14px - Common for compact UIs
- Custom - Enter any value that matches your design system
24px→1.5rem32px→2rem12px→0.75rem
Scale Factor
Apply a scale factor to all pixel values to match handoff requirements:- 1 (default) - No scaling
- 0.5 - Scale down by half (e.g., for @2x designs)
- 2 - Scale up by 2x
- Custom - Enter any multiplier
Variable Display
Control how CSS variables and design tokens appear in the code output:- Reference (default)
- Resolved
- Both
Show only variable references:
Advanced Features
Gradient Borders
TemPad Dev automatically detects gradient borders and generates the appropriate pseudo-element code:Complex Shadows
Multiple box shadows are preserved and formatted correctly:Auto Layout to Flexbox
Figma’s Auto Layout properties are automatically converted to CSS Flexbox:| Figma Auto Layout | CSS Output |
|---|---|
| Horizontal | flex-direction: row |
| Vertical | flex-direction: column |
| Space between | justify-content: space-between |
| Hug contents | width: fit-content |
| Gap | gap: 16px |
Tips and Best Practices
When using plugins, the code output is transformed according to the plugin’s rules. A badge appears in the Code section header indicating which plugin is active.
Keyboard Shortcuts
While there are no specific keyboard shortcuts for copying code, you can:- Click on layer names in the Meta section to copy them
- Click the copy button on any code block to copy to clipboard
- Use standard browser selection to copy portions of code
Next Steps
Plugins
Customize code output with plugins for Tailwind, UnoCSS, and more
MCP Integration
Use MCP to pull code directly into your IDE or AI agent