theme-detector
v0.0.3
Published
Check which theme the browser is using
Maintainers
Readme
Theme detector
Get the theme of the browser also works in ionic apps
Install
Via npm
npm install theme-detectorVia yarn
yarn add theme-detectorUsage
Once the package is installed you use the import approach
import checkTheme from 'theme-detector';
console.log(checkTheme());
// If browser theme is dark it logs 'dark'
// If browser theme is light it logs 'light'
Support
If you like this project, You can support me with starring ⭐ this repository.
