Closed 0xtoj closed 3 years ago
Hi there, is there a way to always force dark mode? Allow switching but if the user reload => dark mode
Sure, you can call switchToDarkMode as soon as your app loads. For example, call it in the _app.jsx's useEffect with an empty array as dependency
switchToDarkMode
Hi there, is there a way to always force dark mode? Allow switching but if the user reload => dark mode