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.
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.
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.
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/
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.
Comments (169) 64 threads
Show all comments
Showing thread 1 of 64
Also: Finally, a tool to help me decide between greenyellow and yellowgreen.
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.
https://i.imgur.com/44wogB5.png
[1]: https://tailwindcss.com/docs/customizing-colors
https://find-nearest-tailwind-colour.netlify.app
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/
[0] https://yeun.github.io/open-color/
[1] https://open-props.style/
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.
https://vilvadot.github.io/sketch-default-color-palette/