Design to Code Workflow
This tutorial will guide you through converting designs to code using Onlook.
Prerequisites
Before you begin, make sure you have:
- Installed Onlook (see Installation)
- A design file (Figma, Sketch, or image)
- Basic understanding of React and Tailwind CSS
Step 1: Import Your Design
- Open Onlook
- Create a new project or open an existing one
- Click "Import Design" in the toolbar
- Choose your design file
- Wait for the import to complete
Step 2: Convert Design to Components
- Select elements in your imported design
- Use the "Convert to Component" option
- Customize the generated component
- Adjust properties and styles as needed
Step 3: Customize Generated Code
- Open the Code Panel
- Review the generated code
- Make any necessary adjustments
- Add functionality as needed
Step 4: Integrate with Your Workflow
- Export the components
- Integrate them into your existing project
- Test the components in your application
Next Steps
Now that you've converted designs to code, you can:
- Learn more about AI Features
- Explore Styling
- Try more advanced Editing Techniques