Hacker News new | ask | show | jobs
by Waterluvian 1916 days ago
Is there any value to named css colours beyond convenience for development?

I find that I use hex for properly designed colours and otherwise use like one of 15 named colours for devel placeholders.

Turns out there's like... 100.

Are they special? Or did someone just pick and give them names?

1 comments

Some of them are special (they can be displayed on devices with very low colour depth), some of them are just there for sentimental value (e.g., rebeccapurple), but most of them descend from X11's colour list - which itself descends from a mishmash of Crayola colours, Sinclair Paints samples, and whatever Jim Gettys thought was important in this 1985 commit: https://cgit.freedesktop.org/~alanc/xc-historical/commit/xc/...
Thank you so much. Your response nails exactly what I was curious about.