News for hackers. Stuff that matters.
Re:Show HN: AI color palette generator for Tailwindcss by aurbano on Monday September 07, 2020 @06:19AM (#24398301)
Fully agree with this, I think having color variables like blue-500, orange-100 is completely counter-productive.

What's the point of color variables, if they just describe the color they are... We already have color names for that.

Re:Show HN: AI color palette generator for Tailwindcss by deltron3030 on Monday September 07, 2020 @07:11AM (#24398553)
The numbers describe the brightness, they can be useful if they're linked to UI usecases and if you're ok with limiting yourself to a prebuild color palette. It's just that functional names (btn-fg, btn-bg etc.) are better imo because they separate concerns. You could link them to a grayscale when prototyping and then later switch the colors in the stylesheet. It's also slower if you have to think about picking colors when coding.
Re:Show HN: AI color palette generator for Tailwindcss by trevyn on Monday September 07, 2020 @07:06AM (#24398531)
The intention is that colors of the same number have a similar luminance, so you can easily adjust contrast and hue independently while designing. These schemes also keep a relatively consistent saturation profile across the palette.

It's the kind of thing professional designers do intentionally, but set up in a system that makes it easier to get a "designed" look without much effort.

Re:Show HN: AI color palette generator for Tailwindcss by dkersten on Monday September 07, 2020 @09:10AM (#24399190)
I thought this immediately too but tailwind does allow you to use generic names too: https://tailwindcss.com/docs/customizing-colors#naming-your-...