I was tinkering (no pun intended) with the idea of a new option for dark theme called "auto" (so it will accept true/false and "auto").
/*
* If light hurts you eyes, set this to true.
*/
'dark_theme' => 'auto',
All that it does is adding a new class to html element and then using media queries the interface of the package will changed based on user's OS preference. The media query is not yet supported by many browsers, but Safari already tested it in Safari Technology Preview and it will become standard.
Quick demo:
What do you say, it is worth doing it? When the media query becomes a standard on all browser, this package would already support it.
I was tinkering (no pun intended) with the idea of a new option for dark theme called "auto" (so it will accept true/false and "auto").
All that it does is adding a new class to html element and then using media queries the interface of the package will changed based on user's OS preference. The media query is not yet supported by many browsers, but Safari already tested it in Safari Technology Preview and it will become standard.
Quick demo:
What do you say, it is worth doing it? When the media query becomes a standard on all browser, this package would already support it.