Live data from Hacker News

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

enes.in

101–110 of 167 posts

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

#102

Earlier quoted context omitted.

"White space" is two words, not one.

In computing it is widely used as a single word "whitespace." For example: - The XML W3C Rec: https://www.w3.org/TR/xml/ - The HTTP 1.0 RFC: https://tools.ietf.org/html/rfc1945 However, there are exception. The Unicode character database has a property called "White_Space" which implies it is two words: http://www.unicode.org/reports/tr44/#White_Space

> a property called "White_Space" which implies it is two words

Except that `_` is a "word" character by default.

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

#103
post #61

Earlier quoted context omitted.

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 :)

I think giving feedback is a valid way to contribute, I certainly would welcome feedback if it were my project. Not all contributions must be code.

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

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

Awesome! Could you possibly implement a double-click to clipboard copy option?

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

#107
post #106
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.

Awesome! Could you possibly implement a double-click to clipboard copy option?

Happy to make a PR or just do it quickly!

Edit: here you go https://pastebin.com/5Kypr4kh

Edit 2: I would, but I'm at work so personal GH is a no-go atm. I'll cycle back here EOD & make the PR if OP agrees w/ proposal

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

#108
post #91

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…

When I started web dev in the early 2000s, I remember it being recommended to use the named colors because of them being more consistent accross different monitors. Not sure if this was true at all and/or only for the original 16 basic colors. Nonetheless, I kept using them for a while, because I think it makes the css easier to read, when having names (even suboptimal ones) over hex codes. But with the introduction…

This might be a dumb question but how would named colors be more consistent across monitors? I thought they mapped to the same RGB value so there would be no difference between 'red' and #FF0000.

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

#109

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 believe it's not common to use css color names. i wish more colors were defined and people used them more though. it provides a very consistent color re-use.

the best example i can think of is this fire demo on codepen, which i bookmarked because i really liked the color names: https://codepen.io/jscottsmith/pen/dwZjWK

Post reply on HN