Closed weii2008 closed 4 years ago
I don't want the default button, how can I design it according to my own div?
You can use it with these methods:
const darkmode = new Darkmode(); darkmode.toggle(); // check if it is activated console.log(darkmode.isActivated())
I don't want the default button, how can I design it according to my own div?