From a site I’ve inherited which is full of things like this (and lots of other very !important things). Send help.
That’s why css names should be semantic. I’m sure it started actually purple until UX said “can we make this primary text more blue so it doesn’t look like a clicked link?” Replacing all references to “purple” wasn’t an option because of unrelated usage of that word elsewhere and they weren’t using an IDE capable of contextual rename of a css class. So they just changed the color code and called it a day.
sed -i 's/.purple/.not-purple/g' *.css
done, boss
This just gave me a panic attack
Yeah, but if you just used css variables, this would’ve been a doddle. One and done.
I’m sorry but the solution to every argument is not just to throw of the word “semantic” in the sentence. Context is everything.
I’m sorry but the solution to every argument is not just to throw of the word “semantic” in the sentence.
I’m sorry but who is saying that? Nobody is. If you are paying attention to the context, you will notice they are talking about CSS class names. That’s the context, and it’s a valid point within that context.
Hey if you’re colourblind, all blues can be blurple. And so can all purples!
That’s bleal not blurple.
Still better than brorange.
Sure does, as a mixture of multiple wavelengths.
Neither does magenta
Nor brown
Excuse me, don’t you mean dark orange?
Why is a color class also changing the display to inline is what I wanna know
I prefer the color plue, myself.
I prefer pluep