4 ms·
'black' is a named web colour, no? In 1999. #000000 [1] Or aside from re-writing standards, I don't get the point about translations. I go for classes on el
by throwaway167 3y ago
'black' is a named web colour, no? In 1999. #000000 [1]
Or aside from re-writing standards, I don't get the point about translations. I go for classes on elements, like
<h1>
h1: var(--c0-b);
That means colours can be swapped around like an i18n language, by changing the palette that sits in the CSS file. Putting 'black' inline be it in actual inline css. or pseudo inline css that seems to be the case with the library here, is the exact opposite of an analogy to i18n in mind and seems a great step back, back to pre stylesheet days, in the power of abstraction.
[1] https://www.w3.org/TR/REC-html40/types.html#h-6.5 https://www.w3.org/TR/REC-html40/types.html#h-6.5