Detect dark theme in Blade
How do I detect if dark theme is enabled in a Blade template, so I can display a different version of an image? I'm overriding Filament's logo.blade.php to show the client's logo top left, but need to display different versions depending on dark or light theme.
Solution
Oooooh! You mean like do it how it tells me to in the documentation?
Derp.
sigh
https://filamentphp.com/docs/2.x/admin/appearance#dark-mode
Derp.
sigh
https://filamentphp.com/docs/2.x/admin/appearance#dark-mode