https://github.com/devvedantk/darkmode-user-toggle-option
https://github.com/devvedantk/darkmode-user-toggle-option
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devvedantk/darkmode-user-toggle-option
- Owner: DevVedantk
- Created: 2024-11-26T08:46:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T08:51:09.000Z (over 1 year ago)
- Last Synced: 2025-03-04T14:47:35.791Z (over 1 year ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
creating Dark Mode on user Toggle Button
1]put class="dark" in top of html tag
2]put darkmode:"selector" in tailwind.config file so that we can do it on user preference
3] apply dark: "" option where you want
4]button document.querySelector("html").classList.toggle("dark")