Apply CSS tweaks only when dark theme is selected?
Hi guys, I'm wondering if there's a way to apply certain CSS tweaks only when I'm using the built-in dark theme.
For instance, let's say I'm using this to color the tabs &urlbar text white for better contrast against dark tabs:
:root {
--chrome-color: #fff !important;
}
Obviously the issue is that when I switch to the light theme I get white text against light grey background, which becomes hard to read. So is there something I can to do make sure that this tweak is only applied when the default dark theme is selected?
Posted Dec 7, 2017, 6:12 PM UTC
That works perfectly, thanks! Also with
:root:-moz-lwtheme-darktext {for the light theme.