Quick Start
Get up and running with FlowCraft in just 5 minutes! This guide will walk you through creating your first AI-generated component.
Step 1: Create Your First Project
Web Application
Log into FlowCraft
Click "New Project"
Name your project (e.g., "My First Component")
Select your preferred framework (React recommended)
Click "Create Project"
CLI
# Create a new project
flowcraft create my-first-component
# Navigate to project directory
cd my-first-component
# Initialize with React and Tailwind
flowcraft init --framework react --styling tailwind
Step 2: Prepare Your Design
FlowCraft works with various design inputs:
Option A: Use a Sample Design
We've included sample designs to get you started:
In your project, click "Use Sample Design"
Select "Landing Page Hero Section"
Click "Import Sample"
Option B: Upload Your Own Design
Click "Upload Design"
Drag and drop your design file (PNG, JPG, SVG, or Figma URL)
Wait for the upload to complete
Option C: Design from Scratch
Click "Sketch Mode"
Use our built-in drawing tools
Create a simple wireframe or mockup
Step 3: Generate Your Component
Using the Web Interface
With your design uploaded, click "Analyze Design"
Review the AI's component detection
Adjust component boundaries if needed
Click "Generate Code"
Wait 30-60 seconds for generation to complete
Using CLI
# Generate from uploaded design
flowcraft generate design.png --output components/
# Generate with specific options
flowcraft generate design.png \
--framework react \
--styling tailwind \
--responsive true \
--typescript true
Step 4: Review and Customize
Code Review
Examine the generated React component
Check the component structure and styling
Review responsive design breakpoints
Verify accessibility features
Customization Options
# Regenerate with different styling
flowcraft regenerate --styling "styled-components"
# Add specific features
flowcraft enhance --features "dark-mode,animations"
# Optimize for performance
flowcraft optimize --target "performance"
Step 5: Test and Deploy
Local Testing
# Start development server
npm start
# Run in preview mode
flowcraft preview
# Test responsiveness
flowcraft test --responsive
Quick Deployment
# Deploy to Vercel
flowcraft deploy vercel
# Deploy to Netlify
flowcraft deploy netlify
# Export static files
flowcraft export --output dist/
Example: Creating a Button Component
Let's create a simple button component to demonstrate the workflow:
1. Create the Design
# Use our built-in button template
flowcraft template button --variant primary
# Or describe what you want
flowcraft create-from-description "A blue rounded button with white text and hover effects"
2. Generate the Component
flowcraft generate button-design.png --component-name "PrimaryButton"
3. Review Generated Code
// Generated PrimaryButton.jsx
import React from 'react';
const PrimaryButton = ({
children,
onClick,
disabled = false,
size = 'md'
}) => {
return (
<button
onClick={onClick}
disabled={disabled}
className={`
px-6 py-3 bg-blue-600 text-white font-medium rounded-lg
hover:bg-blue-700 focus:outline-none focus:ring-2
focus:ring-blue-500 focus:ring-offset-2
disabled:opacity-50 disabled:cursor-not-allowed
transition-colors duration-200
${size === 'sm' ? 'px-4 py-2 text-sm' : ''}
${size === 'lg' ? 'px-8 py-4 text-lg' : ''}
`}
>
{children}
</button>
);
};
export default PrimaryButton;
4. Use Your Component
import PrimaryButton from './components/PrimaryButton';
function App() {
return (
<div className="p-8">
<PrimaryButton onClick={() => alert('Hello!')}>
Click Me!
</PrimaryButton>
</div>
);
}
What's Next?
Congratulations! You've created your first FlowCraft component. Here's what to explore next:
Immediate Next Steps
Create your first project - Build something more complex
Learn basic concepts - Understand FlowCraft fundamentals
Explore features - Discover all of FlowCraft's capabilities
Advanced Topics
Design-to-Code Workflow - Master the complete process
Advanced Techniques - Pro tips and tricks
API Integration - Integrate FlowCraft into your existing tools
Community Resources
Join our Discord - Get help and share your creations
Follow tutorials - Step-by-step project guides
Check the showcase - See what others are building
Tips for Success
Start Simple: Begin with basic layouts before attempting complex designs
Iterate Quickly: Use FlowCraft's regeneration features to refine your components
Learn from Examples: Study the generated code to understand best practices
Join the Community: Share your work and learn from other FlowCraft users
Happy coding! 🚀
Last updated