Lurker News
I had this idea kicking around in my head for quite a while. Took an evening to make this, and a short morning to polish it a bit. So here it is!

Comments (169) 64 threads

Show all comments

Showing thread 1 of 64

Waterluvian6 replies#
I'm not sure what the intent is, and what other people do with it, but I thoroughly _love_ having these named colours for when I'm hacking and prototyping. I can just start typing out a colour and autocomplete will show me a list. But I don't find myself ever using them in production.

Also: Finally, a tool to help me decide between greenyellow and yellowgreen.

brettermeier2 replies#
I never used named colors, I never knew why I should when we have color pickers. But people care about them, interesting...
munk-a#
They're nice in prototyping styling since it's trivial to comprehend the intent of coloration while making it clear that finalized colors haven't been settled on.
robert_tweed1 reply#
I always (and only) use named colours for debugging. For example border: 1px solid red; around some element that isn't rendering as expected.

This makes it hard to accidentally forget about a rules that just just put in temporarily. Real colours will always match some design, which will have a carefully-chosen hexcode.

yreg#
I always do border solid gold. Feels fancy.
tabtab#
If you don't get it right, you'll get a paleVioletRed-slip.
jozzy-james#
tangentially related (not affiliated with the company, just a fan), but https://usewindy.com/ does similar stuff - and more.
culi#
that's awesome. I made a somewhat similar toy[0] a while ago in vanilla js (checkmark `color2nearestname` at the top). I've been meaning to try my hand at this again, but while allowing the user to choose the palette. Namely I was thinking of these definitions:

1. CSS named colors
2. Open Props' colors[1]
3. Tailwind colors
4. XKCD's color survey results[2]
A different project sent me on a deep dive into the concept of color distances and how that can work across different spaces though so I'm afraid any other color-related projects would paralyze me with feature creep at this point though haha
---
.. [0] https://culi.page/toys/
.. [1] https://yeun.github.io/open-color/
.. [2] https://xkcd.com/color/rgb/

leeoniya#
it needs something between Yellow and Lime, like Olive. that one transition is not as smooth as the others.
jw1224#
Me too. They’re a charming and intuitive language feature, even if I don’t rely on them much professionally.

One CSS color name that always comes to mind is “rebeccapurple”. I seem to recall reading debates against introducing this at the time, but (10?) years later it’s still the first one I think about.