UI Generation
Give Claude the power to design. AI generates Rails views, components, and entire pages—you just approve.
Before
You
Can you build me a pricing page? Three tiers, toggle for annual/monthly, feature comparison table.
Claude
I can write the HTML/ERB code, but I can't see how it looks.
I don't know your existing design system, CSS classes, or component patterns.
Here's some generic code—you'll need to style it to match your app.
You
*Spends 3 hours fixing styles, matching design system, adjusting spacing...*
After
You
Can you build me a pricing page? Three tiers, toggle for annual/monthly, feature comparison table.
Claude
Let me analyze your design system first...
Using canvas.analyze_design_system
canvas.analyze_design_system()
Design System Detected
• Tailwind CSS with custom theme
• Card component: rounded-2xl, shadow-sm
• Buttons: btn-primary, btn-secondary
• Colors: terracotta, cream, charcoal
Got it. Generating with your design system...
Using canvas.generate_view
canvas.generate_view("pricing",
tiers: 3, toggle: true, comparison: true)
Preview
Pricing page with 3 tiers
Ready for review. View preview at /preview/pricing
Want me to adjust anything before we save it?
Generation time: 18 seconds
Without Canvas
With Canvas
Canvas analyzes your existing views, components, and CSS.
# Automatically extracted
colors: ["terracotta", "cream", "charcoal"]
components: ["card", "button", "badge"]
AI creates views that match your existing patterns.
Uses existing partials
_card.html.erb, _button.html.erb
See exactly how it looks. Iterate in real-time.
canvas.preview("pricing")
# Opens /preview/pricing in browser
One command writes the files to your codebase.
Available via MCP (Model Context Protocol)
canvas.generate_view(name)
"Create a pricing page"
canvas.generate_component(name)
"Create a modal component"
canvas.preview(path)
"Show me how it looks"
canvas.update_view(path, changes)
"Make the header bigger"
One gem. Zero config. Works in 30 seconds.
# Add to your Gemfile
gem 'brainzlab'
# Run bundle
$ bundle install
# That's it. AI-powered UI generation is ready.
We're building Canvas as part of Phase 2. Follow along to get early access.