is-os-dark-mode
v0.1.0
Published
Detect if OS-theme or Terminal uses dark mode
Maintainers
Readme
is-os-dark-mode
Detect if operating system uses dark mode. Useful for CLI or non-browser based applications.
Detect OS Dark Mode
import { isOsInDarkMode } from 'is-os-dark-mode'
await isOsInDarkMode()
// true, if Dark Theme is selectedContributing
Contributions are welcome! If you have any issues or suggestions, please open an issue on GitLab.
License
This project is licensed under the MIT License.
