Zero Labs
Industry News / AI

Google Built a Free Design Tool That Generates Production Code From a Sentence — Then Added…

Source · Towards AI By TechLogStack

From the publisher’s feed, collected in the ZeroLabs newsroom.

Google Built a Free Design Tool That Generates Production Code From a Sentence — Then Added MultiplayerHow Google acquired a startup, powered it with Gemini, and quietly built the most credible challenge to Figma’s dominance since Figma itself displaced Sketch in 2019.At Google I/O 2025, Sundar Pichai typed a single sentence and watched a complete mobile UI appear in 30 seconds. Figma charges $15 per editor per month for collaborative design. Google Stitch does it free. A year later, Google added real-time multiplayer, a streaming design agent, and voice input — all still free. The design industry had a lot of questions. The engineering answers are more interesting than the product ones.Part 1: The Problem Stitch Was Built to SolveThe traditional design-to-development pipeline has a well-documented failure mode.A designer builds components in Figma. They annotate specifications manually. A developer receives the handoff and re-implements everything from scratch in code. Inconsistencies emerge. Design reviews go back and forth. The gap between designed and built consumes weeks of coordination on a good team — and is existential for a small one.For the 90% of product builders who couldn’t justify a full-time designer — founders, solo developers, product managers at early-stage startups — the gap wasn’t a workflow problem. It was a build or don’t build decision. You either hired a designer, learned Figma yourself, or shipped something unstyled.By early 2025, Gemini’s multimodal capabilities had reached a threshold where this gap could be closed differently. Google’s models could reliably interpret both text descriptions of interfaces and uploaded images of existing UIs, and generate coherent layouts with appropriate component choices, spacing, and visual hierarchy.The capability existed. The product layer didn’t — until Google acquired Galileo AI.Galileo had already solved the hardest non-model problems: the prompt engineering approach that reliably produces coherent UIs, the output parser that converts model outputs into valid design tokens and component trees, and the user experience model for iterative refinement. Building these from scratch would have taken months. The acquisition compressed that to days. Galileo’s technology became the product layer. Gemini became the intelligence underneath it.On May 20, 2025, at Google I/O, Sundar Pichai demoed the result. One sentence of plain English. A complete multi-component mobile UI in 30 seconds. React code on one click. A Figma file with editable layers on another. Over 1 million waitlist signups appeared overnight.The tool was free. That detail mattered more than most people initially understood.Part 2: The Architecture That Makes 30 Seconds PossibleGoogle Stitch’s core is not a purpose-built design model. It is Gemini 2.5 Pro with a specialized prompt engineering and output parsing layer on top.This architectural choice is what explains both Stitch’s range and its quality. Stitch understands design concepts like “glassmorphism”, “material design”, and “iOS Human Interface Guidelines” because Gemini was trained on documentation and examples of all of them. It can interpret a hand-drawn sketch because Gemini’s vision capability has seen thousands of wireframes. It generates production-quality React code because Gemini understands React at a level that exceeds most specialized code generation models.The key numbers:30 seconds — plain English to complete mobile UI with navigation, components, and color palette3 simultaneous inputs — text prompt + reference image + annotated screenshot, all in one context window5-screen canvas — simultaneous multi-screen generation introduced in Stitch 2.0 (March 2026)$0 vs $15 — Stitch multiplayer vs Figma professional plan, per editor per monthThe I/O 2026 streaming agent represents the most significant architectural change since launch. Previous versions used a turn-based model — submit a prompt, wait for complete generation, review, revise. The streaming agent replaced this with continuous render. Here is how the two models differ in code:// BEFORE (turn-based): submit → wait → review → resubmitasync function generateUI_old(prompt) { const result = await stitch.generate(prompt); // blocking — wait for complete output // Designer sees nothing until fully done return result.screens;}// AFTER (streaming agent): real-time render + mid-generation steeringasync function generateUI_streaming(prompt) { const stream = stitch.generateStream(prompt); // Components render onto canvas as they are generated stream.on('component', (component) => { canvas.renderPartial(component); // visible immediately }); // Designer can interrupt and redirect before generation finishes stream.on('layoutDecision', (decision) => { const userFeedback = canvas.checkInterrupt(); if (userFeedback) { stream.steer(userFeedback); // mid-generation course correction } }); // Voice input works inline — spoken mid-generation, reflected immediately voiceInput.on('command', (cmd) => stream.steer(cmd)); await stream.complete(); return canvas.getCurrentState();}The practical difference is not speed — both versions complete in roughly the same wall time. The difference is control. In the turn-based model, a layout heading in the wrong direction means waiting for it to finish, then re-prompting from scratch. In the streaming model, you interrupt, redirect, and the remaining components adjust. Same underlying model. Fundamentally different user experience.A 30-second generation that shows nothing for 28 seconds feels slow. A 30-second generation that shows components appearing in real time and allows mid-stream steering feels like collaboration.Part 3: Three Layers, One Intermediate RepresentationThe most important architectural decision in Stitch is one that most users never see: it does not generate Figma JSON or React code directly. It generates an intermediate representation first.The pre-Stitch workflow — 1–4 weeks per screen, multiple round trips between designer and developerStitch’s three-layer architecture — input layer, Gemini generation, intermediate representation, then format-specific exportsHere is why the intermediate representation matters:Direct code generation from a natural language prompt produces valid code but loses design semantics — a developer can see the code but cannot easily edit the visual designDirect Figma generation produces a visual file but loses code usabilityIntermediate representation preserves design intent — component names, spacing relationships, design tokens — and then translates to any format without lossOne IR generation → Figma file → React code → Vue code → AI Studio config. All from one prompt. All consistent with each other.The Stitch timeline from launch to I/O 2026:May 2025 — Single-screen generation, Figma export, code exportJul–Aug 2025 — Theme customization, RTL language supportDec 2025 — Prototypes, multi-screen flows, Gemini 3 integrationMar 19, 2026 — Stitch 2.0: infinite canvas, 5-screen canvas, voice inputMay 20, 2026 — Streaming agent, real-time multiplayer — both freeThe multiplayer implementation introduced a genuine engineering challenge that Figma didn’t face when it built real-time collaboration. In Figma, multiplayer synchronizes object positions and properties — deterministic operations with well-understood CRDT semantics. In Stitch, two users can simultaneously prompt the AI to modify the same canvas, producing non-deterministic outputs that may visually conflict. Google’s solution: queue concurrent AI generation requests per canvas object, apply last-write-wins for AI-generated changes, and use standard CRDT semantics for manual edits.The design quality ceiling remains honest and consistent: generated designs are starting points, not finished products. Stitch is strongest for exploration and prototyping. For production-ready UI that needs to meet professional brand standards — precise spacing, custom illustration, edge-case states — human design expertise is still required. This is exactly where the Figma integration earns its place: Stitch generates, Figma polishes.Part 4: What Every Engineer and Product Builder Should Take AwayGoogle Stitch is the most significant challenge to Figma’s category dominance since Figma displaced Sketch in 2019. The lessons here cross engineering and product strategy.1. Acquiring a specialized AI startup is faster than building the application layer from scratch. Google had Gemini. Galileo had the product layer — the prompt engineering, the output parser, the UX model for iterative refinement. The acquisition combined both instantly. When evaluating build vs buy in AI-adjacent categories, the application layer above a foundation model is often the harder problem — not the model itself.2. Intermediate representation is the architecture that makes multi-format export viable. Generating React directly loses Figma compatibility. Generating Figma directly loses code usability. An IR exports to both — and to formats not yet defined. Any AI tool that needs to produce structured output for multiple consumers should evaluate whether an IR layer belongs between the model and the export.3. Free with generous limits is a structurally viable disruption strategy — when the underlying cost is already subsidized. Google can offer Stitch free because Gemini API calls are already budgeted across Google’s infrastructure at marginal cost. Figma cannot match free without destroying its revenue model. This asymmetry is not a pricing decision — it is a structural moat built from cost position, not features.4. Complement-not-replace is a more effective positioning than direct competition. Sarah Drasner’s explicit framing of Stitch as a Figma complement — not replacement — reduced designer resistance and created adoption among exactly the professional users who could drive enterprise usage. Building with the dominant tool’s ecosystem creates adoption. Fighting it creates adversarial resistance.5. Streaming generation changes product experience more profoundly than speed does. The streaming agent and the turn-based model complete in the same time. But one feels like waiting and one feels like collaborating. When the output of your AI system is a visual artifact that users are trying to steer, streaming is not a performance optimization — it is a fundamentally different interaction model.Engineering GlossaryCRDT (Conflict-free Replicated Data Type) — A data structure designed for distributed systems that allows multiple users to edit the same data concurrently without conflicts, automatically merging changes.Galileo AI — A startup acquired by Google in early 2025 that had built one of the first credible text-to-UI generators, capable of interpreting product descriptions and producing coherent interface layouts.Gemini 2.5 Pro — Google’s most capable multimodal model at the time of Stitch’s launch — able to process text, images, audio, and video simultaneously and generate structured outputs across all of them.Intermediate representation — An abstract, format-agnostic description of design intent — component hierarchy, spacing tokens, visual relationships — that can be translated into multiple output formats without losing design semantics.RLHF (Reinforcement Learning from Human Feedback) — A training technique where human evaluators rate model outputs, and those ratings are used to fine-tune the model toward outputs humans prefer.Streaming generation — Delivering AI outputs progressively as they are computed rather than waiting for completion before showing any output — enabling mid-generation steering and real-time visual feedback.Vibe design — The practice of describing interface intent to an AI and refining the output iteratively, rather than building from first principles — the design equivalent of vibe coding.Read the full technical deep-dive — including Google Stitch’s interactive architecture diagrams, the complete feature timeline, and source links: techlogstack.com/explore/google-stitch-ai-design-tool-2026Follow TechLogStack on Medium for one real engineering breakdown per week — in plain English, the way your smartest friend would explain it.Google Built a Free Design Tool That Generates Production Code From a Sentence — Then Added… was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.