r/reactjs • • 14d ago

Resource I built a CLI that extracts a website's design system for AI coding agents

I've been experimenting with AI coding tools like Cursor and Claude Code, and one thing that kept bothering me was how difficult it is to get them to recreate an existing website's actual design.

You give an AI agent a reference website and ask it to build something similar, but it often ends up guessing:

  • Colors are slightly off.
  • Typography doesn't match.
  • Spacing and border radii are inconsistent.
  • The overall result looks like a generic AI-generated UI.

So I built styleprobe to solve this problem.

It's an open-source CLI that takes a website URL and extracts its visual design system.

A few things it can do:

  • Extract colors and semantic design tokens.
  • Analyze typography, spacing, shadows, and component styles.
  • Crawl multiple pages instead of relying on just the homepage.
  • Extract SVG logos and other brand assets.
  • Export directly to Tailwind, shadcn/ui, Figma tokens, or AI-agent instruction files.

You can also try the web playground here:

https://styleprobe.vercel.app/

GitHub: https://github.com/spidervirus/styleprobe

It's MIT licensed and completely open source.

I'm still improving it, so I'd genuinely love feedback from developers:

  1. Would something like this fit into your AI-assisted development workflow?
  2. What other design information would you want it to extract?
  3. What would make you actually use this regularly?

Would love to hear your thoughts!

0 Upvotes

9 comments sorted by

2

u/Velvet-Thunder-RIP 14d ago

That sounds like something AI does already you just added extra steps. In most AI IDE's this is just a skill you call. Fail.

Also do not now go and make a skill and offer it on this sub. Another waste of time cause no one should be downloading skills from the internet now.

2

u/Arunajyothi_Jurado 14d ago

half the wrappers posted lately are just basic prompts with extra steps tbh.

1

u/Velvet-Thunder-RIP 14d ago

Yah all those should go too.

1

u/Bubbly-Tradition-735 14d ago

Yeah, I can see why it comes across that way. Honestly, some of the criticism has made me rethink both the implementation and how I’ve presented the project.

I don’t want to build just another wrapper around something an AI prompt can already do. There’s still work to do, and I’d rather improve the actual tool than argue about it here.

1

u/Velvet-Thunder-RIP 13d ago

Yah. Id just delete the tool. You did not hand code it anyways so no loss.

1

u/Bubbly-Tradition-735 12d ago

if you don't see value in the tool. I did use AI during development, but I'm still responsible for the code, testing, and whether the tool actually solves a problem. That's what I'm working on improving. People can judge it by the results.

1

u/KitchenDefinition411 12d ago

We did. Move along

1

u/Bubbly-Tradition-735 14d ago

Fair point. I agree that AI IDE skills can already handle parts of this workflow, and I’m not trying to pretend the idea is completely new.

I built styleprobe as a standalone tool to handle the extraction and generate reusable outputs rather than relying on an agent to do everything through prompts.

But I understand your point. If the end result is the same, people need a good reason to use another tool.
Appreciate the honest feedback.

1

u/KitchenDefinition411 14d ago

Yah. You don’t need that. AI does that