https://github.com/jakejarvis/dark-mode-example
🌓 Simple dark mode switching using local storage, OS preference detection, and minimal JavaScript
https://github.com/jakejarvis/dark-mode-example
css dark-mode javascript
Last synced: about 2 months ago
JSON representation
🌓 Simple dark mode switching using local storage, OS preference detection, and minimal JavaScript
- Host: GitHub
- URL: https://github.com/jakejarvis/dark-mode-example
- Owner: jakejarvis
- License: mit
- Created: 2020-04-29T16:51:33.000Z (about 6 years ago)
- Default Branch: gh-pages
- Last Pushed: 2020-08-16T16:29:11.000Z (almost 6 years ago)
- Last Synced: 2026-01-29T15:56:38.535Z (5 months ago)
- Topics: css, dark-mode, javascript
- Language: JavaScript
- Homepage: https://jarv.is/notes/dark-mode/
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌓 Dark mode switcheroo
Simple dark mode switching with local storage & OS setting detection!
- [`dark-mode.js`](dark-mode.js) has all the juicy stuff.
- [`dark-mode.min.js`](dark-mode.min.js) is minified for production.
- [`index.html`](index.html) & [`dark-mode.css`](dark-mode.css) make up a very barebones example.
- [View the example.](https://jakejarvis.github.io/dark-mode-example/)
- [Read the blog post.](https://jarv.is/notes/dark-mode/)