3 ms·
The right place for the switch in this case is the browser. The browser should have a button for light/dark/system, defaulting to system. And CSS should follow
by int_19h 8y ago
The right place for the switch in this case is the browser. The browser should have a button for light/dark/system, defaulting to system. And CSS should follow that.
JS should not be involved, and we don't need every site to have its own version of the switch, located in a different place and looking different.