0.1.8 • Published 4 years ago

vue-dark-mode-switcher v0.1.8

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

🎬Getting started

yarn add vue-dark-mode-switcher
npm install vue-dark-mode-switcher

👨‍💻Usage

If you love emoticons you can use base version with 🌞and 🌜

import DarkMode from "vue-dark-mode-switcher";
Vue.component('yourcomponentName', {
  components: {
    DarkMode
  }
}
template:{'
    ...
    <DarkMode></Darkmode>
    ...
'}

if you want to customize it

<DarkMode>
    <em slot="lightIcon"><b><em>light!</em></b></em>
    <em slot="darkIcon"><img src="..."/>></em>
</DarkMode>

💅 Styling!

You only have to create styles for .theme-dark class

.theme-dark{
    background: black;
    color: white;
}

the class is added to body element.

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago