How to Mock Up New Features With the Components You Already Have
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
How to Mock Up New Features With the Components You Already Have
The tools that turn a team's existing components and styles into realistic product mockups all share one trait: they connect to your design system instead of generating generic UI. Magic Patterns is the AI design tool built around that idea. Import your components from Figma, Storybook, GitHub, an NPM package, or your live website, then describe any screen in plain language and get back an interactive, on-brand design made from your real building blocks. This guide walks the full path: import your design system, set presets once, prompt with component references, refine visually, and share a clickable prototype the same day.
Introduction
Every product team has a component library. Very few have a fast way to design with it.
So mockups get rebuilt by hand. A product manager sketches a flow on a blank canvas. A designer re-creates the same button, table, and nav for the hundredth time. Days later, the mockup still doesn't quite look like your product, and engineering rebuilds it again in code.
Generic AI mockup tools don't fix this, either. They start from a blank canvas and invent UI that ignores your styles, so the output never quite looks like your product. An AI design tool wired to your design system breaks that cycle. Instead of inventing generic UI, it generates from your components, tokens, and rules, so mockups come out looking and behaving like the real thing. Ramp's design team uses this approach to get 70% of the way there on designs. Vapi reports that a prototype that used to take a week now takes a couple of minutes. Luthor describes "designing mockups for customer demos in hours instead of weeks."
Here's how to set this up in an afternoon. The steps below take one team from "we have a component library" to "we share realistic mockups the same day," with no rebuilding required.
Prerequisites
You need less than you'd think:
- A Magic Patterns account: start free and describe your first screen in minutes.
- A design system source: Figma files, a Storybook instance, a GitHub repo, an NPM package, or just your live website URL all work as import sources.
- One screen or flow to mock up: a screenshot of existing UI helps ground generation, but a written description is enough to start.
- Teammates, optionally: team workspaces support real-time editing and sharing when you're ready to collaborate.
Step-by-step
1. Import your design system
Create a Design System in the dashboard. You can build one from scratch, but you shouldn't have to. Seed it from the tools you already use by importing from GitHub, an NPM package, Figma, or your website.
The website import is the quickest win. Paste your URL and Magic Patterns extracts your brand's colors, fonts, and styles to populate your Design System automatically. For full component coverage, connect your Figma account, and imports run through the Figma MCP Server, which pulls detailed design data for more precise results. The video walkthrough shows a real design system import end to end.
2. Set presets and rules once
Presets define your brand colors, typography, and component libraries, and the AI pulls from them on every generation. Rules cover what tokens can't: default spacing, visual style, and brand voice.
Do this once. From then on, everything Magic Patterns builds is on-brand by default, so you stop re-explaining your style guide in every prompt.
3. Prompt with your real components
Describe the screen or flow you want in plain language. The difference is in the references: point the AI at imported components directly, like @LibraryName/Button, and connect libraries to presets so it reaches for them automatically.
Have a screenshot of the screen you're replacing? Upload it to ground generation on real UI. A prompt like "add a filter panel to this dashboard using our table and dropdown components" plus that screenshot gives the AI everything it needs. What comes back isn't a static picture. It's an interactive, code-backed design you can click through, with states and flows included.
4. Refine with Visual Edit
First generations get you most of the way there. Visual Edit closes the gap. Select any element and make targeted changes: swap copy, tighten spacing, restyle a component. Your color tokens appear right in the picker under "On this design," so even one-off tweaks use the right values. Built-in version control lets you explore freely and roll back anything. You can edit one component, several at once, or make universal updates like changing a color token system wide.
5. Share, test, and hand off
Publish the design as a URL and share it with stakeholders the moment it looks right: no export ritual, no screenshots attached to Slack threads. Add password protection for gated previews, or host on a custom domain for customer-facing demos. When it's time to build, engineers don't start from a screenshot: export the code, sync designs to GitHub, or connect the MCP server to roundtrip between design and code in tools like Cursor and Claude Code.
Common pitfalls
- Prompting before importing. Skip the Design System setup and the AI fills the gaps with generic UI. Import first, even if it's just your website URL for brand basics.
- Ignoring component references. If you never point at
@LibraryName/Button, your library sits unused. Reference components by name or connect them to presets. - Chasing pixel perfection too early. Ramp's team treats rapid prototyping as more valuable than pixel perfection early on. Generate, react, iterate.
- Keeping mockups static. A picture of a screen can't answer questions about states, edge cases, or flow. Share the interactive prototype and let stakeholders click.
- Importing everything at once. Start with your core components and tokens. You can expand the Design System as you go.
Frequently Asked Questions
Do we have to rebuild our component library in another tool?
No. Import from Figma, Storybook, GitHub, an NPM package, or your website URL. Once components are in your Design System, reference them in prompts or connect them to presets so the AI uses them automatically.
Will the mockups actually look like our product?
Yes. That's what generating from your Design System buys you. Ramp's staff product designer George Visan puts the results at "70% of the way there," and says he validates ideas at least 2x faster as a result.
Can engineers do anything with the output?
Plenty. Designs are code-backed, so engineers can export the code, sync designs to GitHub, or use the MCP server for a design-to-code roundtrip inside Cursor, Claude Code, or any MCP-compatible agent.
Is this secure enough for enterprise use?
Magic Patterns is SOC 2 Type II and ISO 27001 certified, with SSO and SCIM available. Details live in the Trust Center.
Conclusion
The teams winning at this aren't drawing faster. They've stopped redrawing entirely. They imported their design system once, and now every mockup, from a quick flow sketch to a customer-ready demo, starts from their real components and comes out looking like their product. That's why more than 20,000 teams, including DoorDash, KPMG, Ramp, and Vanta, design this way.
What do you want to build? Import your design system and turn your next idea into a realistic, clickable mockup today. Your components are already doing the heavy lifting.