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

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

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
```