Tailwind color palette generator

by wallaweon 2/2/2024, 12:26 PMwith 73 comments

by darekkayon 2/2/2024, 5:49 PM

I would love to see such tools have some accessibility DX built-in. The idea is to define the color palette in such a way that we know whether a color combination is accessible just by looking at the color name. For example, using the USWDS design system, I know that blue-30 on gray-80 is accessible (WCAG AA), because the difference between both values is 50+.

I once wrote a blog post about this (niche) concept: https://darekkay.com/blog/accessible-color-palette/

by Brajeshwaron 2/2/2024, 1:03 PM

I love playing with color. This is another nice tool. Here are few other good alternatives/otpions;

- https://adevade.github.io/color-scheme-generator/

- https://colorcolor.in (do not generate tailwind directly but a well done one)

- http://colormind.io

- https://uicolors.app/create

by davetron5000on 2/2/2024, 6:24 PM

I built one recently. Much simpler and more opinionated, but can generate a Tailwind configuration: https://ghola.dev (desktop/ipad is best)

Long read on how it was built with web components: https://www.naildrivin5.com/blog/2024/01/24/web-components-i...

by hoistbypetardon 2/2/2024, 1:18 PM

This is great. I just did a better job generating a palette in under a minute, starting from a logo, than I did manually in 30 minutes last time I needed to do it. Nice work!

by ptsd_dalmatianon 2/2/2024, 12:45 PM

Love it. Thanks so much to the author for making this. I wonder what's the easiest way how to sync these colors with Figma. Perhaps pro designers use some plugin for generating this kind of colors and exporting them to Tailwind?

by wildrhythmson 2/2/2024, 2:12 PM

This is a nice tool. As another approach that I use in my codebases is I define the color palette with CSS variables, so my Tailwind config just points to those. Then at runtime I can plug in different color themes.

by simplifyon 2/2/2024, 5:20 PM

Great tool, very useful. I use it to generate a color palette from a single color, then take its output and feed it into https://palettte.app to manually adjust each one.

by TIPSIOon 2/2/2024, 2:25 PM

For the "brand" example demo'd, is that what people tend to do for configs?

I thought people would simply just modify the default colors or create new variables like primary, secondary, etc..

by babuskovon 2/2/2024, 2:57 PM

Looks useful for gradients. Strange that nobody mentions Paletton. It's my go to tool when picking colors:

https://paletton.com/

You start with the base, and then also get gradients to adjacent colors in the palette. Especially the triad and tetrad ones are useful.

by mikojanon 2/2/2024, 2:17 PM

I took me forever to find out how to apply hue shift even though I was actively looking for it.

by city17on 2/2/2024, 2:08 PM

Nice idea. Would be even better if you could manually adjust several of the values and it would adjust the missing ones in between. Now you can only base it on one single starting color.

by Kalanoson 2/2/2024, 2:04 PM

can't figure out how to search colors within 5 sec. im out.

i like https://www.color-hex.com/

by b2bsaas00on 2/2/2024, 4:50 PM

I am a full stack dev and I do not know nothing about colors but I use tailwind css. Where could I study how to choose colors and better use this tool?

by hosteuron 2/2/2024, 1:04 PM

Nice. Is there something similar for bootstrap?

by aantixon 2/2/2024, 1:38 PM

What would be a good way to choose a color palette for a gradient background?

by dbbkon 2/2/2024, 1:11 PM

How come the oklch colors aren't saturated like p3?

by mskaon 2/2/2024, 1:26 PM

Nice!

I have a color tool I'm building too: https://divmagic.com/tools/color-converter

by lovegrenobleon 2/2/2024, 2:18 PM

I use this one: https://color.adobe.com/fr/create/color-wheel/

by omneityon 2/2/2024, 3:16 PM

This is amazing. Until now I used https://colorbox.io which first originated at Lyft before becoming an independent project.

by bartweon 2/2/2024, 8:16 PM

could use oklab color space support

by dkrajzewon 2/2/2024, 5:56 PM

Mine is a MS WIndows application with variable export functionality: https://palettewb.com

by lovegrenobleon 2/2/2024, 2:17 PM

IT WAS A NICE PLAY