frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: I built ColorSnap to generate Tailwind color palettes from images

https://color-snap-five.vercel.app/
3•kingvyn•8h ago
Hey HN,

After spending countless hours tweaking colors in side projects and manually trying to match screenshots to Tailwind CSS classes, I decided to build a tool to automate it.

ColorSnap lets you upload an image and instantly extract the most dominant colors. It then maps those colors to the closest Tailwind CSS utility classes using LAB color comparison (ΔE). You get clean hex values and ready-to-use class names like bg-indigo-500 or text-pink-400.

Built with Nextjs, Tailwind CSS, and a bit of canvas/image processing. No external APIs — it runs entirely in the browser.

Outcome: I’ve used it in my last 3 frontend projects to speed up color decisions and get consistent styling fast, especially for hero sections and themed UI blocks.

Comments

kingvyn•8h ago
hey it's Melvin

I made ColorSnap after getting tired of dragging images into Figma just to sample colors and then manually mapping them to Tailwind classes by eyeballing.

I wanted something faster — just drag, snap, copy.

The image analysis uses median cut to extract dominant swatches, and then I map those RGB values to Tailwind's predefined colors by converting to LAB and measuring the perceptual distance. The output is practical — actual Tailwind classes you can use in your components.

This was originally just a scratch-my-own-itch weekend project, but it turned out more useful than I expected, so I decided to polish it and share.

Show HN: Lorelight – see how AI models talk about you

https://lorelight.ai/
1•kieloo•42s ago•0 comments

An Expensive Alzheimer's Lifestyle Plan Offers False Hope, Experts Say

https://www.nytimes.com/2025/05/21/well/alzheimer-symptoms-reversal-dale-bredesen.html
1•instagib•2m ago•0 comments

What if an AI agent could generate 100% code coverage?

https://github.com/MikeVeerman/undercover-agent
1•MikeVeerman•2m ago•0 comments

'We have a way of steering a fly like you would a car'

https://news.harvard.edu/gazette/story/2025/05/we-have-a-way-of-steering-a-fly-like-you-would-a-car/
1•gnabgib•3m ago•0 comments

Warby Parker Partners with Google to Develop Intelligent Eyewear

https://www.warbyparker.com/intelligent-eyewear
1•forks•4m ago•0 comments

The EPA Isn't Killing Diesel–Tuners Are Killing Their Own Credibility

https://www.carsandhorsepower.com/featured/why-diesel-tuners-are-the-biggest-hypocrites-in-the-car-scene
5•Anumbia•5m ago•0 comments

Some of my favorite pessimistic scientific articles

https://www.owlposting.com/p/a-primer-on-my-favorite-pessimistic
1•abhishaike•5m ago•0 comments

Show HN: First we did sentiment analysis now we translate all your comments

1•obayesshelton•5m ago•0 comments

The Old, Old, Old Man

https://publicdomainreview.org/essay/the-old-old-very-old-man
1•diodorus•6m ago•0 comments

MCP Seems Viral

https://nadh.in/blog/mcp-seems-viral/
1•rishikeshs•6m ago•0 comments

Why Ford Is Ditching Cellular for CV2X in Autonomous Vehicle Wake-Up Systems

https://www.carsandhorsepower.com/featured/the-technical-and-strategic-implications-of-ford-s-remote-vehicle-wake-up-patent-using-cv2x-pc5-protocol
1•Anumbia•7m ago•0 comments

Llama API – available for free in preview for US-based developers

https://www.llama.com/products/llama-api/
1•winstonp•8m ago•0 comments

SEC Sues Crypto Startup Unicoin and Its Executives for Fraud

https://www.wsj.com/finance/currencies/sec-sues-crypto-startup-unicoin-and-its-executives-for-fraud-b3df6276
1•fortran77•8m ago•0 comments

Why Apple Still Hasn't Cracked AI

https://www.bloomberg.com/news/features/2025-05-18/how-apple-intelligence-and-siri-ai-went-so-wrong
1•RyanShook•9m ago•0 comments

The Monster-Slaying Game You Can Play Almost Anywhere

https://www.nytimes.com/2025/05/21/arts/play-doom-ports.html
2•markostamcar•9m ago•0 comments

Show HN: I built a tool to compare availability across multiple Calendly links

https://www.calcompare.io/
1•jony1266•10m ago•0 comments

Stop Vibe Testing Your MCP Server

https://www.jlowin.dev/blog/stop-vibe-testing-mcp-servers
1•jlowin•10m ago•0 comments

Alex Danco on the culture of gift-giving that powers Silicon Valley

https://jdahl.substack.com/p/alex-danco-on-the-culture-of-gift
1•jger15•10m ago•0 comments

Distinguished Contributor Awards with OpenSSL 3.5 Honorees

https://openssl-corporation.org/post/2025-05-20-3.5-awards/
1•runningmike•10m ago•0 comments

'Dilbert' Creator Scott Adams Announces He May Not Live Past Summer

https://www.mensjournal.com/entertainment/dilbert-creator-scott-adams-reveals-he-might-not-live-past-summer
1•iancmceachern•11m ago•3 comments

Show HN: I've built online video editor

https://clipjs.vercel.app/
3•mohyware•11m ago•1 comments

Reinforcement Learning for Symbolic Mathematics

https://arxiv.org/abs/2505.10762
1•MarcoDewey•13m ago•0 comments

µPC: Scaling Predictive Coding to 100 Layer Networks

https://arxiv.org/abs/2505.13124
2•frozenseven•14m ago•0 comments

Hacker News Alerts – Monitor your HN front page appearances

https://hn.dunkirk.sh/
1•radeeyate•17m ago•0 comments

Why were Belle Époque cities beautiful?

https://resobscura.substack.com/p/why-were-belle-epoque-cities-beautiful
1•benbreen•17m ago•0 comments

Show HN: Building High-Performance AI Agents with SmartBuckets and MCP

4•genovalente•17m ago•1 comments

America was already a mercantilist empire

https://thirdtreatise.substack.com/p/america-was-already-a-mercantilist
2•hahaxdxd123•19m ago•1 comments

Nvidia Pushes Further into Cloud with GPU Marketplace

https://www.wsj.com/articles/nvidia-pushes-further-into-cloud-with-gpu-marketplace-4fba6bdd
3•Bostonian•19m ago•1 comments

Casey Neistat has to get Beme 2 out

1•ugur2nd•20m ago•0 comments

Google's future depends on AI and Project Mariner

https://www.theverge.com/google/671200/google-googling-ai-mode-project-mariner-i-o-2025
1•LAsteNERD•22m ago•0 comments