Live data from Hacker News

Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

enes.in

61–70 of 167 posts

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#61
post #2

The idea was to create a tool to sort the named CSS colors in a way that it shows related colors together. So, next time I can't decide between a few CSS colors, I can just check them here side by side. I've created this tool last summer, but I hadn't shared it here back then. It's a PWA that I made with pure JS.

Very cool. Please add permalinks/history state, so we can share specific hue or colors. Thanks!

Looks like it's on Github, you could submit a pull request to add those things :)

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#62
post #9

Good reminder that in CSS, darkgray is a light gray and gray is a dark gray. Also presumably up is down and wet is dry.

CSS is just an embarrassment of mistakes: white-space: nowrap So they take a word "whitespace" which needs no hyphen and jam one in. Then they take two completely distinct words "no wrap" and jam them together with no separator. And then you have to remember both of these on the same rule .

"White space" is two words, not one.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#63
This is very nicely done, but I still prefer the simplicity of http://davidbau.com/colors/>. Despite being only 2-dimentional, I find that layout strangely more intuitive. I think the author manually tweaked the color positions, so that may be the reason.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#64
post #9

Good reminder that in CSS, darkgray is a light gray and gray is a dark gray. Also presumably up is down and wet is dry.

'Brown' is dark red, and to my eye 'sienna' has very little red in it. To get actual brown, you need 'saddlebrown'. CSS is super weird.

I tried to find brown on the slider to see what you’re talking about. Took me ages. Turns out you have to go REALLY red in order to find brown.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#67
post #65

Slightly off topic, I always thought named CSS colors are generally ignored (in favour of 'rgba' / '#hex'). Are named CSS colors seeing any practical use?

I see them used a lot in SVGs. But I don't know if that's a technical issue, or programmer preference.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#68
post #63

This is very nicely done, but I still prefer the simplicity of http://davidbau.com/colors/ >. Despite being only 2-dimentional, I find that layout strangely more intuitive. I think the author manually tweaked the color positions, so that may be the reason.

This one works on mobile. The one you linked to does not.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#69
post #34

Earlier quoted context omitted.

I prefer to use named colors in my own CSS layouts. "lightsalmon" is more descriptive to me than "#FFA07A" or "rgb(255, 160, 122)" or "hsl(17, 100%, 73.9%)" at a glance.

A good IDE will show a color preview https://code.visualstudio.com/assets/docs/languages/css/colo...

Awesome if you're in your office on your usual work computer. Not great if you're in the field trying to make quick fixes on whatever terminal a client provides.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#70
post #33

This is definitely a cool way of exploring CSS colors. But, serious question: does anyone actually use CSS colors except for a handful of the basics ("red", "blue") for prototyping/debugging? I mean, the idea of typing "background-color: lightsalmon;" just feels so bizarre to me. Whenever I've needed to come up with colors from scratch, I'll just start with an intuitive best guess -- e.g. "hsl(30, 80%, 50%)" -- and t…

Using the color names is more accessible. People with vision disabilities can have a custom plugin that changes the colors based on their name, instead of trying to convert all the hex codes.

People with vision disabilities can have a custom plugin that changes the colors based on their name, instead of trying to convert all the hex codes.

Does this exist, or is this hypothetical? If it exists, it's something I would add to my toolkit.

Post reply on HN