Darkmodejs : Utility package for managing Dark Mode on the Web

Darkmodejs : Utility package for managing Dark Mode on the Web

Darkmodejs is utility package for managing Dark Mode on the Web.Dark Mode is a feature in modern Operating Systems which allows you to change your default UI from a light to dark theme. On the web we can take advantage of this to control the theme of our website.

Utilises the matchMedia API and its listeners, in combination with the prefers-color-scheme media query, in order to fire functions whenever you’re in Dark Mode.

Leave a Reply