0.0.12 • Published 2 years ago

mk-dm-toggle v0.0.12

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Vue 3 + Vite + Tailwind CSS

This component provide to use the dark mode functionality with tailwind CSS with a toggle button.

Recommended IDE Setup

Installation

Run npm -i mk-dm-toggle

Setup

Enable dark mode

To enable dark mode with tailwind CSS, you have to had this to your tailwind.config.js : "darkMode" : "class"

Uses

This component will work by add and remove the class "dark" on the html statement. By default, the toggle button is on the dark mode. So, you have to add on your html statement the class. After that you just have to click on the button to switch between light and dark mode.

To specify on each component how it render you have to add the prefix "dark:" in the class list. By default the light theme will use the class without this prefix.

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago