DEV Community

Discussion on: Adding Dark Mode to My Website

Collapse
 
bibekgrg44 profile image
Bibek_grg

Can you please help me.i'm a beginner.
I'm trying to implement dark mode in my website. so I Made a function where if I click a button it will switch to dark theme which worked but only for a single page even though I used the script source tag in other html files where I want to happen.
what I want to do is when a user goes to setting and clicks the dark button the dark theme should apply to every html files.