-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dark Mode Toggle #382
Comments
How do you see persisting this choice from page to page? Would the site need to use something like a cookie, and would this make a cookie acknowledgement widget necessary? |
Taking inspiration from Scala3doc, we should be able to achieve this purely client-side with |
That still leaves the question about whether user notification/acknowledgement is required. While localStorage is technically not a cookie, so-called "cookie laws" generally use language like "Store or retrieve data from a user's device". Not sure if this would count as "necessary to provide a requested service", which is commonly listed as an exception to the notice requirements. |
Does scala3doc ask for permission? |
Scala3doc doesn't ask for permission. There's some good discussion on the matter at themesberg/flowbite-react#546, and while they removed the use of |
It would be nice if a toggle button for dark mode could be supported for HTML. As I understand it, the use of dark mode or not is dependent on your operating system or browser configuration, which works great, but it would also be nice if the user can toggle it on and off on a per-case basis: just like in scala3doc!
The text was updated successfully, but these errors were encountered: