November 4th, 2024

Show HN: Convert any website into a React component

Magic Patterns is a Chrome extension that converts HTML to React code and Figma designs, utilizing AI for customization. It has a 4.9 rating and ensures user data privacy.

Read original articleLink Icon
SatisfactionCuriosityConcern
Show HN: Convert any website into a React component

HTML to React & Figma by Magic Patterns is a Chrome extension designed to convert HTML from any webpage into React code or editable Figma designs. The extension allows users to quickly grab existing designs and utilize them in their projects, facilitating the import and modification of designs without starting from scratch. It leverages AI to enhance and customize these designs further. The extension has received positive feedback, boasting a 4.9 rating from users who appreciate its innovative features and the ongoing updates from its developers. Users have highlighted its utility in quickly capturing UI inspiration and integrating it into Figma. The developer, North Park Labs, Inc., has assured users that their data will not be sold or misused outside the core functionality of the extension. The latest version was updated on November 2, 2024, and the extension has garnered around 3,000 users.

- The extension converts HTML to React code and editable Figma designs.

- It allows users to import and modify existing designs using AI.

- It has a high user rating of 4.9 based on positive feedback.

- The developer ensures user data privacy and does not sell personal information.

- The extension is regularly updated with new features and improvements.

AI: What people are saying
The comments on the Magic Patterns Chrome extension reveal several key themes and user experiences.
  • Users appreciate the tool's ability to convert HTML and Figma designs into polished React code, noting its high fidelity and usefulness for prototyping.
  • Concerns about copyright and the ethical implications of replicating website designs are raised, highlighting the ambiguity in ownership of generated outputs.
  • Some users express curiosity about the technical aspects of the tool, such as its use of computed styles and differences from standard LLMs.
  • There are inquiries about compatibility with specific platforms, like Framer and Figma, indicating interest in broader applications.
  • Overall, the extension is praised for its functionality, with users eager to explore its potential in their projects.
Link Icon 24 comments
By @chis - 6 months
Your actual product is really slick. Even just with some basic tests I can see that it produces designs with a much higher degree of polish than regular LLM models, and with much more of a design bent. I'll definitely use this for some prototyping this week!

I wonder what changes you've made from standard LLMS to get here? I could imagine trying to put things on guard rails, giving it some components to build off, or just fine tuning based on a really nice corpus of good websites (maybe generated with this tool).

By @nicce - 6 months
I am going to be that person, but how is the copyright for the output of tools like this? Since not all websites include license on their site, yet their looks are replicated, this might be even less clear than with LLMs in general.
By @rriley - 6 months
This is a very useful browser extension. Really love the fact that you are even able to convert the styles to TailwindCSS. Very clever.
By @rahimnathwani - 6 months
Although the tool isn't designed for this, it's a nice way to get a clean, printable HTML copy of a section on a page. For example, the Claude web UI doesn't allow you to print a whole chat transcript. It only prints what's visible on the screen.

With this tool, you can select a point between two chat bubbles, and this will select the whole transcript.

I built a simple Chrome extension to do something similar, but my output isn't as high fidelity: https://news.ycombinator.com/item?id=42043881

By @TheRealPomax - 6 months
Next step: turn it into a web native custom element instead, and then trivially have a React version of that too by making a component that just correctly wraps the custom element.
By @robertlagrant - 6 months
I'm not sure if I did it wrong, but going to the Hacker News bar and looking at the font of the Hacker News logo, it's different.

Original is: Verdana, Geneva, sans-serif

Yours is: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"

It looks cool, but I don't see why that sort of thing would happen?

By @sech8420 - 6 months
This is absolutely fantastic. I love it. Works great on about 80% of the website elements I've tried across about 10 websites now.

I tried it on our site, and was able to completely replicate some of our most esteemed components.

A few sites wont allow the selection. I activate the select mode then hover over elements, and it won't pick up on anything. Not that is has me wondering how I could have our own site prevent people from copying it as well.

Great work. I will be a long time user of this.

By @hipadev23 - 6 months
This is cool. I hate that frotnend development is such a shitshow these days this sort of tooling is necessary. I miss the days of view-source and single style.css.
By @urbandw311er - 6 months
I like how people are putting “magic” in inverted quotes. You know, just so it’s not confused with real magic.
By @ape4 - 6 months
Somehow it seems roundabout to use computed styles (which aren't human friendly) then to use an LLM to convert that back into something human friendly. Maybe that's the only reasonable way.
By @bkyan - 6 months
On the pricing page, there is a highlighted bullet point for "Private generations" under the Pro tier. How does that differ from the other tiers?
By @santa_boy - 6 months
Yet to try but is there a way to support vanilla JS? Most of my nowadays are pure HTML/JS/CSS (using Alpine mostly)
By @misstercool - 6 months
Nice job! Do you have hypothesis why this is particularly popular in Japan? Did you launch to specific market?
By @wordpad25 - 6 months
Would this work on my own Framer pages so I can finally host them myself?
By @skylovescoffee - 6 months
Nice job! Are there any plans to make it compatible with Firefox?
By @frays - 6 months
Very useful way to get the HTML and CSS for a website!
By @instagary - 6 months
Great demo video, will try this out!
By @darepublic - 6 months
Does this use computed styles?
By @javed6542 - 6 months
should help in generating data for LLM training
By @davedx - 6 months
Can I use this on Figma designs I need to implement for work? ;)
By @superb_dev - 6 months
Oh cool, theft as a service!
By @mushufasa - 6 months
How does this compare to cursor composer?