Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
1–10 of 167 posts
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#2I'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.
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#3Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#4One thing I noticed is that some colors appear brighter, but are further down on the Saturation scale. For example, mediumturquoise and turquoise are shown as being less saturated than cyan, though cyan doesn't mix in any gray. Are these sorted by the sums of their RGB values? I'm also not too well versed in color theory, so I could be missing or misunderstanding something too.
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#5Ooh 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?
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.
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#6This is really cool. The whole experience is slick! One thing I noticed is that some colors appear brighter, but are further down on the Saturation scale. For example, mediumturquoise and turquoise are shown as being less saturated than cyan, though cyan doesn't mix in any gray. Are these sorted by the sums of their RGB values? I'm also not too well versed in color theory, so I could be missing or misunderstanding so…
I think there's a misunderstanding there. Mediumturquoise and turquoise are both located above cyan, which means they are brighter as the vertical axis is the lightness.
Also, to answer your question, colors are sorted by their hue, saturation and lightness values. So, it's actually a 3D color visualizer, where one dimension (hue) is reduced into just a slider at the top, and the other two dimensions are represented in a 2D grid.
Thanks for your comment!
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#7This is really cool. The whole experience is slick! One thing I noticed is that some colors appear brighter, but are further down on the Saturation scale. For example, mediumturquoise and turquoise are shown as being less saturated than cyan, though cyan doesn't mix in any gray. Are these sorted by the sums of their RGB values? I'm also not too well versed in color theory, so I could be missing or misunderstanding so…
Thanks, I'm glad! :) I think there's a misunderstanding there. Mediumturquoise and turquoise are both located above cyan, which means they are brighter as the vertical axis is the lightness. Also, to answer your question, colors are sorted by their hue, saturation and lightness values. So, it's actually a 3D color visualizer, where one dimension (hue) is reduced into just a slider at the top, and the other two dimens…
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#8The 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.
Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#9Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way
#10The only "bug" I see, if at all, is that the hue value does not wrap around, i.e. the colors shown at 360 are not the same colors shown at 0.