Canvas AI
The Canvas AI is responsible for everything in your frontend — React components, styling, layouts, and client-side logic.
What It Does
Canvas AI handles all frontend development tasks. It writes React/Next.js code, applies Tailwind CSS styles, and manages your component structure.
Components
Create and modify React components, including JSX structure and TypeScript logic.
Layouts
Design page layouts with flexbox, grid, and responsive breakpoints.
Styling
Apply styles using Tailwind CSS classes, custom CSS, and theme variables.
Assets
Generate images and integrate media into your components.
Dependencies
Install and configure npm packages for additional functionality.
How to Use It
You don't need to explicitly call Canvas AI. Just describe frontend changes in natural language:
Creating components
"Add a testimonials section with 3 cards showing customer quotes"
Styling
"Make the buttons blue with rounded corners and a hover effect"
Layout changes
"Change the features section to a 3-column grid on desktop, single column on mobile"
Files It Manages
app/ # Next.js pages ├── page.tsx # Home page ├── layout.tsx # Root layout └── [routes]/ # Additional pages components/ # React components ├── Header.tsx ├── Footer.tsx └── ... styles/ # Global styles └── globals.css public/ # Static assets └── images/ next.config.js # Next.js configuration package.json # Dependencies
Tips for Better Results
- •Be specific about positioning: "Add a button in the top right corner" vs "add a button"
- •Mention colors by name: "Use purple-600" or describe: "a dark purple"
- •Reference existing elements: "Match the style of the header"
- •Specify responsive behavior: "Stack vertically on mobile"