Figma Plugin
Devup UI provides a Figma plugin that bridges the gap between design and development. Convert Figma layers directly to Devup UI code and export design tokens to devup.json.
Installation
- Open Figma
- Go to Plugins > Browse plugins in Community
- Search for "Devup UI"
- Click Install
Or visit the Figma Community page directly.
Features
Layer to Code Conversion
Select any layer in Figma and convert it to Devup UI component code:
- Select a layer (frame, rectangle, text, etc.)
- Open Devup UI plugin
- Click "Convert to Code"
- Copy the generated code
Example Output:
1<Box 2 bg="#ffffff" 3 borderRadius="8px" 4 boxShadow="0 4px 6px rgba(0, 0, 0, 0.1)" 5 p={4} 6 w="320px" 7> 8 <Text color="#000000" fontSize="24px" fontWeight={700}> 9 Card Title 10 </Text> 11</Box>1<Box 2 bg="#ffffff" 3 borderRadius="8px" 4 boxShadow="0 4px 6px rgba(0, 0, 0, 0.1)" 5 p={4} 6 w="320px" 7> 8 <Text color="#000000" fontSize="24px" fontWeight={700}> 9 Card Title 10 </Text> 11</Box>
Design Token Export
Export your Figma styles as devup.json configuration:
- Define color styles and text styles in Figma
- Open Devup UI plugin
- Click "Export Tokens"
- Download the generated
devup.json
Supported Token Types:
- Colors: Fill colors, stroke colors
- Typography: Text styles with font family, size, weight, line height
Auto-Detection
The plugin automatically detects:
- Layout properties (padding, gap, alignment)
- Border radius and shadows
- Typography settings
- Color values with automatic optimization
Usage Tips
Organizing Figma Styles
For best results, organize your Figma styles with consistent naming:
Colors:
primarysecondarytextbackground
Typography:
heading/h1heading/h2bodycaption
Working with Variants
Create Figma color style collections for different themes:
- Light Theme: Default colors
- Dark Theme: Dark mode colors
The plugin will export these as separate theme variants in devup.json.
Best Practices
- Use Figma styles rather than one-off colors for consistent token export
- Name layers descriptively for better code readability
- Use Auto Layout for better layout translation
- Keep designs simple - complex nested structures may need manual optimization
Support
For issues or feature requests, visit the GitHub repository.
Contents
Edit this page