slooffmaster
Dark/Light mode logo
I'm looking to use two different logos, one for dark mode and another for light mode. I'm new to Filament and AlpineJS (come from the classic JQuery and Bootstrap world) but I've managed to put the following together:
One thing I don't understand is why I need to use the inverse of
isdark
when getting the current theme from the classlist
. The above code works perfectly fine, just wish to understand exactly how this is working.7 replies