Skip to content

onerbs/darko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌗 Darko

Dark mode toggle

Installation

In the browser:

<script src="https://cdn.jsdelivr.net/gh/onerbs/darko/index.min.js"></script>

With NPM:

Install from GitHub

npm install github:onerbs/darko

and import it in the main file

import '@onerbs/darko'

Usage

This is a custom element, use it like:

<x-darko />

Use shift + click to forget the mode preference.