Closed billmn closed 1 year ago
If
theme
is not set in localStorage (e.g. a user did not choose the theme to use), fallback to the theme used by filament (if OS uses dark mode, there is adark
class in the body)
I'm currently working on some enhancements and I'll change it to something like this:
theme: document.querySelector('html').matches('.dark') ? 'dark' : 'light',
I believe that it will work better. Thank you!
Thank you!
If
theme
is not set in localStorage (e.g. a user did not choose the theme to use), fallback to the theme used by filament (if OS uses dark mode, there is adark
class in the body)