FilamentF
Filament13mo ago
nighty

is it possible to get the current theme-mode: [light/dark] variable in a controller?

we are generating SVG´s and would need any information if the user is currently in light or in dark mode to set the background properly. for me the simplest way would be to get access to a variable dark=true/false - but it seems impossible, i can not find any information in session(), filament() and so on. I know there are ways to do ist with media-Queries - but this is not working for me so far. Would be glad if anyone can point me in the right direction or how to do it the right way. thank you....
Was this page helpful?