Creating Your First Project
This tutorial will guide you through creating your first project in Onlook.
Prerequisites
Before you begin, make sure you have:
- Installed Onlook (see Installation)
- Basic understanding of React and Tailwind CSS
Step 1: Create a New Project
- Open Onlook
- Click on "New Project" in the welcome screen
- Choose a template or start from scratch
- Enter a name for your project
- Click "Create"
Step 2: Explore the Interface
Take some time to explore the Onlook interface:
- Canvas: The central area where you see and interact with your components
- Layers Panel: Shows the component hierarchy
- Properties Panel: Edit properties of the selected component
- Style Editor: Modify Tailwind styles
- Code Panel: View and edit the generated code
Step 3: Add Components
- Click the "+" button in the toolbar
- Choose a component from the library
- Drag it onto the canvas
- Use the Properties Panel to customize it
Step 4: Style Your Components
- Select a component on the canvas
- Use the Style Editor to apply Tailwind classes
- Adjust spacing, colors, typography, and other properties
Step 5: Preview and Export
- Click "Preview" to see how your project looks
- Make any final adjustments
- Click "Export" to export your project
- Choose your export options (code, images, etc.)
Next Steps
Now that you've created your first project, you can:
- Learn more about Editing Projects
- Explore AI Features
- Try the Design to Code Workflow