vue-dark-mode-switcher

0.1.8 • Public • Published

🎬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.

Readme

Keywords

none

Package Sidebar

Install

npm i vue-dark-mode-switcher

Weekly Downloads

17

Version

0.1.8

License

MIT

Unpacked Size

4.28 MB

Total Files

35

Last publish

Collaborators

  • mino89
  • bnznamco
  • adminlotrek