View the deployed demo on Netlify – https://darkmodejs-demo.netlify.com/
A demonstration of how you can use the @assortment/darkmodejs NPM package to theme your website based on a user's Operating System theme, thanks to the matchMedia API and prefers-color-scheme media queries.
This example has been created with Emotion and the emotion-theming package. Take a look at the darkmodejs package with the links below:
- 💻 View the code on Github: assortment/darkmodejs
- 📦 View the package on NPM: @assortmentio/darkmodejs
MIT © Luke Whitehouse