gatsby-plugin-dark-mode icon indicating copy to clipboard operation
gatsby-plugin-dark-mode copied to clipboard

A Gatsby plugin which handles some of the details of implementing a dark mode theme

Results 14 gatsby-plugin-dark-mode issues
Sort by recently updated
recently updated
newest added

Installing on latest react (17.x) ``` Could not resolve dependency: npm ERR! peer react@"16.x" from [email protected] ```

Hi, I created a forked version with some improvements - Rewrites with typescript so that the code part has typing - Removes peer dependency version restrictions - exports a hook...

This added an option for user to change the class location from `body` to `html` tag. ## Explanation If user don't add any option it will work as its currently...

When my site (work in progress) first loads or you hard refresh, the toggle takes 2-3 clicks before changing the theme. This was occurring out of the box. https://friendly-jones-0d961e.netlify.app/

Would you be open to change the targeted element for the dark class from `body` to `html`? See tailwindlabs/tailwindcss#2279 (comment)

I came across the same issue mentioned in #10 and #13, and it took me a while to find the solution hidden in 83409b53ecdcc5809d75bb11548eec4bfb8acebc. Since it is not part of...

Local development seems to work fine, but when I deploy, it gets stuck on the dark mode and has a bunch of 404s in the console. https://github.com/Kadajett/kadajett.github.io

"Automatic use of a dark mode theme (via the prefers-color-scheme CSS media query) if you've configured your system to use dark colour themes when available." Is there anyway to avoid...

it would be really nice to have a react hook letting us use the theme instead of using ``` ... ```

Hey this PR adds support for hooks, I've added the `useThemeToggler` hook where you can use it like this in your toggle component ``` import { useThemeToggler } from "gatsby-plugin-dark-mode"...