bufferhead-code / nightowl

Add Dark Mode to your website semi-automatically.
198 stars 16 forks source link

Custom theme toggle button #17

Open smilepant opened 8 months ago

smilepant commented 8 months ago

How can we change the theme toggle button or use our custom button to toggle the theme? If there isn't any (can't be found in the documentation). I want to work on it and open a merge request as per the Contribution Guidelines.

MiTschMR commented 8 months ago

If you mean the icons, they are svg embedded into the main.ts file:

smilepant commented 8 months ago

If you mean the icons, they are svg embedded into the main.ts file:

If I have a custom button in my HTML CSS, I want to change the theme simply by calling a function or changing the state on click of that custom button.