Live data from Hacker News

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

enes.in

71–80 of 167 posts

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

#71
post #5
post #3

Ooh I really enjoyed this, it's a nice way to expand on your color name vocab. I wonder if there is an equivalent for Pantone?

Thanks, I'm happy to hear you enjoyed it. I'm not aware of an equivalent tool for Pantone colors. But it can be created using this very tool with a table of pantone colors instead of a table of named css colors that it uses now.

I'm not aware of an equivalent tool for Pantone colors

There is a tool, but I've only seen it in a dead tree edition.

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

#72
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 .

[deleted]

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

#73

It's neat! Slightly offtopic - I saw one of the colors named "peru", does the name has any connection with Peru the country?

Interesting. Here is Peru on the CSSWG draft document[1]. Other then rebeccapurple[2][3] is there any rationale given for the names of the CSS colors? 1: https://drafts.csswg.org/css-color-3/#peru 2: https://en.wikipedia.org/wiki/Eric_A._Meyer#Personal_life 3: https://lists.w3.org/Archives/Public/www-style/2014Jun/0312....

"Goldenrod" looks like a field of goldenrods.

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

#74
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.

I've needed this in my life so many times, thank you for creating this!

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

#75
post #33

Earlier quoted context omitted.

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.

I honestly don't know, it's just what I was told by someone who is visually impaired a long time ago. That it's easier if people use the names instead of the hex codes because then they can more easily convert that.

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

#76
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.

Yup. There's a bunch like that.

Know that CSS colors mostly came from X11: https://en.m.wikipedia.org/wiki/X11_color_names

The CSS team shares some blame, though: they adopted them (and they really didn't need to: they could have just supported rgb/hsb/lab triplets).

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

#77
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 .

Also, the entire semantics are a bit strange. When I'm deciding whether I want text to line wrap, I don't really think about whether the whitespace should wrap. Yes, whitespace is somewhat relevant to the topic, since that's one option of where to break lines in order to line wrap, but I still think of it as the entire text that is line wrapping.

Oh, and don't forget that there is in fact a word-wrap property, which is a much better name for the previous behavior, but in fact only customizes how the line-breaking algorithm determines which words can be broken apart.

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

#78
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 .

Eh it's minor at best. I'll take it over "referer" any day.

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

#79

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…

I've never used them or seen them used for large-scale production sites but I reach for them all the time when building out small proof of concept or isolated examples for debugging in places like Codepen. It's handy to have a few appealing colors memorized when you're sketching things out.

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

#80

Earlier quoted context omitted.

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.

As far as I can tell, both are common, but “white space” is more common as a synonym to negative space, and “whitespace” is more common to refer to the characters. If so, the “white-space” property controls whitespace, not white space.
Post reply on HN