https://github.com/jsilvermist/dark-mode-toggle
Polymer based toggle for light and dark schemes
https://github.com/jsilvermist/dark-mode-toggle
Last synced: about 1 year ago
JSON representation
Polymer based toggle for light and dark schemes
- Host: GitHub
- URL: https://github.com/jsilvermist/dark-mode-toggle
- Owner: jsilvermist
- License: mit
- Created: 2019-09-08T19:40:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T19:43:56.000Z (almost 7 years ago)
- Last Synced: 2025-02-16T00:42:17.152Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# \
Automatically switch themes based on the `prefers-color-scheme` media query
and also allow the user to manually choose the theme.
## Install the Polymer-CLI
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) and npm (packaged with [Node.js](https://nodejs.org)) installed. Run `npm install` to install your element's dependencies, then run `polymer serve` to serve your element locally.
## Viewing The Element
```
$ npm run start
```
OR
```
$ polymer serve -o
```