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

https://github.com/onyx-nxt/dark-mode

A pure html and css library for dark mode in your website.
https://github.com/onyx-nxt/dark-mode

css dark dark-mode dark-theme html html5

Last synced: about 1 month ago
JSON representation

A pure html and css library for dark mode in your website.

Awesome Lists containing this project

README

          

# Dark Mode
A pure html and css library for dark mode in your website.

---

# Features
It has a smooth setting and also it changes via system settings aswell. Small, but useful.

---

# Usage
To use this library follow the steps below:

First, import the css with the following:
```html

```
Then you need the javascript with can be done similar to the css:
```html

```

Once your done with the imports your code looks something like this:
```html







```
Now its time to add the last element; The button.
Add it in the body as the following:
```html
Toggle dark mode
```
And boom your done! See options and more below.

---

# Settings

Want to customize it? We'll we have some options for you. More options coming in the feature.

The only option we have right now is smooth change. It makes a trasistion so it doesn't look so abrupt. See the code below have to to get this:
```html
Toggle dark mode
```

---

# Demo
Use this demo to see how it works. \
\
[DEMO](https://jsfiddle.net/NotBacon/8huy1sgk/ "Demo")

---

### Thanks for using this library!

---

[![](backToTop.png?raw=true "Back to top")](#readme)