insin / gatsby-plugin-dark-mode

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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