A forked version
KagamiChan opened this issue · comments
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 instead of class component
- adds
rootElement
option to specify the DOM node to interact - adds
script
option in case of some custom implementations
the package is published as @skagami/gatsby-plugin-dark-mode
: https://www.npmjs.com/package/@skagami/gatsby-plugin-dark-mode
please feel free leave some comments or pick the changes