Hacker News new | ask | show | jobs
by thih9 1923 days ago
Slightly off topic, I always thought named CSS colors are generally ignored (in favour of 'rgba' / '#hex').

Are named CSS colors seeing any practical use?

2 comments

Black and white are probably used quite a lot, for obvious reasons. I use the other colours a lot for quick prototyping or debugging (particularly red), but I generally fine-tune the colours to something else later.
I see them used a lot in SVGs. But I don't know if that's a technical issue, or programmer preference.
For some reason, #000 or #000000 doesn't always work, but 'black' does. Never spent much time figuring out why.