use-dark-mode icon indicating copy to clipboard operation
use-dark-mode copied to clipboard

A custom React Hook to help you implement a "dark mode" component.

Results 49 use-dark-mode issues
Sort by recently updated
recently updated
newest added

I am trying to use this with Next JS in _app.js but it seems that despite SSR support, there is some issue. Mechanism: - Fetch from System/Local Storage on first...

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. Commits c74c8af 1.3.7 024b8b5 update deps, add linting 032fbaf Use Object.create(null) to avoid default object property hazards 2da9039 1.3.6 cfea636 better git push script,...

dependencies

The useDarkMode hook can handle changes to system dark/light mode preference if the website is open during the preference change. However if the system's dark/light mode preference is changed when...

Sometimes, the value on the server doesn't match the one on the client (when doing SSR). ``` Warning: Prop `aria-label` did not match. Server: "Dark Mode" Client: "Light Mode" ```...

Add a demo app using NextJS to help other implementing dark mode in their NextJS project

According to the code, you pass `storageProvider` to the `use-persisted-state`, and it uses `getItem` directly from it, not from `localStorage` property: https://github.com/donavon/use-persisted-state/blob/develop/src/createStorage.js#L3

attempting to optimise and wondering if we can defer this script and still get the positive effect it achieves?

not so much an issue but wondering if anyone has a spinning example with this utilised? Trying to access this global state but only className seems to change on body,...

Hi @donavon, Is it OK to add an initial toggle component? If the answer is yes I'll be happy to work on it.

Throwing exception if I block the cookies, Browser: Chromium edge