media query based on an attribute or media query within an a selector
Hey everyone, I have light/dark mode setup on my website. I'm also trying to handle
prefers-color-contrast: less
and prefers-color-contrast: more
everything is working as expected but one thing!
if I go to my site when my OS system theme is light, I get my website in light theme and vice versa if I go there when my OS is set to dark, I get my website in dark mode... however, if I click the theme changer on my website it doesn't change my prefers-color-scheme
because that's set by my OS settings.1 Reply
So, to be able to activate
prefers-contrast: less
and prefers-contrast: more
when I click the site-wide theme changer, I need to somehow do this
or something like this
Thinking about it, I think I need to do this with JS
Actually figured out something that's css only