Comment by Eligijus Krėpšta on "What are some ways of implementing a togglable “dark mode” on a website?" | HashnodeThat's how I would do it
- Have a CSS class that would add styles to make website dark
- Toggle the class with JavaScript (on user action)