Angular 9 Dark Mode Library
A library for adding dark-mode to your Angular 9 app.
Features
- Widget appears automatically
- Saving users choice
- Automatically shows Darkmode if the OS prefered theme is dark (if the browsers supports prefers-color-scheme)
- Can be used programmatically without widget
ng-darkmode
?
How to Use Navigate to your project's folder and run the following command:
$ npm install --save ng-darkmode
Next, import NgDarkmodeModule
and add it to the imports
array f your app:
;; ;;
Use it
;;