Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/)