Now if only I could find a use for #rebeccapurple again...
a:hover, maybe??
Now if only I could find a use for #rebeccapurple again...
a:hover, maybe??
The spec is (unsurprisingly) quite [specific][1] that this color value is exactly "#663399". All browsers which implement CSS Colors have had support for years now and the Color Module itself is now a CR as of a year and a half ago.
Incompatibility isn't exactly a rounding error yet, but we're close.
[1]: https://lists.w3.org/Archives/Public/www-style/2014Jun/0312....
html.dark-mode { filter: grayscale(100%) invert(100%); }
Alternatively you can target elements individually, omitting images.
Note that the cost of this lazy method is very poor performance (css filter over the entire document), and lack of control over dark colours (inverted colours don't necessarily work best, shifting hue can help but you probably don't want the same as uninverted colours because they tend to be too dark and lack sufficient contrast).