TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: AI color palette generator for Tailwindcss

209 pointsby manceraioover 4 years ago

7 comments

deltron3030over 4 years ago
These kind of palettes always struggle with brighter yellows like #ffe400 because of the necessary normalization across hues to make it a full palette in first place, which of course prevents some colors to fulfill their potential (which is often at their peak chromacity). No AI can solve this problem because it&#x27;s how colors work.<p>I think it&#x27;s best to keep the palette separate from the code (e.g. store palettes in an app like Sip), and not insist on the replaceability of colors across a range. E.g. instead of blue-500 use functional names like btn-color or brand-color and alias the colors that way in code.
评论 #24398024 未加载
评论 #24398301 未加载
zxcvbn4038over 4 years ago
This does pick some pleasing palettes but I’m not clear how they are utilized in the page. A quick scan of Tailwindscss docs shows a bit of discussion about naming colors and picking a primary and secondary color but I don’t see much discussion about the other colors in their palettes. Anyone explain?
评论 #24400668 未加载
rutierutover 4 years ago
This is a lovely app but it really <i>needs</i> to generate grays as well. You just can&#x27;t randomly drop in a color palette without changing the default TW grays. (they are pretty blue)
评论 #24398582 未加载
评论 #24398616 未加载
hackerman123469over 4 years ago
So what exactly is AI about it? It just looks like a common algorithm that matches colors together and not some AI that has been trained to find matching color palettes.
评论 #24397635 未加载
评论 #24397632 未加载
评论 #24397825 未加载
评论 #24397608 未加载
swyxover 4 years ago
i&#x27;ve added it to my list of color palette generation tools - sharing in case it helps someone else <a href="https:&#x2F;&#x2F;github.com&#x2F;sw-yx&#x2F;spark-joy&#x2F;blob&#x2F;master&#x2F;README.md#color-picking" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sw-yx&#x2F;spark-joy&#x2F;blob&#x2F;master&#x2F;README.md#col...</a>
评论 #24399700 未加载
评论 #24398830 未加载
RocketSyntaxover 4 years ago
Why doesn&#x27;t the generated palette include the original color? Makes me lose faith.
评论 #24398903 未加载
jack_rimintonover 4 years ago
This works really well, I&#x27;ll be using it on my upcoming projects :)