Need some help with button-trigger-color-switcher
is there a way to target a specific colors (or at least two) to switch them for all elements that has those colors.
toggle + button for each move like hit a dark (switch to dark) hit a light (switch to normal)
I thought the new layout was utterly bland so I immediately went back to old YT. Dunno what they’re doing with colour switching. The essential most inner function above should still do a good job of selecting the elements.
Actually i come up with the idea (saw somewhere) that makes it very simple=))
add class to body and switch them with button (toggle classes)
.light bg: #fff color: #333 & .dark bg:#333 color #fff
the only problem for me right now is that
i’m using also text-fill-color and stroke for certain elements
and i have no idea how to change them also with that same button
plus text-fill-color overwrites color so there is also conflicts((
And still i think the easiest way will be change colors with js
kinda find all #333 and change to #fff & find all #fff and change to #333