browser-prefers-dark A lightweight browser module for checking dark-mode preference. Usage import prefersDark from 'browser-prefers-dark' if (prefersDark()) { // do cool stuff! }