dark-mode-utils

1.3.0 • Public • Published

----------About The Package----------

This package is a simple package that you can use to add a dark mode or light mode switcher (I actually don't know what that means too. But you get the idea right?).

----------What You Need In Your Project----------

  • You should have a button with an id of 'theme' so that the user can change the theme manually.
  • You should have two icons to indicate if the user is currently in Dark mode or Light mode.

----------How To Setup----------

  • Install the package.
  • Use it by calling it like this: "themeswitch()".
  • And in the brackets pass in the the two icons I mentioned earlier (Note: Please pass the light mode icon first then the dark mode icon);

Readme

Keywords

Package Sidebar

Install

npm i dark-mode-utils

Weekly Downloads

1

Version

1.3.0

License

ISC

Unpacked Size

2.22 kB

Total Files

4

Last publish

Collaborators

  • nisul